refactor(ui): compact mode-home heroes, cards, and headings - #496
Conversation
Shrink the shared ModeHomeHero (icon, heading, subtitle) and action cards (~45% shorter) and tighten mode-home spacing so every mode home reads more compact. Optimise headings and copy: Forms title "What do you need from forms?" -> "Forms", pills "Common tasks" -> "Browse by type", and fragment the action-card descriptions across Forms, Services, Differentials, Medication, and Documents; trim the Favourites and Tools subtitles. Update ui-tools.spec.ts to the new headings and the compact hero sizing baseline (44px icon, 23.2px heading), and harden the flaky Answer->Services mode-toggle test with the same toPass re-click guard already used for the Forms switch. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This pull request has been ignored for the connected project Preview Branches by Supabase. |
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (2)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughSummary by CodeRabbit
WalkthroughUpdated shared mode-home responsive styling, shortened application home-page copy, adjusted Tools launcher spacing, and aligned Playwright assertions with revised Forms headings, hero dimensions, and services-mode navigation. ChangesMode home updates
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 10 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (10 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
BigSimmo
commented
Jul 11, 2026
@copilot resolve the merge conflicts on this branch. |
BigSimmo
commented
Jul 11, 2026
@codex fix merge conflicts |
Summary
Testing
|
BigSimmo
commented
Jul 11, 2026
@codex resolve the merge conflicts on this branch. |
Summary
Testing
|
BigSimmo
commented
Jul 11, 2026
@copilot resolve the merge conflicts on this branch. |
BigSimmo
commented
Jul 11, 2026
@copilot resolve the merge conflicts on this branch. |
Resolved merge conflicts in: - src/components/mode-home-template.tsx (preserved compact sizing) - src/components/applications-launcher-page.tsx (preserved compact padding) - src/components/clinical-dashboard/medication-prescribing-workspace.tsx (kept compact description) - tests/ui-tools.spec.ts (updated to match compact heading size) Merge strategy: preserved this PR's compact design values (smaller icons, text, gaps, and card heights) while incorporating main's other improvements.
Uh oh!
There was an error while loading. Please reload this page.
Summary
ModeHomeHero(icon, heading, subtitle) and the action cards (~45% shorter) and tightens mode-home spacing inmode-home-template.tsx, so the change applies uniformly to Forms, Services, Differentials, Medication, Documents, Favourites, Tools, and Answer.What do you need from forms?→Forms; pills relabelledCommon tasks→Browse by type(they are form types, not tasks); action-card descriptions trimmed to scannable fragments across Forms, Services, Differentials, Medication, and Documents; long Favourites and Tools subtitles shortened.Verification
npm run verify:cheap— green (lint, typecheck, runtime/actions/sitemap; vitest 1411 passed / 1 skipped once the per-test timeout accommodates this machine's slow transform).npm run verify:uiwhen UI, routing, styling, browser behavior, reduced-motion, or forced-colors behavior changed — ran.tests/ui-tools.spec.ts(covers 100% of the changed surface: every mode-home hero, the compacted cards, and the sizing guard) is 40/40 green. The full run showed 6 failures inui-smoke/ui-tools-task-directory; all were traced to pre-existing environmental flakes outside this diff (5 passed on isolated re-run; the 6th is an answer-generation test that fails at a different point each run). No test asserts any copy or size this PR changes. CI runs withretries: 1, which should absorb them.npm run verify:releasebefore release or handoff confidence claims — N/A (not a release).npm run format:check— green for changed files.npm run eval:retrieval:quality— N/A (no retrieval, ranking, selection, chunking, or scoring change).npm run eval:rag/npm run eval:quality— N/A (no answer-generation, synthesis-prompt, or post-processing change).npm run check:production-readiness— N/A (no clinical workflow, privacy, environment, Supabase, source-governance, or deployment change).npm run check:deployment-readiness— N/A (no deployment/hosting/rollout change).Clinical Governance Preflight
Not applicable. This change is presentational only — mode-home navigation cards, hero sizing, and heading copy. It does not touch ingestion, answer generation, search/ranking, source rendering, document access, privacy, production env, or clinical output.
Notes
tests/ui-tools.spec.ts: new headings (Forms), the compact hero sizing baseline (44px icon / 23.2px heading, still asserting all mode homes share one size), and hardening of the flaky Answer→Services mode-toggle test with the sametoPassre-click guard the test already uses for its Forms switch.