Polish settings switchers on narrow screens - #1816
Conversation
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in:5 minutes Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe pull request updates responsive segmented controls and settings dialog styling. It adds larger switch focus targets, reduced-motion handling, revised spacing, clearer appearance descriptions, and mobile smoke coverage at narrow viewport widths. ChangesMobile settings controls
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
CI triageCI failed on this PR. Automated classification of the 1 failed job(s):
Compared with main CI run #9712 (failure). Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger. |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/components/ui/segmented-control.tsx (1)
108-111: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse theme-backed values for new responsive and switch geometry values.
Both changed components add arbitrary design values instead of named theme values.
src/components/ui/segmented-control.tsx#L108-L111: replacetext-[0.55rem]andmin-[360px]with named theme tokens.src/components/clinical-dashboard/settings-dialog.tsx#L1265-L1269: replace the18pxand22pxgeometry values with named theme tokens.As per coding guidelines: use Tailwind 4
@themetokens insrc/app/globals.cssrather than introducing hardcoded design values.🤖 Prompt for 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. In `@src/components/ui/segmented-control.tsx` around lines 108 - 111, Replace the arbitrary responsive values in segmented-control.tsx lines 108-111, specifically text-[0.55rem] and min-[360px], with named Tailwind 4 `@theme` tokens defined in src/app/globals.css. Also replace the 18px and 22px geometry values in settings-dialog.tsx lines 1265-1269 with corresponding theme-backed tokens; update globals.css as needed rather than retaining hardcoded design values.Source: Coding guidelines
🤖 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.
Nitpick comments:
In `@src/components/ui/segmented-control.tsx`:
- Around line 108-111: Replace the arbitrary responsive values in
segmented-control.tsx lines 108-111, specifically text-[0.55rem] and
min-[360px], with named Tailwind 4 `@theme` tokens defined in src/app/globals.css.
Also replace the 18px and 22px geometry values in settings-dialog.tsx lines
1265-1269 with corresponding theme-backed tokens; update globals.css as needed
rather than retaining hardcoded design values.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 34e8e605-df3f-4a10-a96d-f44dd4690f99
📒 Files selected for processing (4)
src/components/clinical-dashboard/settings-dialog.tsxsrc/components/ui/segmented-control.tsxtests/ui-smoke.spec.tstests/ui-v2-components.dom.test.tsx
…1816-settings-switcher-segmented
Uh oh!
There was an error while loading. Please reload this page.
Summary
Verification
npm run verify:pr-localtests/pr-handoff-stop.test.tsfixtures (lnunavailable and temporary-directory cleanup returnedEPERM); build and RAG fixtures were therefore not reached by this command.npm run verify:ui27279b7ae; the settings journey passed within the matrix.npm test -- tests/ui-v2-components.dom.test.tsx: 78 passed.npm run verify:release— not run because release confidence was not requested.Risk and rollout
37a186ed3.Notes
RAG impact: no retrieval behaviour change — settings presentation and interaction geometry only.
Physical iPhone Safari and installed-PWA acceptance remain separate from Chromium validation.
Summary by CodeRabbit