From 890ddb5c0b96760fd84ed39c951cc8f1a0d8aacf Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 17 Aug 2026 15:45:41 +0000 Subject: [PATCH] Remove redundant section header from differentials Presentations/Diagnoses streams Drop the "Presentation pathways"/"Clinical entries" heading and its subtitle so result cards render directly below the search results band instead of behind a duplicate label. --- .../differentials/differential-stream-workspace.tsx | 13 +------------ tests/differential-stream-page.dom.test.tsx | 2 -- tests/ui-route-coverage.spec.ts | 2 +- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/components/differentials/differential-stream-workspace.tsx b/src/components/differentials/differential-stream-workspace.tsx index d0de5fe20..08e97efb1 100644 --- a/src/components/differentials/differential-stream-workspace.tsx +++ b/src/components/differentials/differential-stream-workspace.tsx @@ -49,16 +49,14 @@ type DifferentialStreamWorkspaceProps = { initialFocus?: string; }; -const streamCopy: Record = { +const streamCopy: Record = { presentations: { heading: "Presentations", description: "Start with what is happening now, then open a pathway to compare likely causes.", - entriesLabel: "Symptom-led pathways with priority and safety cues", }, diagnoses: { heading: "Diagnoses", description: "Compare likely causes and exclusion clues.", - entriesLabel: "Diagnosis-focused differential content", }, }; @@ -853,15 +851,6 @@ export function DifferentialStreamWorkspace({ model, query, initialFocus = "" }: ) : null}
-
-
-

- {isPresentation ? "Presentation pathways" : "Clinical entries"} -

- {copy.entriesLabel} -
-
- {visibleItems.length === 0 ? (
{ ).toBeInTheDocument(); expect(screen.getByTestId("search-query-ribbon")).toBeInTheDocument(); expect(screen.getByRole("heading", { level: 2, name: "All" })).toBeInTheDocument(); - expect(screen.getByText("Symptom-led pathways with priority and safety cues")).toBeInTheDocument(); - expect(screen.getByRole("heading", { level: 2, name: "Presentation pathways" })).toBeInTheDocument(); await user.click(screen.getByTestId("differentials-stream-filter-trigger")); expect(screen.getByRole("radiogroup", { name: "Clinical urgency" })).toBeInTheDocument(); expect(screen.getByText("High-priority presentation pathways")).toBeInTheDocument(); diff --git a/tests/ui-route-coverage.spec.ts b/tests/ui-route-coverage.spec.ts index ef6e9817d..4f9cfccb9 100644 --- a/tests/ui-route-coverage.spec.ts +++ b/tests/ui-route-coverage.spec.ts @@ -566,7 +566,7 @@ test.describe("previously uncovered production routes", () => { await gotoApp(page, "/differentials/presentations"); await page.setViewportSize({ width: 1280, height: 900 }); - await expect(page.getByRole("heading", { name: "Presentation pathways", level: 2 })).toBeVisible(); + await expect(visibleByTestId(page, "search-query-ribbon")).toBeVisible(); const presentationBrowseTrigger = visibleByTestId(page, "differentials-stream-filter-trigger-desktop"); await presentationBrowseTrigger.click(); await expect(page.getByRole("radiogroup", { name: "Clinical urgency" })).toBeVisible();