UI formatting fixes + production-page polish#494
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
📝 WalkthroughWalkthroughThe changes standardize focus styling and control sizing across several UI surfaces, use prompt-specific descriptions in medication cards, and add diagnosis-detail regression checks for touch targets, tab wrapping, and horizontal overflow. ChangesUI accessibility and presentation consistency
Estimated code review effort: 3 (Moderate) | ~20 minutes 🔕 Pre-merge checks override appliedThe pre-merge checks have been overridden successfully. You can now proceed with the merge. Overridden by ❌ Failed checks (1 error, 1 warning, 1 inconclusive)
✅ Passed checks (8 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
|
@copilot resolve the merge conflicts on this branch. |
|
@codex resolve all merge conflicts and issues blocking merge and address comments on this PR to merge |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/ui-tools.spec.ts`:
- Around line 1228-1234: Reduce the measurementTolerance in expectMinTouchTarget
from 2px to a subpixel-sized value such as 0.5–1px, while keeping the existing
height and width minimum checks unchanged.
🪄 Autofix (Beta)
❌ Autofix failed (check again to retry)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 800e7bf5-c2c7-49db-bb59-3b76b6795276
📒 Files selected for processing (18)
src/app/globals.csssrc/components/DocumentTagCloud.tsxsrc/components/applications-launcher-page.tsxsrc/components/clinical-dashboard/account-setup-dialog.tsxsrc/components/clinical-dashboard/clinical-output-helpers.tsxsrc/components/clinical-dashboard/evidence-panels.tsxsrc/components/clinical-dashboard/favourites-command-library-page.tsxsrc/components/clinical-dashboard/favourites-hub.tsxsrc/components/clinical-dashboard/favourites-library-nav.tsxsrc/components/clinical-dashboard/master-search-header.tsxsrc/components/clinical-dashboard/medication-prescribing-workspace.tsxsrc/components/differentials/differential-detail-page.tsxsrc/components/differentials/differential-presentation-workflow-page.tsxsrc/components/differentials/differential-stream-page.tsxsrc/components/forms/form-detail-page.tsxsrc/components/mode-home-template.tsxsrc/components/services/service-detail-page.tsxtests/ui-tools.spec.ts
💤 Files with no reviewable changes (1)
- src/components/clinical-dashboard/evidence-panels.tsx
Summary
Testing
|
|
Note Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. ❌ Cannot run autofix: This PR has merge conflicts. Please resolve the conflicts with the base branch and try again. Alternatively, use |
|
@copilot resolve the merge conflicts on this branch. |
|
Note Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. ❌ Cannot run autofix: This PR has merge conflicts. Please resolve the conflicts with the base branch and try again. Alternatively, use |
a0ba771 to
21f9540
Compare
|
Note Docstrings generation - SKIPPED |
Docstrings generation was requested by @BigSimmo. * #494 (comment) The following files were modified: * `src/components/DocumentTagCloud.tsx` * `src/components/applications-launcher-page.tsx` * `src/components/clinical-dashboard/favourites-command-library-page.tsx` * `src/components/clinical-dashboard/favourites-library-nav.tsx` * `src/components/differentials/differential-detail-page.tsx` * `src/components/services/service-detail-page.tsx`
|
@codex please can you fix the failing CI testing for me $comment |
Summary
Testing
|
…n taps Rebuilt on top of #483's redesigned interactive detail page (which already fixed the wrapping action labels and tab-label wrap). Remaining polish: - Add a .focus-ring-tab class (inset rounded ring: outline-offset -4px, no halo) so keyboard focus no longer draws a full-height box that collides with the tablist border; inactive tabs get a transparent bottom border to remove the 2px layout jump on tab switch. - Keep #483's roving-tabindex keyboard nav, nowrap and flex-1 layout intact. - shrink-0 on the desktop action cluster so the Save icon button stops being crushed below 44px at ~1024px; nowrap on the Compare button. - Bump the two overlap-diagnosis chips to the 44px tap standard. - Regression test: detail Save action >=44px at 1024px, Overview tab single-line with no page overflow at 320px. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…on routes Still-present defects confirmed by a fresh sweep of current main (15 routes x 7 widths); none were addressed by recent main changes: - DocumentTagCloud: drop the focus: ring classes that painted a ring on mouse click; the global :focus-visible rule keeps the keyboard ring. - applications launcher category filters: mobile 28px / desktop 36px -> 44px, with whitespace-nowrap. - service detail Copy row buttons: 40px -> 44px. - favourites command-library More-actions buttons and library sidebar rows and compact toggle: 36px -> 44px. Deliberately left main's intentional lg:min-h-9 desktop density on the mode-home quick-link pills (AA-compliant for pointer). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…g home
The MedicationHome actions hardcoded description: "Prescribing-focused search."
for every prompt, ignoring the authored `medicationPrompts[].description` values
("Check renal dosing…", "Review opioid-use…", "Check maximum dose…") that the
prescribing-home responsive test asserts. Restore `description: prompt.description`
so each card shows its specific guidance and the advisory UI regression passes.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
21f9540 to
619dd99
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
What this is
Presentation-layer polish, rebuilt on top of current
main(after #483 redesigned the differential detail page). The original branch was reset tomainand only the fixes that are still needed against current code were re-applied, so nothing here reverts #483's redesign.Your two reported bugs
On
/differentials/diagnoses/[slug]:mainby feat(differentials): interactive diagnosis detail page with honest safety snapshot #483 (short "Compare" label + shared copy button). This PR addsshrink-0to the desktop action cluster so the Save icon button can't be crushed below 44px at ~1024px, pluswhitespace-nowrapon Compare.mainand fixed here: a new.focus-ring-tabclass draws an inset rounded ring (outline-offset: -4px,border-radius: var(--radius-md), no halo) instead of the global full-height focus box that collided with the tablist border. Inactive tabs get a transparent bottom border to remove the 2px layout jump on tab switch. feat(differentials): interactive diagnosis detail page with honest safety snapshot #483's roving-tabindex keyboard nav,nowrap, andflex-1layout are all preserved.Repo-wide sweep
A Playwright sweep (scratch tooling, not committed) ran three detectors — horizontal overflow, wrapped control labels, sub-44px tap targets — across 15 production routes × 7 widths (320/375/414/768/1024/1280/1536) in demo mode, both before and after the fixes.
Still-present defects on current
main, now fixed:focus:notfocus-visible:)DocumentTagCloud.tsxapplications-launcher-page.tsxservices/service-detail-page.tsxfavourites-command-library-page.tsx,favourites-library-nav.tsxdifferentials/differential-detail-page.tsxFinal sweep after fixes: the only two remaining flags are intentional design choices left as-is, not defects:
/servicesquick-link pills at ~38px tall on desktop —main's deliberatelg:min-h-9density (AA-compliant for pointer input).flex-1equal-width tab strip (contiguous, 46px tall). Changing it would mean redesigning feat(differentials): interactive diagnosis detail page with honest safety snapshot #483's tab layout, out of scope here.Verification
npm run typecheck: passed.npm run lint: passed.npx prettier --checkon all touched files: passed.npm run test:e2e:chromium tests/ui-tools.spec.ts(new detail-page regression test): passed.outline-offset: -4px, no halo); dark mode andprefers-reduced-motionrender correctly.npm run verify:release— provider boundary (calls OpenAI/governance/eval). Available as a user-approved final gate.Scope / governance
Presentation layer only — CSS class strings, one new
globals.cssclass, and one Playwright test. No ingestion, answer generation, search/ranking, source rendering, document access, privacy, API-route, rate-limit, or environment surface is touched.🤖 Generated with Claude Code