Skip to content

fix(ui): keep long placement selections readable on mobile - #153757

Merged
roboclaw-bot merged 6 commits into
mainfrom
fix/mobile-placement-picker-layout
Sep 20, 2026
Merged

roboclaw-bot merged 6 commits into
mainfrom
fix/mobile-placement-picker-layout

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

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.

  • The final 90%/tighter-gap candidate passed 149 focused tests across eight files, including six browser cases for mobile/desktop widths, short labels, RTL, full accessible names, alignment, spacing, and selection. Five phone cases fail against the prior CSS/template; the desktop case remains passing.
  • UI production/test typing, targeted lint, style lint, i18n, docs, production build/performance ceilings, and independent P2 review passed across the layout refinements. The final gap repair additionally passed the same 149-test selection, UI test typing, targeted lint/styles, and a fresh clean P2 review. Browser assertions bound both the element margin and the combined visible text gap.
  • Screenshots below show the full mobile viewport, including the app header, welcome area, pickers, and composer—not cropped control strips. They use synthetic source-app/mock-Gateway data. Before is b70e448; after is ef54a8e.

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

Before: full 390px mobile screen

After

After: full 390px mobile screen with 90-percent capped fading controls

Full narrow mobile screen — 320 × 1000, dark

Before

Before: full 320px dark mobile screen

After

After: full 320px dark mobile screen with single-line fading labels

Desktop and environment-menu comparisons

Desktop — Before

Before: desktop controls

Desktop — After

After: desktop remains horizontal and the summary has no leading dot

Menu context — Before

Before: environment menu context

Menu context — After

After: unchanged menu ordering and final selected-control text

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]>
@roboclaw-bot roboclaw-bot self-assigned this Sep 20, 2026
@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: M maintainer Maintainer-authored PR labels Sep 20, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 20, 2026 14:23
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 20, 2026
@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 20, 2026, 6:54 PM ET / 22:54 UTC (Revision 5).

ClawSweeper review

What this changes

The 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
Reviewed head: ef54a8e08769288793859d37363f001fa0f26a61

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with convincing visual evidence, relevant regression coverage, and no actionable review findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected source-app before/after screenshots at 390px light and 320px dark demonstrate the changed New Session CSS and summary template, including final-head fading and spacing. Browser assertions supplement the visible proof with accessibility, RTL, and selection checks.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected source-app before/after screenshots at 390px light and 320px dark demonstrate the changed New Session CSS and summary template, including final-head fading and spacing. Browser assertions supplement the visible proof with accessibility, RTL, and selection checks.
Evidence reviewed 8 items Introduced change: Reviewed the pinned merge-base-to-head diff. Changes concern UI presentation, shared display ordering, documentation, and regression coverage; base-only changes were excluded.
Still necessary on main: Fetched main retains the two-column phone grid and the older label treatment. The merged provider-icon work supplies presentation metadata but does not implement this mobile layout repair.
Release comparison: The latest release uses an older vertically arranged flex layout, without this PR's capped fading labels. It is not evidence that the current-main defect has already been fixed.
Findings None None.
Security None None.

How this fits together

The 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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +100, Tests +379, Docs +4. Total +483 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 6 127 27 +100
Tests 7 416 37 +379
Docs 1 4 0 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 14 547 64 +483

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net +93 lines; tests and test support net +379 lines Production growth extends existing presentation owners; most added coverage exercises layout, accessibility, ordering, and selection behavior.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #153755
Summary: This PR is the explicit implementation candidate for the mobile clipping report; the earlier merged icon work is adjacent context.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This repairs a bounded mobile readability problem without evidence of blocked session creation or urgent runtime impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected source-app before/after screenshots at 390px light and 320px dark demonstrate the changed New Session CSS and summary template, including final-head fading and spacing. Browser assertions supplement the visible proof with accessibility, RTL, and selection checks.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected source-app before/after screenshots at 390px light and 320px dark demonstrate the changed New Session CSS and summary template, including final-head fading and spacing. Browser assertions supplement the visible proof with accessibility, RTL, and selection checks.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected source-app before/after screenshots at 390px light and 320px dark demonstrate the changed New Session CSS and summary template, including final-head fading and spacing. Browser assertions supplement the visible proof with accessibility, RTL, and selection checks.

Evidence

What I checked:

  • Introduced change: Reviewed the pinned merge-base-to-head diff. Changes concern UI presentation, shared display ordering, documentation, and regression coverage; base-only changes were excluded. (ui/src/styles/new-session.css:1311, ef54a8e08769)
  • Still necessary on main: Fetched main retains the two-column phone grid and the older label treatment. The merged provider-icon work supplies presentation metadata but does not implement this mobile layout repair. (ui/src/styles/new-session.css:1280, 356b0f186b78)
  • Release comparison: The latest release uses an older vertically arranged flex layout, without this PR's capped fading labels. It is not evidence that the current-main defect has already been fixed. (ui/src/styles/new-session.css:1235, ec9c1a13db89)
  • Inspected visual proof: Inspected all four prepared full-viewport screenshots: before/after at 390px light and 320px dark. The captured body identifies before as b70e448 and after as ef54a8e; the narrow after image visibly shows single-line fading labels, the revised summary, and compact chevron spacing. These are source-app captures with synthetic mock-Gateway state, not live provisioning evidence. (ef54a8e08769)
  • Re-review continuity: The previous completed review retained no findings. GitHub's exact-head commit patch confirms that the subsequent change reduces fade padding from 16px to 8px and mobile chevron margin from 12px to 4px, with assertions bounding both element spacing and visible text spacing. (ui/src/pages/new-session/placement-controls.browser.test.ts:176, ef54a8e08769)
  • Selection and security boundary: Both menu consumers use the same backend-identity comparator on copied arrays. Profile IDs, disabled-choice guards, accessible names, and selection callbacks remain intact. No plugin API, authorization, persistent state, dependency, or executable infrastructure changes are introduced. (ui/src/components/provider-icon.ts:206, ef54a8e08769)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-20T14:30:06.430Z sha cffd32a :: needs maintainer review before merge. :: none
  • reviewed 2026-09-20T16:44:48.146Z sha 45aeba1 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-20T16:53:44.663Z sha b70e448 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-20T22:02:49.909Z sha 357f48c :: needs maintainer review before merge. :: none

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]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Icon balance and chevron spacing refinement

Following 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 cffd32a versus refined head 45aeba1. All examples use synthetic mock-Gateway state.

390px mobile, light — before / after

Before icon balance: 390px mobile, light

After icon balance: 390px mobile, light

320px mobile, dark — before / after

Before icon balance: 320px mobile, dark

After icon balance: 320px mobile, dark

Desktop — before / after

Before icon balance: Desktop

After icon balance: Desktop

Compact menu context — before / after

Before icon balance: Compact menu context

After icon balance: Compact menu context

roboclaw-bot and others added 2 commits September 20, 2026 16:45
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]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Final mobile width and text treatment

Per 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: b70e448. After: 8af7a89. Full hosted CI is not claimed complete.

390px mobile, light — before / after

Before width/fade: 390px mobile, light

After width/fade: 390px mobile, light

320px mobile, dark — before / after

Before width/fade: 320px mobile, dark

After width/fade: 320px mobile, dark

Desktop — before / after

Before width/fade: Desktop

After width/fade: Desktop

Menu context — before / after

Before width/fade: Menu context

After width/fade: Menu context

roboclaw-bot and others added 2 commits September 20, 2026 21:51
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]>
@roboclaw-bot
roboclaw-bot merged commit f0f31b4 into main Sep 20, 2026
165 checks passed
@roboclaw-bot
roboclaw-bot deleted the fix/mobile-placement-picker-layout branch September 20, 2026 23:13
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 21, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Long placement selections are clipped on mobile

1 participant