From 910928471a107a9c454864cbdea772517ef10c82 Mon Sep 17 00:00:00 2001 From: mptyl Date: Mon, 29 Jun 2026 13:09:56 +0200 Subject: [PATCH] fix(frontend): wrap schema-linking fallback pre; test archived hides Resume --- frontend/src/shell/SessionDocumentsPanel.test.tsx | 6 ++++++ frontend/src/shell/SessionDocumentsPanel.tsx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/shell/SessionDocumentsPanel.test.tsx b/frontend/src/shell/SessionDocumentsPanel.test.tsx index 74d2e1eb..fca116ca 100644 --- a/frontend/src/shell/SessionDocumentsPanel.test.tsx +++ b/frontend/src/shell/SessionDocumentsPanel.test.tsx @@ -43,3 +43,9 @@ test("shows Resume for resumable, hides it for finalized", async () => { rerender(); expect(screen.queryByRole("button", { name: /resume/i })).not.toBeInTheDocument(); }); + +test("hides Resume for an archived session", async () => { + wrap(); + await screen.findByText("Original question"); + expect(screen.queryByRole("button", { name: /resume/i })).not.toBeInTheDocument(); +}); diff --git a/frontend/src/shell/SessionDocumentsPanel.tsx b/frontend/src/shell/SessionDocumentsPanel.tsx index 0aec5395..3fcd9487 100644 --- a/frontend/src/shell/SessionDocumentsPanel.tsx +++ b/frontend/src/shell/SessionDocumentsPanel.tsx @@ -27,7 +27,7 @@ function DocBody({ doc }: { doc: SessionDocument }) { const linking = JSON.parse(doc.content); return ; } catch { - return
{doc.content}
; + return
{doc.content}
; } } if (doc.format === "decisions") {