Repository navigation
improve(ui): keep one height per control at phone width - #190768
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR standardizes phone controls at 38px, row actions at 32px, and uses a shared Skills refresh button. Example: Open Settings Skills at a 390px viewport.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this PR open: the maintainer-authored sizing improvement has useful visual evidence, but introduced geometry-test failures and CSS-budget growth need repair. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherControl UI components consume page state and shared CSS tokens to render responsive fields, buttons, tabs, and menus. flowchart TD
A[Viewport and pointer] --> B[Shared sizing tokens]
B --> C[Page styles]
C --> D[Fields tabs and actions]
E[Skills library state] --> F[RefreshButton]
F --> D
F --> G[Library reload]
Technical reviewBest possible solution: Keep the shared-token implementation, update affected geometry regressions, and consolidate CSS until the comparative performance gate passes. Do we have a high-confidence way to reproduce the issue? Current-main CSS independently defines different phone control sizes, and the supplied before screenshots show the inconsistency; no target code was executed during this review. Is this the best way to solve the issue? Shared sizing tokens and the coordinated RefreshButton are appropriate existing owners; the implementation needs consumer-test updates and CSS consolidation. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d0177edd6c8d. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +176, Tests +18. Total +194 across 7 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 1, 2026, 8:41 PM ET / November 2, 2026, 01:41 UTC. |
d8825df to
afece9e
Compare
afece9e to
1f222ba
Compare
) Keep phone page controls at one shared height and row actions at their approved smaller size. Reuse the shared Skills refresh button. Replayed only owned commits after the parent landed; preserved useful keyboard/refresh coverage and removed duplicate cosmetic assertions. Focused suites: 27 passing tests; UI typecheck, changed lint/style and formatting passed. Comparative CSS growth uses the explicitly authorized budget exception; broad CI may remain pending.
What Problem This Solves
At phone width the same control changes size from page to page. Search and filter are 38 or 44, segmented is 38 or 44, refresh is 34x36, 38 or 44, selects run from 30 to 44, and a row's
⋯is 28, 32 or 44. Settings Skills also draws its own refresh button instead ofRefreshButton.User Impact
Moving between pages on a phone, each control keeps one height. Desktop and wider touch screens are unchanged.
Why This Change Was Made
⋯, read from--settings-control-height. It's the phone value that token already had. It's a clear step below the 45px header pill, where 44 reads as a 1px miss, and it leaves segments at 32px, the composer's row control size.⋯, from a new--row-action-size, also on the composer's row size.RefreshButton.One change goes beyond the six controls: at 640px and below, labelled buttons on those pages (Save, Set up, Approve and similar) follow the same token and go from 44 to 38, so they stay level with the fields beside them.
Left alone: the Model Providers model picker (its own 48px, same as desktop), phone filter sheets (their own 40px field rhythm), the native settings embed, and disclosure rows.
Landing Order
Based on #190369: land that first, then retarget this to main.
refresh-button.tsxand itscomponents.cssblock match #190390 and #190426, so they merge without conflict. #190369 and #190426 conflict with each other inlibrary-toolbar.tsx, with or without this PR.Rules for controls added by #190367, #190374, #190380, #190381, #190382 and #190385 take effect when those land, in any order. Until #190387 and #190395 land, Usage refresh stays at 32 and the Settings Plugins tabs at 42.
Evidence
Measured through the mock data flow with the open phone PRs applied, since several of these controls only exist in them. All eight images, including the Safari frame, come from that same integrated state rather than this branch alone, so they also show the floating header from #190409.
Heights at 390px in Chromium, before → after. WebKit at 390 matches, and 320 matches in both browsers except Settings Skills segmented, whose four tabs wrap to two rows there (84 → 72). No horizontal overflow or page errors. Inputs and native selects stay at 16px. All measured controls are unchanged at 1280 and at 768 with touch.
/sessions/usage/logs/activity/automations/plugins/skills/settings/skills/settings/plugins/settings/agents/settings/model-providers/settings/channels/settings/devices/memory-import/meetings/dashboardsAlso on 38 now: Sessions' Search transcripts icon (34), its pagination buttons (30) and the Usage creator select (36.6).
This branch alone was also measured in the same browsers and widths, with the same result apart from the two exceptions under Landing Order. The Meetings fixture doesn't exist on it, so Meetings was only measured in the integrated state. Row
⋯on Secrets and the plugin editor isn't verified: the mock doesn't render those rows.Automations, Before and After, Absolutely light:
Settings Skills, Before and After, with
RefreshButton:Sessions pagination, After, and Logs, After, Absolutely dark:
Automations at 320px, CRT, and real Safari at 390px:
Checks on this head:
oxfmt,oxlint,stylelint,pnpm tsgo:ui, Skills unit tests (77/77) and the skills-library, settings-layout, mobile-shell-geometry and native-embed-settings e2e tests (36/36) pass, including a new phone test for the Skills toolbar.view.invalidation.browser.test.tsxhas one failure that also occurs on the base without this change.ui:check-performance:baseis over the CSS budget, which the base already exceeds.Risk and coverage — landing integration
Replayed only the two phone-control commits onto parent-complete main. The shared RefreshButton remains the existing owner. Preserved the earlier Sessions test cleanup; removed the added cosmetic Skills case and exact control-size assertions while retaining keyboard, load-order and refresh/retry coverage.
The two focused suites passed (27 tests), as did UI typecheck, changed source lint, stylesheet lint and formatting. The comparative build completed but exceeded the CSS growth budget; the explicitly authorized CSS-budget exception applies. The reviewed phone design and supplied visual evidence are retained. Full PR CI may remain pending under the authorized batch policy.