feat: complete evidence restructuring worktree

This commit is contained in:
Codex
2026-08-26 11:39:02 +02:00
parent a54d4769dd
commit 38f02cfd08
56 changed files with 1981 additions and 1801 deletions
@@ -159,6 +159,7 @@ test("opens Workspace management from the right sidebar without interrupting the
server.use(
http.get("/api/workspace-registry/status", () =>
HttpResponse.json({ branch: "main", ahead: 0, behind: 0, degraded: false })),
http.get("/api/health/dwh", () => HttpResponse.json({ ok: false })),
);
renderShell();
@@ -168,6 +169,21 @@ test("opens Workspace management from the right sidebar without interrupting the
expect(screen.getByTestId("app-shell")).toHaveAttribute("data-activity-layout", "closed");
});
test("does not block the shell when the DWH is unavailable at startup", async () => {
let healthChecks = 0;
server.use(
http.get("/api/health/dwh", () => {
healthChecks += 1;
return HttpResponse.json({ ok: false });
}),
);
renderShell();
expect(await screen.findByRole("button", { name: "Workspace management" })).toBeVisible();
expect(screen.queryByRole("heading", { name: "Connection unavailable" })).not.toBeInTheDocument();
expect(healthChecks).toBe(0);
});
test("marks the composer as awaiting input for a pending freetext gate", () => {
useSessionStore.setState({