Repository navigation
fix(ui): keep long placement selections readable on mobile - #153757
Conversation
Stack phone environment and workspace controls and wrap long selections while preserving the horizontal desktop layout. Sort known cloud-service profiles before local and custom infrastructure using backend identity, including Machine0, with alphabetical ordering shared by Where and Move. Co-authored-by: steipete <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
|
🦞👀 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 maintainer review before merge. Reviewed September 20, 2026, 6:54 PM ET / 22:54 UTC (Revision 5). ClawSweeper reviewWhat this changesThe PR stacks mobile session-placement controls, fades long selections, refines icon spacing, and shares cloud-profile ordering between New Session and Move. Merge readiness✅ Ready for maintainer review The PR remains useful because current main still has the cramped mobile layout. The inspected screenshots support the final refinement, and review found no blocking correctness or security defects. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI displays available environments and workspaces before users start or move a session. This change adjusts how those choices appear while preserving the existing selection and dispatch paths. flowchart TD
A[Environment catalog] --> B[Shared profile ordering]
B --> C[New Session picker]
B --> D[Move dialog]
E[Selected workspace] --> C
C --> F[Responsive labels and icons]
D --> G[Existing selection callbacks]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +100, Tests +379, Docs +4. Total +483 across 14 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep responsive sizing in the existing stylesheet and one shared presentation comparator, preserving complete accessible values and unchanged selection behavior. Do we have a high-confidence way to reproduce the issue? Yes: current-main CSS and the linked report establish the cramped two-column layout with long selections at 320–390px. This review inspected source and supplied captures without executing a fresh reproduction. Is this the best way to solve the issue? Yes: the patch uses the existing responsive owner and shared profile presentation logic, with focused coverage for geometry, accessibility, disabled choices, and unchanged selection results. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 356b0f186b78. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Align leading icon slots, optically size the AWS wordmark without changing its shape, unify outline weight, and separate quieter chevrons from selected labels. Keep desktop row geometry, mobile wrapping, and compact menu icons intact. Co-authored-by: steipete <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Icon balance and chevron spacing refinementFollowing the requested visual refinement, selected controls now use aligned leading-icon columns, an optically enlarged AWS wordmark without distortion, consistent outline weight, and quieter chevrons with more label separation. Mobile chevrons have 12px separation; desktop gains spacing while preserving its row footprint. Compact menu icon sizing, picker behavior, and backend ordering are unchanged. 147 focused tests passed, along with UI production/test typing, style lint, i18n, production build/performance ceilings, and an independent P2 review. The four geometry regressions fail against the previous PR CSS and pass with the refinement. Inspected source-app proof covers light/dark mobile and desktop plus nine backend identities. Local full-E2E and broad typed-lint environment limitations remain as documented in the PR. Below: previous PR head 390px mobile, light — before / after320px mobile, dark — before / afterDesktop — before / afterCompact menu context — before / after |
Use a block-bodied Promise executor so requestAnimationFrame does not return its numeric handle from the executor. The two-frame wait and assertions remain unchanged; targeted lint and all four browser cases pass. Co-authored-by: steipete <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Let stacked phone controls grow to 80 percent of the available row, then fade single-line text instead of wrapping. Keep fitting labels opaque, preserve full accessible names and icon spacing, and remove the leading summary dot. Co-authored-by: steipete <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Final mobile width and text treatmentPer the latest feedback, stacked mobile controls grow with their content up to 80% of the available row. Long labels and summaries stay on one line and fade at the trailing edge instead of wrapping. Fitting text stays opaque, including short labels; the fade direction follows RTL. The initial dot before the OS/machine summary is removed, while the internal OS/size separator remains. Icon balance, chevron spacing, full accessible names, and selection callbacks are preserved. 149 focused tests across eight files pass, including six browser cases for 320/390/560/1440px, short labels, and RTL. Five phone cases fail against the previous CSS/template; the desktop case stays passing. UI production/test typing, targeted lint, style lint, i18n, docs, UI build/performance, and independent P2 review pass. Screenshots are actual source-app captures with a synthetic mock Gateway. Before: 390px mobile, light — before / after320px mobile, dark — before / afterDesktop — before / afterMenu context — before / after |
Raise the requested width cap while retaining single-line fading, complete accessible names, icon alignment, and the clean OS/machine summary. Co-authored-by: steipete <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Account for fade padding and chevron margin as one spacing budget. Reduce the combined fitting-text gap from 28px to 12px while retaining the 90% cap, single-line fade, complete accessible values, and unchanged desktop rules. Co-authored-by: steipete <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
|
Merged via squash.
|
…153757) * fix(ui): keep mobile placement selections readable Stack phone environment and workspace controls and wrap long selections while preserving the horizontal desktop layout. Sort known cloud-service profiles before local and custom infrastructure using backend identity, including Machine0, with alphabetical ordering shared by Where and Move. Co-authored-by: steipete <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): balance placement icons and quiet chevrons Align leading icon slots, optically size the AWS wordmark without changing its shape, unify outline weight, and separate quieter chevrons from selected labels. Keep desktop row geometry, mobile wrapping, and compact menu icons intact. Co-authored-by: steipete <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> * test(ui): keep frame-wait executor return-free Use a block-bodied Promise executor so requestAnimationFrame does not return its numeric handle from the executor. The two-frame wait and assertions remain unchanged; targeted lint and all four browser cases pass. Co-authored-by: steipete <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): cap phone picker width and fade long labels Let stacked phone controls grow to 80 percent of the available row, then fade single-line text instead of wrapping. Keep fitting labels opaque, preserve full accessible names and icon spacing, and remove the leading summary dot. Co-authored-by: steipete <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): allow phone placement controls to grow to 90 percent Raise the requested width cap while retaining single-line fading, complete accessible names, icon alignment, and the clean OS/machine summary. Co-authored-by: steipete <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): tighten the visible placement chevron gap Account for fade padding and chevron margin as one spacing budget. Reduce the combined fitting-text gap from 28px to 12px while retaining the 90% cap, single-line fade, complete accessible values, and unchanged desktop rules. Co-authored-by: steipete <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> --------- Co-authored-by: steipete <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>












Closes #153755
Related: #153288
What Problem This Solves
Fixes cramped New session placement controls on phones while keeping long selections compact and accessible.
User Impact
At widths up to 560px, controls stay stacked and grow with their content up to 90% of the available row. Long text stays on one line and fades at the trailing edge instead of wrapping. The OS/machine summary has no leading dot, while the internal OS/size separator remains. Full accessible names, balanced icons, and horizontal desktop layout are preserved. The combined fade-padding/chevron spacing is reduced from 28px to 12px for fitting mobile text.
Known cloud-service profiles appear before local/custom infrastructure, alphabetically within each group. Routing, permissions, configuration, and selection behavior are unchanged.
Why This Change Was Made
The existing responsive owner now caps the text area without clipping icons or chevrons. Trailing padding keeps fitting text opaque, and the fade mirrors for RTL. Where and Move still share one backend-identity comparator; editable names and logo availability do not determine the order.
Requested by @vyctorbrzezowski as a separate follow-up to the landed provider icons.
Work sessions
Evidence
Underlying width/fade verification — current head
ef54a8e.b70e448; after isef54a8e.Exact-head hosted CI and both required CI gates passed for
ef54a8e; native preparation verified the hosted evidence. No failing check was waived. Local complete UI E2E was blocked at loopback preflight (502), so the full-suite result comes from hosted CI rather than a claimed local run.Full mobile screen — 390 × 1000, light
Before
After
Full narrow mobile screen — 320 × 1000, dark
Before
After
Desktop and environment-menu comparisons
Desktop — Before
Desktop — After
Menu context — Before
Menu context — After