Skip to content

improve(ui): keep one height per control at phone width - #190768

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/phone-control-sizes
Nov 2, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/phone-control-sizes

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

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 of RefreshButton.

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

  • 38px for search, filter, segmented, refresh, select and page-level ⋯, 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.
  • 32px for a row's ⋯, from a new --row-action-size, also on the composer's row size.
  • Settings, Skills and Automations no longer force 44px at 640px and below. Wider touch screens keep 44.
  • Settings Skills refresh uses RefreshButton.
  • iOS's 16px input floor is unchanged.

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.tsx and its components.css block match #190390 and #190426, so they merge without conflict. #190369 and #190426 conflict with each other in library-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.

Page Search Filter Segmented Refresh Select Page ⋯ Row ⋯
/sessions 38 38 36 → 38 30/34 → 38 28 → 32
/usage 38 38 38 38
/logs 44 → 38 44 → 38 44 → 38
/activity 38 38
/automations 44 → 38 44 → 38 44 → 38 44 → 38 32
/plugins 44 → 38
/skills 44 → 38
/settings/skills 44 → 38 44 → 38 44 → 38 44 → 38
/settings/plugins 44 → 38 44 → 38
/settings/agents 44 → 38 44 → 38 44 → 38
/settings/model-providers 44 → 38 44 → 38 44 → 38 48
/settings/channels 44 → 38 44 → 38
/settings/devices 44 → 38 44 → 32
/memory-import 38 38
/meetings 44 → 38 44 → 38
/dashboards 38 38

Also 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.tsx has one failure that also occurs on the base without this change. ui:check-performance:base is 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.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

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

  • Before: Search, tabs, refresh, and page actions use 44px controls.
  • After: The toolbar uses 38px controls and the shared refresh button.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful visual proof supports the direction, but directly attributable geometry and performance checks fail.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected browser screenshots show Automations and Settings Skills before and after the sizing change through the real UI with mock Gateway data; the body identifies the integrated environment and reports separate branch-only Chromium/WebKit measurements.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Phone users encounter inconsistent control heights while moving between Control UI pages.
Reason: The maintainer-authored direction explicitly accepts smaller phone targets, reuses shared styling owners, and provides visible before/after improvement.

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
Reviewed head: 4e603fa776ea37bf1250ae599086f78bf4982392

Before merge

  • Update existing geometry regressions for the new phone sizes (P2) - At 390px, the changed sizing makes ordinary Settings actions and Sessions header controls 38px. Existing tests still require at least 44px in hub-tabs.browser.test.tsx:70 and exactly 34×34 in session-kinds.e2e.test.ts:63. Current-head CI annotations show both failures, including the Settings failure in Chromium and WebKit. Update those consumer assertions for the intended phone geometry while preserving desktop expectations and interaction coverage.
  • Remove the additional CSS growth rejected by the performance gate (P2) - The added sizing and refresh rules increase CSS while the base is already above its caps. The current-head performance job explicitly rejects growth beyond its 64-byte variance allowance and reports 1568.9 KiB raw and 303.1 KiB gzip for the candidate. This is an introduced comparative-budget failure, despite the pre-existing absolute overage. Consolidate the affected declarations or remove superseded rules so the existing gate passes without raising its limits.

Findings

  • [P2] Update existing geometry regressions for the new phone sizes — ui/src/styles/settings-controls.css:312-315
  • [P2] Remove the additional CSS growth rejected by the performance gate — ui/src/styles/settings-controls.css:310-316

Tests

  • Missing end-to-end proof: The new toolbar regression is reported green, but a red-on-base run for that regression is not supplied.
Agent review details

How this fits together

Control 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]
Loading

Technical review

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

  • [P2] Update existing geometry regressions for the new phone sizes — ui/src/styles/settings-controls.css:312-315
    At 390px, the changed sizing makes ordinary Settings actions and Sessions header controls 38px. Existing tests still require at least 44px in hub-tabs.browser.test.tsx:70 and exactly 34×34 in session-kinds.e2e.test.ts:63. Current-head CI annotations show both failures, including the Settings failure in Chromium and WebKit. Update those consumer assertions for the intended phone geometry while preserving desktop expectations and interaction coverage.
    Confidence: 1
  • [P2] Remove the additional CSS growth rejected by the performance gate — ui/src/styles/settings-controls.css:310-316
    The added sizing and refresh rules increase CSS while the base is already above its caps. The current-head performance job explicitly rejects growth beyond its 64-byte variance allowance and reports 1568.9 KiB raw and 303.1 KiB gzip for the candidate. This is an introduced comparative-budget failure, despite the pre-existing absolute overage. Consolidate the affected declarations or remove superseded rules so the existing gate passes without raising its limits.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d0177edd6c8d.

Provenance checked

  • Shared field sizing changes intended behavior with a stated reason (880bdcd: Standardize fields and triggers using shared tokens while retaining existing responsive sizing.)
  • Settings phone touch targets changes intended behavior with a stated reason (5413688: Support native embed mode and usable phone-width Settings pages with 44px controls.)
  • Compact agent control changes intended behavior with a stated reason (c1258c0: Share Workboard selection and appearance controls with consistent keyboard and touch behavior.)
  • Skills phone refresh keeps the original intent (improve(ui): compact Settings Skills controls on phones #190369: Place search, refresh, and page actions together in a compact phone toolbar.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/components/solid/hub-tabs.browser.test.tsx
  • pnpm test:ui:e2e ui/src/e2e/session-kinds.e2e.test.ts ui/src/e2e/skills-library.e2e.test.ts
  • pnpm ui:check-performance:base
  • pnpm tsgo:ui
  • pnpm lint:ui:styles

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 880bdcd adds ui/src/styles/settings-controls.css:305 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 880bdcd2fdd4; files: ui/src/styles/settings-controls.css)
  • Peter Steinberger: Raw commit 5413688 adds ui/src/styles/settings.css:839 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5413688330fa; files: ui/src/styles/settings.css)

PR surface

Source +176, Tests +18. Total +194 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 190 14 +176
Tests 1 18 0 +18
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 208 14 +194

Labels

Label changes:

  • add P3: This is responsive visual consistency and control ergonomics without an established blocked user workflow.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is responsive visual consistency and control ergonomics without an established blocked user workflow.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 1, 2026, 8:41 PM ET / November 2, 2026, 01:41 UTC.

Base automatically changed from brzezowski/mobile-settings-skills to main November 2, 2026 11:36
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/phone-control-sizes branch from d8825df to afece9e Compare November 2, 2026 14:53
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/phone-control-sizes branch from afece9e to 1f222ba Compare November 2, 2026 14:54
@vyctorbrzezowski
vyctorbrzezowski merged commit e72184b into main Nov 2, 2026
76 of 78 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/phone-control-sizes branch November 2, 2026 14:56
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 3, 2026
)

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.
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant