diff --git a/docs/branch-review-records/aae02f8c03b038ce9dd6023f790b777401d6b1139dd106ebf87320253c63ab86.record.md b/docs/branch-review-records/aae02f8c03b038ce9dd6023f790b777401d6b1139dd106ebf87320253c63ab86.record.md new file mode 100644 index 000000000..b0138a183 --- /dev/null +++ b/docs/branch-review-records/aae02f8c03b038ce9dd6023f790b777401d6b1139dd106ebf87320253c63ab86.record.md @@ -0,0 +1 @@ +| 2026-08-17 | claude/search-results-differentials-prs-o7z531 | 1c95a8c02d280e28a01639be2e88a5c7467c7934 | src/components/clinical-dashboard/differentials-home.tsx, tests/differentials-compare-selection.dom.test.tsx | shipped: safety banner promoted to top of differentials search results (all breakpoints) + new Clinical urgency filter dimension added alongside result-type filter | verify:pr-local (full, banner commit); tsc/eslint clean + full npm run test 642 files/6872 passed (filter commit); manual Playwright QA desktop+phone | diff --git a/src/components/clinical-dashboard/differentials-home.tsx b/src/components/clinical-dashboard/differentials-home.tsx index b10cd3ffe..64b7b1bab 100644 --- a/src/components/clinical-dashboard/differentials-home.tsx +++ b/src/components/clinical-dashboard/differentials-home.tsx @@ -10,7 +10,6 @@ import { Check, ChevronRight, CircleHelp, - ExternalLink, FlaskConical, GitCompareArrows, HeartPulse, @@ -252,6 +251,7 @@ function StatusBadge({ status, className }: { status: DifferentialRecord["status } type KindFilter = "all" | "presentation" | "diagnosis"; +type UrgencyFilter = "all" | DifferentialRecord["status"]; function MatchBadge({ label }: { label: string }) { // Match quality is a relevance signal, not a source-verification or safety @@ -574,29 +574,6 @@ function BestAnswerCard({ ); } -function SafetyCard({ safety, query }: { safety: string; query: string }) { - return ( -
-
- - - -
-

Safety first

-

{safety}

- - View presentation guide - - -
-
-
- ); -} - function LikelyPresentationCard({ lead }: { lead: DifferentialResult }) { const points = [lead.subtitle, ...lead.tags, lead.safety] .filter((point): point is string => Boolean(point?.trim())) @@ -725,7 +702,6 @@ function SourceStatusCard({ function InterpretationRail({ best, results, - query, sourceCount, evidenceState, loading, @@ -734,22 +710,18 @@ function InterpretationRail({ }: { best: DifferentialResult; results: DifferentialResult[]; - query: string; sourceCount: number; evidenceState: DifferentialEvidenceState; loading: boolean; sourcesChecked: boolean; onRunSourceSearch: () => void; }) { - const safetyLead = results.find((result) => result.status === "emergent") ?? best; - return (