wip(confidence-engine): checkpoint open-question presentation work

This commit is contained in:
2026-10-09 07:46:19 +01:00
parent f74fe6de10
commit 6bc8be6edb
19 changed files with 812 additions and 22 deletions
+3 -2
View File
@@ -1890,6 +1890,7 @@ export default function ReasoningWorkspace({
focusedInvestigations[node.id] &&
focusedInvestigations[node.id].question
);
const openQuestion = node.openQuestion || node.label;
function handleNodeClick(n) {
if (hasCompleted && selectedPresentationItemId === n.id) {
@@ -1907,8 +1908,8 @@ export default function ReasoningWorkspace({
style={{ cursor: "pointer" }}
className="w-full text-left rounded-lg border border-gray-200 bg-white px-5 py-4 transition hover:border-gray-300 hover:bg-gray-50"
>
<span className={`block leading-snug ${isFocused ? "text-sm font-medium text-gray-900" : "text-sm text-gray-600"}`}>{node.label}</span>
{node.description && node.description !== node.label && (
<span className={`block leading-snug ${isFocused ? "text-sm font-medium text-gray-900" : "text-sm text-gray-600"}`}>{openQuestion}</span>
{node.description && node.description !== openQuestion && (
<p className="mt-1.5 text-xs leading-snug text-gray-500">{node.description}</p>
)}
{!isFocused && <span className="mt-2 block text-[10px] uppercase tracking-wider text-gray-400">Unclear</span>}