Fix differentials mobile search formatting#929
Conversation
Restructure phone result cards so titles no longer fight Emergent badges, show subtitles and readable chips, number the list contiguously after the featured best answer, and reserve enough bottom space that the last card clears the compare FAB. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
📝 WalkthroughWalkthroughMobile differential cards now update chip truncation, title and metadata layout, ranking, and spacing. UI tests verify sequential ranks, badge placement, horizontal containment, and clearance from the floating compare action. ChangesMobile differentials
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Clamp chip flex items with min-w-0, hide card overflow, widen page padding, and assert mobile result cards do not scroll horizontally. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Static PR checks failed on format:check for the mobile card layout edits. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@coderabbitai please resolve merge conflicts for me |
|
✅ Merge conflicts resolved successfully! Resolved 1 conflict file(s). Commit: 2 file operation(s)
View agent analysis |
Resolved conflicts in: - tests/ui-tools.spec.ts (content) Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
|
@cursoragent Please can you resolve the PR policy failing CI test for me |
|
PR policy is green again. The check failed because the body was missing the required evidence sections for a clinical/UI path. I updated the PR description with:
Local |


Summary
Phone differentials search results were cramped on small screens. This PR reformats mobile result cards so titles, Emergent badges, chips, ranks, and the Compare FAB render correctly without overflow or skipped numbering.
Changes
MobileResultCard: rank + title + checkbox (no icon column); status badge and match label on a dedicated meta row; show subtitle; larger readable chips withmin-w-0truncationpx-4Verification
tests/ui-tools.spec.ts(badge placement, contiguous ranks, card overflow, compare FAB clearance)tests/mobile-interaction-regressions.test.tsnpx prettier --checkon touched filesUI verification not run: full
npm run verify:uisuite not executed in this environment; focused Chromium differentials mobile proofs above cover the changed phone results surface.Risk and rollout
differentials-home.tsxandtests/ui-tools.spec.ts.Clinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy)Notes
DesktopResultRowunchanged.Summary by CodeRabbit
Bug Fixes
UI Improvements