Skip to content

fix(ui): center the content-sized mobile permissions menu - #194126

Merged
vyctorbrzezowski merged 4 commits into
mainfrom
openclaw/mobile-permissions-tightening
Nov 6, 2026
Merged

vyctorbrzezowski merged 4 commits into
mainfrom
openclaw/mobile-permissions-tightening

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

The mobile permissions menu now centers in the viewport while keeping its content-sized panel, tight rows, and position above the permission trigger. Desktop placement and selection/focus behavior are unchanged.

Validation: inspected natural-flow captures at 320/390px and desktop; existing permission interaction coverage retained; focused format, lint, type and test-line checks pass. Selection, focus return, and keyboard shortcuts were verified through the actual controls.

The original unknown-version Safari stretching report remains unconfirmed. These captures do not claim to reproduce it; no real iPhone/iOS Safari proof is available.

Viewport Before After
320x720 Permissions before 320x720 Permissions after 320x720
390x720 Permissions before 390x720 Permissions after 390x720
1280x800 Permissions before 1280x800 Permissions after 1280x800

Human credit: vincentkoc and vyctorbrzezowski.

roboclaw-bot and others added 2 commits November 6, 2026 12:38
…ith gaps between rows

Worked on by:
- @vincentkoc
- @vyctorbrzezowski

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 73b36937-a89c-4996-a729-6c3f2d31ee9a
@clawsweeper

clawsweeper Bot commented Nov 6, 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-environment Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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-environment Preliminary submission classification; full source review pending. labels Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR explicitly aligns the permissions popover above its trigger to prevent stretching and widely spaced rows.

Example: Open permissions at 393×720 with the documented stretch emulation.

  • Before: The panel reaches the viewport top with roughly 46px gaps between rows.
  • After: The panel fits its content above the trigger with roughly 2px row gaps.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A minimal, useful layout repair with inspectable emulated evidence and one concrete CI defect.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored PR is outside the ordinary contributor proof gate; inspected browser screenshots demonstrate compact permissions geometry under explicitly disclosed stretch emulation, not confirmation on the reported device.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: The mobile permissions menu can occupy the space above the composer with large gaps between choices.
Reason: The maintainer-authored direction restores compact menu geometry with one declaration and no new configuration or permission behavior.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this maintainer-authored PR open: the CSS repair is focused, but its added regression causes the test-line budget gate to fail.

Priority: P2
Reviewed head: 4b41dd9f59ddb2ee8f4d8e153f71177158579365

Before merge

  • Allocate the added regression's test-line growth (P2) - This regression adds 65 net counted lines without changing the test allocation records, leaving the reviewed tree exactly 65 lines above its ceiling. The current-head checks-fast-baseline-ratchets annotation reports test-lines failed, which also fails the aggregate CI gate. Add a dedicated justified 65-line allocation under config/test-lines-allocations/ while preserving the shared scalar and regression assertions.

Findings

  • [P2] Allocate the added regression's test-line growth — ui/src/e2e/chat-composer-picker-layout.e2e.test.ts:97-99

Tests

  • Missing end-to-end proof: The supplied evidence does not establish recovery on the originally affected iPhone/Safari version or exercise the below-trigger flip fallback.
Agent review details

How this fits together

The Control UI composer renders permission choices through the shared native Menu overlay; composer CSS controls panel geometry, while selection continues through the existing sessions.patch path.

flowchart TD
  A[Composer permission trigger] --> B[Shared Menu overlay]
  B --> C[Native anchor positioning]
  D[Composer permission styles] --> C
  C --> E[Permission choices]
  E --> F[Existing session permission owner]
Loading

Technical review

Best possible solution:

Retain the single-declaration repair and focused browser regression, with an exact allocation for its justified test growth.

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

The original device failure has no high-confidence reproduction: the affected Safari version is unknown, and the PR reports that current WebKit requires injected styles to reproduce it.

Is this the best way to solve the issue?

Explicit alignment in the existing panel rule is the smallest plausible repair for the demonstrated stretch condition, preserving shared overlay ownership and permission semantics.

Full review comments:

  • [P2] Allocate the added regression's test-line growth — ui/src/e2e/chat-composer-picker-layout.e2e.test.ts:97-99
    This regression adds 65 net counted lines without changing the test allocation records, leaving the reviewed tree exactly 65 lines above its ceiling. The current-head checks-fast-baseline-ratchets annotation reports test-lines failed, which also fails the aggregate CI gate. Add a dedicated justified 65-line allocation under config/test-lines-allocations/ while preserving the shared scalar and regression assertions.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Permission-menu grid presentation keeps the original intent (697e69e: Clarify inherited defaults, restricted options, and pending permission choices while preserving the existing permission owner.)
  • Native picker ownership and mobile layout regression suite keeps the original intent (58ea8e5: Replace Web Awesome pickers with native primitives while retaining placement, keyboard behavior, restrictions, and lazy boundaries.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm check:test-lines-ratchet --base 5d22c51 --no-merge-base
  • git diff --check
  • Confirm checks-fast-baseline-ratchets passes on the repaired head.

What I checked:

  • Pinned introduced change: The introduced diff adds align-self: end to the existing permission-menu rule and a Chromium/WebKit geometry regression; it introduces no additional production owner. (ui/src/styles/chat/composer.css:2249, 4b41dd9f59dd)
  • Current-main behavior: Fetched main retains the grid permission menu without explicit block alignment; the shared overlay supplies top-start placement and flip fallbacks. (ui/src/styles/chat/composer.css:2215, 03c7efa66c06)
  • Inspected visual evidence: Both downloaded screenshots were inspected: the before panel fills the space above the composer, and the after panel has compact rows near its trigger. The PR explicitly identifies these as emulated captures and credits @vincentkoc and @vyctorbrzezowski. (4b41dd9f59dd)
  • Diff-caused budget failure: The test grows from 262 to 327 lines without an allocation change. Independent read-only counting finds 6,539,375 test lines against a 6,539,310 ceiling, exactly 65 over budget; the current-head check annotation reports test-lines failed, and the aggregate gate reports the resulting ratchet failure. (ui/src/e2e/chat-composer-picker-layout.e2e.test.ts:97, 4b41dd9f59dd)
  • Existing layout intent: fix(ui): clarify execution permission picker states #184777 established the permission hierarchy and pending-state presentation; refactor(ui): replace Web Awesome chat pickers #171301 preserved shared native overlay ownership and permission restrictions. This patch retains both contracts. (ui/src/styles/chat/composer.css:2240, 697e69eff4a8)
  • Review boundaries: Root and UI AGENTS.md policies were applied; no maintainer-notes directory exists. Historical searches reached unavailable older objects, and detailed CI logs redirected to a blocked storage host; available source, annotations, and independent counting establish the budget defect. No target code or additional reviewer was run, and the checkout remains clean. (AGENTS.md, 4b41dd9f59dd)

PR surface

Source +3, Tests +65. Total +68 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 3 0 +3
Tests 1 66 1 +65
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 69 1 +68

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test growth Production CSS +3 lines; tests +65 net lines One declaration and its explanatory comment address geometry; the test growth covers row spacing, trigger proximity, and selection in two browser engines.

Labels

Label changes:

  • add P2: This is a limited mobile menu layout repair with a narrow, mechanically fixable CI blocker.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This is a limited mobile menu layout repair with a narrow, mechanically fixable CI blocker.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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 6, 2026, 8:05 AM ET / 13:05 UTC.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 6, 2026
Replace forced-style Safari emulation with natural mobile centering, tight-row, selection and keyboard coverage.

Co-authored-by: vincentkoc <[email protected]>
@vyctorbrzezowski vyctorbrzezowski changed the title fix(ui): mobile permissions menu stretches to the top of the screen with gaps between rows fix(ui): center the mobile permissions menu Nov 6, 2026
Retain existing permission interaction owners and the inspected visual proof without adding a repeated browser case for placement polish.

Co-authored-by: vincentkoc <[email protected]>
@vyctorbrzezowski vyctorbrzezowski changed the title fix(ui): center the mobile permissions menu fix(ui): center the content-sized mobile permissions menu Nov 6, 2026
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) November 6, 2026 14:18
@vyctorbrzezowski
vyctorbrzezowski merged commit 8f20abc into main Nov 6, 2026
86 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/mobile-permissions-tightening branch November 6, 2026 14:23
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 7, 2026
…94126)

Center the mobile permissions picker in the viewport while preserving compact rows and desktop placement.

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: Vyctor H. Brzezowski <[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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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.

2 participants