Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions src/components/differentials/differential-stream-workspace.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -49,16 +49,14 @@ type DifferentialStreamWorkspaceProps = {
initialFocus?: string;
};

const streamCopy: Record<DifferentialStreamType, { heading: string; description: string; entriesLabel: string }> = {
const streamCopy: Record<DifferentialStreamType, { heading: string; description: string }> = {
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",
},
};

Expand DownExpand Up@@ -853,15 +851,6 @@ export function DifferentialStreamWorkspace({ model, query, initialFocus = "" }:
) : null}

<section className="grid gap-3">
<div className="flex flex-wrap items-center justify-between gap-2">
<div>
<h2 className="text-base font-bold text-[color:var(--text-heading)]">
{isPresentation ? "Presentation pathways" : "Clinical entries"}
</h2>
<span className="text-sm text-[color:var(--text-muted)]">{copy.entriesLabel}</span>
</div>
</div>

{visibleItems.length === 0 ? (
<div
data-testid="differentials-stream-empty-filter"
Expand Down
2 changes: 0 additions & 2 deletions tests/differential-stream-page.dom.test.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -44,8 +44,6 @@ describe("DifferentialStreamPage", () => {
).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();
Expand Down
2 changes: 1 addition & 1 deletion tests/ui-route-coverage.spec.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -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();
Expand Down
Loading