feat(confidence-engine): reopen clarified questions

This commit is contained in:
2026-09-01 16:07:22 +01:00
parent a23da2b727
commit cd895a33ff
4 changed files with 342 additions and 1 deletions
+14 -1
View File
@@ -8,6 +8,7 @@ import InvestigationSummaryPanel from "@/components/investigation-summary-panel"
import InvestigationSummaryPanelV2 from "@/components/investigation-summary-panel-v2";
import InvestigationSummaryPanelV3 from "@/components/investigation-summary-panel-v3";
import InvestigationMap from "@/components/investigation-map";
import { reopenResolvedUnknown } from "@/lib/graph/reopen-resolved-unknown.js";
// ── Technical summary detector (main view filters these) ───
const TECHNICAL_PATTERNS = [
@@ -1936,7 +1937,19 @@ export default function ReasoningWorkspace({
{node.description && node.description !== node.label && (
<p className="mt-1.5 text-xs leading-snug text-gray-500">{node.description}</p>
)}
<span className="mt-2 block text-[10px] uppercase tracking-wider text-green-600">Clarified</span>
<div className="mt-2 flex items-center gap-3">
<span className="text-[10px] uppercase tracking-wider text-green-600">Clarified</span>
<button
onClick={() => {
const nextGraph = reopenResolvedUnknown(graph, node.id);
onSituationGraphChange(nextGraph);
}}
style={{ cursor: "pointer" }}
className="text-[10px] font-medium uppercase tracking-wider text-amber-600 hover:text-amber-700 underline transition"
>
Re-open
</button>
</div>
</div>
</div>
))}