Skip to content

Fix differential badge design for mobile search results#418

Merged
BigSimmo merged 5 commits into
mainfrom
cursor/differential-badges-main-d3de
Jul 9, 2026
Merged

Fix differential badge design for mobile search results#418
BigSimmo merged 5 commits into
mainfrom
cursor/differential-badges-main-d3de

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes two badge layout issues on the differentials mobile search results screen.

  1. Urgency badge (EMERGENT) — Pill shape, fixed h-6, solid danger fill, and status dot. Prevents uppercase text clipping on small screens (especially mobile Safari).
  2. Filter tabs (All, Presentations, Diagnoses) — Horizontally scrollable flex row with split label/count pills, integrated with existing kindFilter state, tablist semantics, 44px touch targets, and focus rings.

Diff: 3 files against main (includes dark-mode contrast follow-up).

PR history

PR Status Notes
#412 Merged Landed against a stale base; badge fix did not reach current main cleanly
#416 Closed Superseded by this PR — targeted archive/local-main-wip-20260705 and showed a misleading ~13k-line diff
#418 Open Clean branch cursor/differential-badges-main-d3de rebased on current main

Changes

Review feedback addressed

  • Codex P2 (dark mode contrast): Emergent badge no longer uses --danger (text token) as a background fill in dark mode. It now uses dedicated --danger-solid / --danger-solid-contrast tokens that keep saturated red + white text in both themes.

Verification

  • npm run format:check — passed
  • npm run test:e2e:chromium -- tests/ui-tools.spec.ts -g "differentials search badges" — passed at 375px viewport

Clinical Governance Preflight

N/A — layout-only UI change; no ingestion, answer generation, search ranking, privacy, or clinical output logic touched.

Notes

Ready to merge. Supersedes the closed #416.

Open in Web Open in Cursor 

@supabase

supabase Bot commented Jul 9, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@BigSimmo
BigSimmo enabled auto-merge (squash) July 9, 2026 03:44

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c8f4585826

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/components/clinical-dashboard/differentials-home.tsx Outdated
auto-merge was automatically disabled July 9, 2026 04:09

Head branch was modified

@BigSimmo
BigSimmo enabled auto-merge (squash) July 9, 2026 04:09
@cursor
cursor Bot force-pushed the cursor/differential-badges-main-d3de branch from c2e9273 to 5d8bf23 Compare July 9, 2026 04:10
@BigSimmo
BigSimmo disabled auto-merge July 9, 2026 04:14
@BigSimmo
BigSimmo enabled auto-merge (squash) July 9, 2026 04:17
cursoragent and others added 5 commits July 9, 2026 04:22
Rebased onto main and integrated with catalogue kind filters.

- Redesign StatusBadge as pill with fixed height, solid emergent fill, and
  status dot to prevent text clipping on small screens
- Replace cramped filter tab grid with scrollable flex row using split
  label/count pills, tablist semantics, 44px touch targets, and focus rings
- Add narrow-viewport Playwright coverage for single-line tabs and badge

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Add --danger-solid and --danger-solid-contrast tokens so the emergent
status pill keeps high contrast in dark mode instead of using --danger
(which resolves to the pale text token as a background fill).

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
…races

Wrap the accessible-table-surface click and dialog visibility assert in
toPass so CI Chromium can retry when the composer footer briefly covers
the tap target on 390px viewports.

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/differential-badges-main-d3de branch from 5d8bf23 to a695951 Compare July 9, 2026 04:22
@BigSimmo
BigSimmo merged commit ced1925 into main Jul 9, 2026
6 checks passed
@BigSimmo
BigSimmo deleted the cursor/differential-badges-main-d3de branch July 9, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants