feat(confidence-engine): show unresolved report questions
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -202,6 +202,26 @@ export default function ReportPage({ params }) {
|
||||
</p>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
{/* What remains unresolved — derived from canonical graph state */}
|
||||
{(() => {
|
||||
const resolvedIds = new Set(existing?.resolvedNodeIds ?? []);
|
||||
const unresolvedQuestions = (existing?.situationGraph?.nodes ?? [])
|
||||
.filter((n) => n.kind === "unknown" && n.status !== "resolved" && !resolvedIds.has(n.id))
|
||||
.map((n) => n.label || n.description);
|
||||
return unresolvedQuestions.length > 0 ? (
|
||||
<div className="mt-6 rounded-xl border-[2.5px] border-amber-300/70 bg-gradient-to-b from-amber-50/60 to-white px-8 pt-6 pb-7 shadow-sm">
|
||||
<h2 className="mb-3 text-[11px] font-bold tracking-[.18em] uppercase text-amber-700/70">
|
||||
What remains unresolved
|
||||
</h2>
|
||||
<ul className="list-disc space-y-2 pl-6 text-base leading-relaxed text-gray-800">
|
||||
{unresolvedQuestions.map((q, i) => (
|
||||
<li key={i}>{q}</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
) : null;
|
||||
})()}
|
||||
</>
|
||||
) : (
|
||||
/* Skeleton / loading state when no persisted report exists */
|
||||
|
||||
Reference in New Issue
Block a user