feat(frontend): register schema-linking widget + response summary

This commit is contained in:
2026-07-06 23:25:00 +02:00
committed by Marco Pancotti
parent b6397bd965
commit 32b8e78032
3 changed files with 12 additions and 1 deletions
+4 -1
View File
@@ -29,7 +29,10 @@ export function WidgetHost({ sessionId }: { sessionId: string | null }) {
}
setLastUserEntry({
kind: "choice",
text: r.text ?? r.choices?.join(", ") ?? r.decision?.type ?? r.control ?? "(choice)",
text:
r.kind === "schema-linking"
? `${r.tables?.filter((t) => t.enacted).length ?? 0} tables curated`
: r.text ?? r.choices?.join(", ") ?? r.decision?.type ?? r.control ?? "(choice)",
});
clearPending();
};