Skip to content

fix(ui): center compact permission icons - #130137

Merged
roboclaw-bot merged 1 commit into
mainfrom
openclaw/investigate-icon-alignment-issues
Aug 26, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
openclaw/investigate-icon-alignment-issues

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes an issue where mobile Control UI users saw the permission-mode icon shifted 10px left inside its 44px compact composer control after the label was hidden. The misalignment affected every permission glyph in both compact chat and new-session composer layouts.

AI-assisted: yes.

Why This Change Was Made

The compact responsive rules now center the icon-only permission trigger and remove its leftover inline padding while preserving the labeled desktop control. Existing chat and new-session browser flows now check the glyph-to-button center invariant at the compact breakpoint.

User Impact

Permission icons, including Workspace, now sit centered with the neighboring composer controls on mobile and narrow layouts.

Evidence

Before

The selected Workspace folder sits visibly left of the 44px permission control center.

Before: Workspace permission icon shifted left

After — chat composer

The same folder is centered in the selected chat permission control without moving or clipping sibling controls.

After: Workspace permission icon centered in chat

After — new-session composer

The separate new-session responsive selector has direct geometry coverage and an inspected selected-state capture.

After: Workspace permission icon centered in new session

  • Parent-commit chat and new-session regressions each fail with expected 10 to be less than or equal to 1.
  • Fixed-head combined browser regression: 2 files, 7 tests passed, with a maximum allowed center error of 1px.
  • Focused command: node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-composer-redesign.e2e.test.ts ui/src/e2e/new-session-page.places.e2e.test.ts
  • Targeted formatting, whitespace checks, and fresh autoreview passed before publication.
  • Production LOC: +4/-0. Tests: +53/-0.
  • Initial exact-head CI passed after one documented rerun of an unrelated new-session draft-handoff E2E flake; that failing file passed focused local reproduction. The amended head must pass fresh exact-head CI before landing.

@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 26, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review August 26, 2026 13:35
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Aug 26, 2026
@clawsweeper

clawsweeper Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 10:19 AM ET / 14:19 UTC.

ClawSweeper review

What this changes

Centers icon-only permission controls in compact chat and new-session composers and adds browser geometry checks for both layouts.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

No blocking patch defect found: the revised head now covers both distinct compact composer layouts. Keep this maintainer-labeled PR open for explicit maintainer handling and completion of exact-head checks.

Priority: P3
Reviewed head: f88644536d88d0e3129760ad9ec4872a85e22284
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused UI repair with direct rendered-geometry coverage for both affected composer layouts.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: This maintainer/bot PR is exempt from the external-contributor proof gate; its body nevertheless supplies after-fix screenshots and a focused browser-test transcript.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer/bot PR is exempt from the external-contributor proof gate; its body nevertheless supplies after-fix screenshots and a focused browser-test transcript.
Evidence reviewed 6 items Shared control owner: The shared permission picker renders the trigger as a flex button containing an icon and label, so compact alignment belongs in the responsive stylesheet rather than either page-specific renderer.
Both composer call sites: Chat supplies the shared picker through its composer lead control, while New Session injects the same picker into its separate composer lead; the two responsive CSS selectors therefore cover the complete affected surface.
Compact CSS repair: The changed compact selectors override the inherited left-aligned, padded labeled-trigger layout with a fixed compact width, centered content, and zero inline padding.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-composer-redesign.e2e.test.ts ui/src/e2e/new-session-page.places.e2e.test.ts

Result: FAIL (failed) — step 1 run node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-composer-redesign.e2e.test.ts ui/src/e2e/new-session-page.places.e2e.test.ts: previous terminal command was still running after 30 seconds: "node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-composer-redesign.e2e.test.ts ui/src/e2e/new-session-page.places.e2e.test.ts"

RUN  v4.1.11 /tmp/clawsweeper-live-proof-130137-IsWm1m/target

[vitest] still running with no output for 30000ms.

Assertions:

  • FAIL expect_output: Test Files

How this fits together

Control UI chat and new-session pages share the permission-picker button but place it in different responsive composer containers. The CSS converts those label-hidden controls into centered icon buttons, while E2E tests verify the resulting visible geometry.

flowchart LR
A[Chat composer] --> C[Shared permission picker]
B[New-session composer] --> C
C --> D[Responsive compact CSS]
D --> E[Centered icon-only control]
E --> F[Browser geometry checks]
Loading

Decision needed

Question Recommendation
Should this maintainer-labeled UI correction be merged once the exact-head UI checks are green? Merge after green checks: Accept the focused responsive fix once the exact PR head's required checks complete successfully.

Why: The patch is technically sound, but the protected maintainer label requires explicit maintainer handling rather than automated cleanup.

Before merge

  • Resolve merge risk (P1) - Exact-head UI and E2E checks were still running after the force-push; merge only after they complete successfully.
  • Resolve merge risk (P1) - The bug fix adds four production CSS declarations; they are necessary overrides of the shared labeled-trigger defaults, so no net-neutral absorption is apparent.
  • Complete next step (P2) - No concrete repair remains; a maintainer should decide on landing after the exact-head checks complete.
Agent review details

Security

None.

PR surface

Source +4, Tests +53. Total +57 across 3 files.

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

Review metrics

Metric Value Why it matters
Production versus test LOC production +4, tests +53 The small CSS override is paired with rendered-geometry coverage for both independently composed responsive routes.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the two compact owner selectors and their route-specific geometry coverage, then land only after the exact head passes its required checks.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain the two compact owner selectors and their route-specific geometry coverage, then land only after the exact head passes its required checks.

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

Yes, source-reproducible: the shared trigger defaults to left alignment and inline padding, while compact layouts hide its label; both E2E routes now measure the resulting center invariant. No live run was executed in this read-only review.

Is this the best way to solve the issue?

Yes. The shared-picker rendering and two distinct responsive owners make focused CSS overrides plus route-specific geometry assertions the narrowest maintainable fix.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is not_applicable.

Label justifications:

  • P3: This is a narrow, non-blocking compact-layout polish fix.
  • 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. Not applicable: This maintainer/bot PR is exempt from the external-contributor proof gate; its body nevertheless supplies after-fix screenshots and a focused browser-test transcript.

Evidence

What I checked:

  • Shared control owner: The shared permission picker renders the trigger as a flex button containing an icon and label, so compact alignment belongs in the responsive stylesheet rather than either page-specific renderer. (ui/src/pages/chat/components/chat-permission-picker.ts:104, f88644536d88)
  • Both composer call sites: Chat supplies the shared picker through its composer lead control, while New Session injects the same picker into its separate composer lead; the two responsive CSS selectors therefore cover the complete affected surface. (ui/src/pages/new-session/new-session-page.ts:577, f88644536d88)
  • Compact CSS repair: The changed compact selectors override the inherited left-aligned, padded labeled-trigger layout with a fixed compact width, centered content, and zero inline padding. (ui/src/styles/chat/layout.css:7311, f88644536d88)
  • Behavior-level regression coverage: The E2E tests measure icon-to-trigger center error at or below one pixel in both chat and New Session, testing rendered geometry rather than CSS implementation details. (ui/src/e2e/new-session-page.places.e2e.test.ts:302, f88644536d88)
  • Feature provenance: Permission modes and the compact composer neighborhood trace to Peter Steinberger's session-permissions and footer-layout commits; recent composer work was also carried by Vyctor H. Brzezowski. (ui/src/pages/chat/components/chat-permission-picker.ts:82, 4b0d573437b6)
  • Current review limitation: The supplied checkout contains the PR head as a root commit and could not resolve GitHub DNS, so an independent local base comparison and remaining discussion retrieval were unavailable; the provided PR context and exact-head source were reviewed. (f88644536d88)

Likely related people:

  • Peter Steinberger: Introduced session permission modes and then maintained compact composer footer behavior. (role: feature introducer and adjacent UI owner; confidence: high; commits: 4b0d573437b6, 389fed29cf1a; files: ui/src/pages/chat/components/chat-permission-picker.ts, ui/src/styles/chat/layout.css)
  • Vyctor H. Brzezowski: Recently changed the shared composer area containing the permission-picker call path. (role: recent composer contributor; confidence: medium; commits: 18beca535036; files: ui/src/pages/chat/components/chat-permission-picker.ts)

Rank-up moves

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

  • Let the exact-head required checks, including the UI E2E lane, finish green before merging.

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-26T13:43:21.017Z sha 580d3bcf2b0872f782f788575b1816c17535c508 :: needs maintainer review before merge. :: none

Center icon-only permission triggers in compact chat and new-session composer layouts, with browser regression coverage for both responsive states.

Co-authored-by: Tak Hoffman <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/investigate-icon-alignment-issues branch from 580d3bc to f886445 Compare August 26, 2026 14:14
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Land-ready verification for f88644536d88d0e3129760ad9ec4872a85e22284:

  • Root cause: compact permission triggers hid their labels but retained start alignment and inline padding, shifting every permission glyph 10px left inside the 44px target.
  • Owner fix: center and remove inline padding in the two responsive selectors that own icon-only presentation; labeled desktop behavior remains unchanged.
  • ClawSweeper rank-up move applied: the separate new-session selector now has direct browser geometry proof and an inspected selected Workspace screenshot.
  • Pre-fix proof: chat and new-session regressions each fail at 10px against a <=1px invariant.
  • Fixed proof: node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-composer-redesign.e2e.test.ts ui/src/e2e/new-session-page.places.e2e.test.ts — 2 files, 7 tests passed.
  • Exact-head CI: https://github.com/openclaw/openclaw/actions/runs/32979014879 — green.
  • Final branch-wide autoreview: clean, no accepted/actionable findings.
  • Visual proof: inspected before, chat-after, and new-session-after screenshots are embedded in the PR body.
  • Delta: production +4/-0; tests +53/-0.
  • Known proof gaps: none for the changed responsive surfaces.

@roboclaw-bot
roboclaw-bot merged commit af36abd into main Aug 26, 2026
81 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the openclaw/investigate-icon-alignment-issues branch August 26, 2026 14:35
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
Center icon-only permission triggers in compact chat and new-session composer layouts, with browser regression coverage for both responsive states.

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: Tak Hoffman <[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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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