Repository navigation
improve(ui): tighten mobile side rail - #189470
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 narrows the mobile sidebar rail, reduces control spacing, and adds scrolling for short screens. Example: Open the navigation drawer at 390×844 with seven pinned pages.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored PR provides useful mobile polish, but its added CSS exceeds enforced asset budgets and blocks CI. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherThe Control UI sidebar renderer supplies navigation controls and pinned shortcuts; the shared rail stylesheet determines their mobile dimensions, spacing, and overflow. flowchart LR
A[Viewport and input] --> B[Shell layout class]
C[Sidebar renderer] --> D[Navigation rail]
B --> E[Rail stylesheet]
E --> D
D --> F[Pages and account actions]
Technical reviewBest possible solution: Preserve the approved mobile geometry in the existing stylesheet while reducing its asset cost enough to satisfy the current budgets. Do we have a high-confidence way to reproduce the issue? Current-main CSS retains 44px coarse-pointer controls and 8px gaps, matching the oversized layout visible in the submitted before screenshots. Is this the best way to solve the issue? The change uses the existing stylesheet and sizing variables without adding another rendering or state owner; the concrete remaining defect is its asset-budget failure. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 09530a1eb38b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +54. Total +54 across 1 file. 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 October 31, 2026, 11:00 AM ET / 15:00 UTC. |
Revert 95f5e9a: starting the mobile host closed hides existing reader, workspace, and active resource panels when their viewport changes. Restore the previous persistence contract and defer the automatic session-sheet closure until its callers migrate. Align the rail assertion with the 48px rail plus default divider approved in #189470, and record its already approved CSS measurements with the existing 64-byte variance. Validated the UI and CI artifact builds, 42 focused mocked browser tests, the real-Gateway background-work spec, mobile-host and budget tests, UI types, scoped lint, formatting, and P0-P2 autoreview. Co-authored-by: steipete <[email protected]>
Tighten the mobile rail using its existing sizing variables, consistent gaps and theme-scaled corners. Let the pinned area yield height before the rail scrolls so footer controls remain reachable. Reviewed and validated on caa3f8c. Applicable non-budget CI checks passed; the only exception is the explicitly approved CSS ceiling (+38 bytes gzip, +1299 raw). The approved smaller targets and very-short-screen pinned-shortcut tradeoff are retained. Co-authored-by: Vyctor H. Brzezowski <[email protected]>
What Problem This Solves
The mobile web side rail reads as oversized: the new-session button is much larger than every other rail member, and spacing between controls and blocks is loose and uneven.
User Impact
User impact: the mobile rail is narrower and calmer, with a new-session button that matches the avatars, and all items stay reachable. Icon glyphs keep their size. Rail hit areas go from 44px to 36px on mobile, with 4px between them.
Why This Change Was Made
The rail now takes its size from one visual system on mobile: 36px controls, 30px filled members (avatars, new session, Home ring), a 40px step inside a block and 8px of space around block edges. All controls share one center line, and corner radii follow each theme's scale, so CRT stays square. On short viewports the pinned list gives up its height first, and the rail scrolls once that runs out, so the footer is no longer cut off. Rails outside the mobile layout keep their current values.
Evidence
Mock at 390px with seven pinned pages and an inbox count.
Absolutely dark, 390x844
Absolutely light, 390x844
Absolutely dark, 390x600
Absolutely light, 390x600
After, CRT dark and Beacon light, 390x844
Measurements at 390x844, Absolutely dark
Short viewports: at 390x420 the rail content needed 525px of 404px before and the footer was cut off; it now fits. At 390x340 the rail scrolls and the pinned list collapses to a sliver, so pinned pages are reached from the Pages view at that height. CRT radius on rail controls measures 2.5px.
Checks: stylelint and oxfmt pass. Vitest passes for
app-sidebar-rail(35), the rail menu, inbox badge and session glyph browser tests (8), and thesidebar-railandsidebar-account-footere2e tests (6). No tests encoded the old geometry. Those ran before a final rebase onto current main, with the same CSS. Not checked on a physical phone.Landing verification
The current head passed all applicable non-budget checks in CI run 41211588034. Independent source review found no actionable P0–P2 correctness defects, and the published normal/short mobile screenshots were inspected. The desktop connection flag is disabled in mobile layout by the existing shell owner, so the rail's new overflow does not clip that feedback.
The remaining ClawSweeper finding and CI failure are only the CSS asset ceilings: 309404 versus 309366 bytes gzip, and 1600618 versus 1599319 bytes raw. This landing uses the maintainer-approved CSS-budget exception. No design values or budgets were changed; no additional tests were added.