Skip to content

improve(ui): make pending device approvals easier to act on from a phone - #190372

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/mobile-devices
Nov 2, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/mobile-devices

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

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.

Before, Absolutely light After, Absolutely light After, Details open
After approving After, Absolutely dark After, CRT Real Safari, After

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/devices unit tests, device alias rename e2e. ui:check-performance:base reports the total CSS budget, which main already exceeds.

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

clawsweeper Bot commented Nov 1, 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:feature 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: 🦐 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:feature Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

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

  • Before: Approve and Reject are quiet buttons indented beneath the device name.
  • After: Approve uses the accent color, and the decision row starts at the card edge.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The visual behavior is demonstrated and the implementation is focused, but an attributable performance-budget failure blocks readiness.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected browser screenshots exercise the Devices view at 390 px with synthetic pending requests, showing the changed action alignment, accent styling, and expanded Details in light and dark themes; native Safari was not claimed.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Pending approval actions are visually subdued and indented on a phone.
Reason: The maintainer-authored direction is already approved, and the screenshots show a useful improvement with narrow scope.

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
Reviewed head: 51396b2fef5c0d9879f40e7ccc1969020c0aec7d

Before merge

  • Reduce the added CSS to satisfy the existing growth budget (P2) - The exact-head control-ui-performance check fails on growth introduced by this stylesheet. Its annotations show total gzip CSS rising from 309657 B on the base to 309755 B, above the permitted 309721 B; raw CSS also exceeds its inherited-base allowance. The existing evaluator already accommodates an over-budget base, so that baseline does not explain away this failure. Simplify or consolidate the mobile rules while preserving the shown layout, and pass the existing budget without raising its limits.

Findings

  • [P2] Reduce the added CSS to satisfy the existing growth budget — ui/src/styles/devices.css:240-249
Agent review details

How this fits together

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

Technical review

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

  • [P2] Reduce the added CSS to satisfy the existing growth budget — ui/src/styles/devices.css:240-249
    The exact-head control-ui-performance check fails on growth introduced by this stylesheet. Its annotations show total gzip CSS rising from 309657 B on the base to 309755 B, above the permitted 309721 B; raw CSS also exceeds its inherited-base allowance. The existing evaluator already accommodates an over-budget base, so that baseline does not explain away this failure. Simplify or consolidate the mobile rules while preserving the shown layout, and pass the existing budget 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 88f177ae713f.

Provenance checked

  • Pending device decision button keeps the original intent (f172da3: Prevent duplicate decisions and identify each device to screen readers.)
  • Mobile row action alignment changes intended behavior with a stated reason (eb7dfa1: Structure inventory rows around a shared tile, body, and controls grid.)
  • Details touch target keeps the original intent (5413688: Make phone settings usable with full-width content and accessible touch targets.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm lint:ui:styles
  • pnpm ui:check-performance:base
  • Inspect matching before/after Devices screenshots at 390 px if the repair changes computed presentation.

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit eb7dfa1 adds ui/src/styles/devices.css:243 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: eb7dfa1bbda6; files: ui/src/styles/devices.css)
  • Mitchell Etzel: Raw commit f172da3 adds ui/src/pages/devices/entry-menu.tsx:29 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f172da3c5130; files: ui/src/pages/devices/entry-menu.tsx)
  • Vyctor H. Brzezowski: Raw commit d9ae05b adds ui/src/styles/devices.css:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d9ae05b7ba57; files: ui/src/styles/devices.css)

PR surface

Source +21. Total +21 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 22 1 +21
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 22 1 +21

Labels

Label changes:

  • add P3: This is mobile visual polish; existing approval functionality remains available.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster 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:

  • P3: This is mobile visual polish; existing approval functionality remains available.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • 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, 9:10 AM ET / 14:10 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 96e5203 into main Nov 2, 2026
83 of 87 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/mobile-devices branch November 2, 2026 10:50
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 3, 2026
…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.
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: 🦐 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.

1 participant