Repository navigation
improve(ui): make pending device approvals easier to act on from a phone - #190372
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR emphasizes pending device approvals and centers Details labels on phone-sized screens. Example: Open Devices at 390 px with a pending MacBook Pro request.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored mobile improvement has convincing visual evidence, but its added CSS fails the enforced performance gate. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherThe Devices page renders Gateway inventory and pending requests; this change adjusts their browser presentation while retaining existing decision handlers. flowchart LR
A[Gateway inventory] --> B[Devices page]
B --> C[Pending request row]
C --> D[Mobile styles]
C --> E[Existing decision handler]
E --> F[Gateway pairing operation]
Technical reviewBest possible solution: Preserve the demonstrated mobile presentation while reducing CSS growth enough to satisfy the existing performance budget. Do we have a high-confidence way to reproduce the issue? Current-main CSS explains the indented quiet buttons, and the supplied before screenshot shows that presentation at 390 px; no target code was executed during review. Is this the best way to solve the issue? The existing component and stylesheet are the right owners, and the change introduces no additional state or parallel behavior, but its CSS must meet the enforced growth limit. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 88f177ae713f. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +21. Total +21 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 1, 2026, 9:10 AM ET / 14:10 UTC. |
…one (openclaw#190372) Improve phone device approval actions and details while retaining existing permission and decision behavior. Center icon-only menu triggers through their shared style owner. CI41367506791/1: all functional, type, lint and security checks passed. Approved CSS budget exception: +142 bytes gzip and +740 bytes raw versus paired main. Approved visual presentation and fixes retained.
What Problem This Solves
At phone width, a pending device approval looks like every other row. Approve and Reject are the same quiet button, indented 50 px under the device icon, so the one decision on the page does not stand out. The Details label also sits at the top of its 44 px tap area, which leaves uneven space below it.
User Impact
On a phone, Approve is the accent button, first in the row, and starts at the card edge. The pending card is 30 px shorter at 390 px, with even space around Details, and the box under an open Details sits closer to its label. The three-dots button centers on its row beside Approve, Reject and Desktop. Desktop does not change, so desktop's Approve stays the neutral button and differs from the phone's accent fill.
Why This Change Was Made
Approving a device is the task someone opens this page for on a phone. Below 640 px, only the pending request's action row spans the full card, and only its Approve button takes the primary tokens. The three-dots icon sat about 6 px high because it was inline text in the shared menu label. Below 640 px, a shared menu label holding only an icon now centers it, so this also applies to icon-only menu triggers on other pages. No action, state or copy changes.
Evidence
Mock data at 390 px with real taps. For the after-approve image, the mock Gateway's own request handlers served the approve call and the updated list. The Pending approval section leaves in one step and Paired devices moves up with no intermediate state. Page PRs branch from main, so these images show today's top bar until the header PR lands.
After at 320 px
The menu icon measures 0 px off center on both axes in its 44 px button at 320 and 390 px. At 1280 px Approve stays the neutral button, and every new rule sits inside the phone query.
Local checks pass: oxfmt, stylelint,
tsgo:ui,src/pages/devicesunit tests, device alias rename e2e.ui:check-performance:basereports the total CSS budget, which main already exceeds.