fix(frontend): wrap schema-linking fallback pre; test archived hides Resume
This commit is contained in:
@@ -43,3 +43,9 @@ test("shows Resume for resumable, hides it for finalized", async () => {
|
||||
rerender(<SessionDocumentsPanel session={{ ...base, status: "finalized" }} onClose={vi.fn()} onResume={vi.fn()} />);
|
||||
expect(screen.queryByRole("button", { name: /resume/i })).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
test("hides Resume for an archived session", async () => {
|
||||
wrap(<SessionDocumentsPanel session={{ ...base, archived: true }} onClose={vi.fn()} onResume={vi.fn()} />);
|
||||
await screen.findByText("Original question");
|
||||
expect(screen.queryByRole("button", { name: /resume/i })).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
@@ -27,7 +27,7 @@ function DocBody({ doc }: { doc: SessionDocument }) {
|
||||
const linking = JSON.parse(doc.content);
|
||||
return <SchemaLinkingViewer linking={linking} />;
|
||||
} catch {
|
||||
return <pre className="text-xs">{doc.content}</pre>;
|
||||
return <pre className="whitespace-pre-wrap text-xs">{doc.content}</pre>;
|
||||
}
|
||||
}
|
||||
if (doc.format === "decisions") {
|
||||
|
||||
Reference in New Issue
Block a user