feat(workflow-bar): optimistic F1 at start; all-green when session finalized

This commit is contained in:
2026-07-03 13:22:09 +02:00
parent 37b3eb45e9
commit e630ac98f9
5 changed files with 33 additions and 10 deletions
+3 -1
View File
@@ -53,6 +53,8 @@ export function AppShell() {
const ungroupedActive = activeList.filter((s) => !s.group);
const archivedList = sessions.filter((s) => s.archived);
const refresh = () => queryClient.invalidateQueries({ queryKey: ["sessions"] });
const activeSession = sessions.find((s) => s.id === activeSessionId) ?? null;
const finalized = activeSession?.status === "finalized";
function openPanel(id: string) {
const s = sessions.find((x) => x.id === id);
@@ -169,7 +171,7 @@ export function AppShell() {
{activeSessionId && (
<div className="shrink-0 border-b border-border/70 bg-background/80 px-6 py-2.5 backdrop-blur">
<div className="mx-auto max-w-3xl">
<WorkflowBar />
<WorkflowBar finalized={finalized} />
</div>
</div>
)}