feat(frontend): register schema-linking widget + response summary
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user