Skip to content

fix(ui): schedule unit pickers overflow their cells at phone widths - #123175

Merged
steipete merged 3 commits into
mainfrom
codex/autoqa-select-picker-minwidth
Aug 14, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/autoqa-select-picker-minwidth

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users on phone-width screens (~320px) editing an automation schedule ("Every N " or stagger window) would see the unit picker overflow its grid cell, clipping/overlapping the adjacent number input. Any other narrow picker container (workboard's min-width: 0 rule is now dead) has the same latent overflow.

Why This Change Was Made

#123085 fixed real ellipsis-collapse in the chat composer and new-session pickers by promoting a 138px minimum onto the shared select-picker component — but as an inline style, which beats every consumer stylesheet. The cron form's minmax(0,1fr) grid columns resolve to ~125-135px at 320px viewport; an unconditional floor forces overflow. min-width:min(138px,100%) keeps the readable-label floor wherever the container is wide enough and never exceeds the host. The mobile picker e2e added by #123085 (which asserts readable labels at 364px viewport) still passes because 100% > 138px there. Also fixes the stale "keep 8ch" comment left from the pre-138px iteration.

User Impact

Automation schedule editors on phones no longer clip; chat composer/new-session pickers keep their readable-label floor unchanged.

Evidence

  • ui/src/e2e/new-session-page.workspace-memory.e2e.test.ts (the fix: picker option labels collapse to ellipsis at phone widths #123085 regression suite incl. mobile readable-label assertions): 13 passed.
  • ui/src/pages/chat/chat-responsive.browser.test.ts: 86 passed.
  • New unit test ui/src/components/select-picker.test.ts pins the capped inline floor.
  • Fresh autoreview (codex/gpt-5.6-sol, high): clean, "patch is correct (0.99)".
  • Production LOC delta: net 0 (one-token style change + comment fix).

The phone-width ellipsis fix (#123085) promoted a chat-composer-scoped
138px minimum onto the shared select-picker inline style, which beats
every consumer stylesheet. Containers that legitimately shrink below
138px overflow instead: the cron 'Every N <unit>' and stagger-window
unit pickers spill out of their minmax(0,1fr) grid cells at 320px, and
workboard's min-width:0 became dead. Cap the floor at the host width
with min(138px,100%); the readable-label floor is preserved everywhere
the container is wide enough (the mobile e2e asserts it at 364px). Also
fix the stale '8ch' comment from the pre-138px iteration.
@clawsweeper

clawsweeper Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 13, 2026 12:09
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 13, 2026
@steipete steipete closed this Aug 13, 2026
@steipete steipete reopened this Aug 13, 2026
@steipete steipete closed this Aug 13, 2026
@steipete steipete reopened this Aug 13, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 14, 2026
@clawsweeper

clawsweeper Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 13, 2026, 10:18 PM ET / August 14, 2026, 02:18 UTC.

ClawSweeper review

What this changes

This PR caps the shared web UI select picker’s 138px readable-label minimum at its host width and adds a regression test for narrow containers.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for maintainer review: the supplied diff is a focused UI repair, but the read-only shell failed before current-main, scoped-policy, history, and Web Awesome contract checks could be completed.

Priority: P2
Reviewed head: 91f267e1d8aaada8e71171f1d07f0ac3d8e55759
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and test-backed in the supplied context, but local current-main and dependency-contract verification was unavailable.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is not subject to the external-contributor proof gate; the supplied CI and test claims remain supplemental evidence.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is not subject to the external-contributor proof gate; the supplied CI and test claims remain supplemental evidence.
Evidence reviewed 3 items Proposed shared-component repair: The supplied PR patch changes the shared picker from an unconditional 138px minimum to min(138px,100%), targeting narrow host containers while preserving the wider readable-label floor.
Related merged picker work: The supplied context identifies merged PR #123085 as the earlier readable-label-floor change, making it relevant history rather than a replacement for this narrow-container repair.
Inspection infrastructure failure: The read-only command did not execute: the sandbox reported “bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted.” Consequently no local source, history, scoped AGENTS.md, or dependency inspection is claimed.
Findings None None.
Security None None.

How this fits together

The web UI renders shared select controls in chat and automation forms. Each form supplies available width; the picker’s inline size then controls the Web Awesome select trigger and dropdown layout.

flowchart LR
A[Chat and automation forms] --> B[Shared select picker]
B --> C[Inline width rule]
C --> D[Web Awesome select trigger]
D --> E[Picker and dropdown layout]
Loading

Decision needed

Question Recommendation
Should this maintainer-authored, protected PR be landed after a UI owner verifies the exact-head narrow-container and mobile-picker behavior? Verify then land: Run the focused UI source and viewport checks on the exact head, then merge if both narrow schedule cells and wider mobile pickers behave as intended.

Why: The supplied patch is plausible, but the required local evidence pass could not run in this review environment.

Before merge

  • Resolve merge risk (P1) - The review shell failed before current-main, scoped UI policy, consumer layout, and direct Web Awesome contract inspection; merge should wait for that evidence pass.
  • Complete next step (P2) - A UI owner needs to complete the blocked exact-head source, dependency, and viewport evidence pass before merge.
Agent review details

Security

None.

PR surface

Source +1, Tests +23. Total +24 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 4 3 +1
Tests 1 23 0 +23
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 27 3 +24

Review metrics

Metric Value Why it matters
Production versus test delta production behavior +0; comments +1; tests +23 The functional change is one shared width-expression replacement, while the added test pins the intended host-width cap.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Review the exact head against current shared-picker consumers and confirm a phone-width schedule form no longer overflows while chat pickers retain their readable labels.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Review the exact head against current shared-picker consumers and confirm a phone-width schedule form no longer overflows while chat pickers retain their readable labels.

Do we have a high-confidence way to reproduce the issue?

Unclear: the PR body describes a 320px schedule-layout failure, but the review shell could not inspect or run the current UI path.

Is this the best way to solve the issue?

Unclear: changing the shared picker is a plausible owner-boundary repair, but direct consumer and Web Awesome sizing-contract checks remain unavailable.

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against 941b5240c63b.

Labels

Label justifications:

  • P2: This is a limited-blast-radius mobile web UI layout repair.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is not subject to the external-contributor proof gate; the supplied CI and test claims remain supplemental evidence.

Evidence

What I checked:

  • Proposed shared-component repair: The supplied PR patch changes the shared picker from an unconditional 138px minimum to min(138px,100%), targeting narrow host containers while preserving the wider readable-label floor. (ui/src/components/select-picker.ts:46, 91f267e1d8aa)
  • Related merged picker work: The supplied context identifies merged PR fix: picker option labels collapse to ellipsis at phone widths #123085 as the earlier readable-label-floor change, making it relevant history rather than a replacement for this narrow-container repair. (ui/src/components/select-picker.ts:46, 600126acaa23)
  • Inspection infrastructure failure: The read-only command did not execute: the sandbox reported “bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted.” Consequently no local source, history, scoped AGENTS.md, or dependency inspection is claimed.

Likely related people:

  • steipete: The supplied history attributes both the earlier merged shared-picker floor and this targeted follow-up to steipete. (role: introduced related behavior and recent area contributor; confidence: medium; commits: 600126acaa23, a0ae97ca1657; files: ui/src/components/select-picker.ts, ui/src/components/select-picker.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Have a UI owner verify the exact PR head at a narrow schedule viewport and at the existing mobile picker viewport.

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 (1 earlier review cycle)
  • reviewed 2026-08-14T01:11:21.827Z sha 94cf044 :: needs maintainer review before merge. :: none

@steipete
steipete merged commit 563cea4 into main Aug 14, 2026
121 checks passed
@steipete
steipete deleted the codex/autoqa-select-picker-minwidth branch August 14, 2026 03:07
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 14, 2026
…nclaw#123175)

The phone-width ellipsis fix (openclaw#123085) promoted a chat-composer-scoped
138px minimum onto the shared select-picker inline style, which beats
every consumer stylesheet. Containers that legitimately shrink below
138px overflow instead: the cron 'Every N <unit>' and stagger-window
unit pickers spill out of their minmax(0,1fr) grid cells at 320px, and
workboard's min-width:0 became dead. Cap the floor at the host width
with min(138px,100%); the readable-label floor is preserved everywhere
the container is wide enough (the mobile e2e asserts it at 364px). Also
fix the stale '8ch' comment from the pre-138px iteration.
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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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.

1 participant