Repository navigation
fix(ui): center compact permission icons - #130137
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 10:19 AM ET / 14:19 UTC. ClawSweeper reviewWhat this changesCenters icon-only permission controls in compact chat and new-session composers and adds browser geometry checks for both layouts. Merge readinessNo 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 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherControl 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]
Decision needed
Why: The patch is technically sound, but the protected maintainer label requires explicit maintainer handling rather than automated cleanup. Before merge
Agent review detailsSecurityNone. PR surfaceSource +4, Tests +53. Total +57 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
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]>
580d3bc to
f886445
Compare
|
Land-ready verification for
|
|
Merged via squash.
|
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]>
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.
After — chat composer
The same folder is centered in the selected chat permission control without moving or clipping sibling controls.
After — new-session composer
The separate new-session responsive selector has direct geometry coverage and an inspected selected-state capture.
expected 10 to be less than or equal to 1.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