Skip to content

improve(ui): show devices as rows with details on demand - #191329

Merged
vyctorbrzezowski merged 4 commits into
mainfrom
brzezowski/settings-devices-redesign
Nov 3, 2026
Merged

vyctorbrzezowski merged 4 commits into
mainfrom
brzezowski/settings-devices-redesign

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The Devices page shows everything about every device at once: a boxed icon, a status pill, a long metadata line, three resource bars, capability chips, a Desktop button, a menu and a Details disclosure per row. On a phone one device fills the screen, so you can't see which devices are connected. A node waiting for re-approval could only be approved from its row menu, and pending requests hid what they ask for behind Details.

User Impact

  • At a glance: one row per device with its name, platform and connection status. A warning appears only when something is wrong: version drift, a missing worker, manual wake, or a resource under pressure.
  • On demand: opening a row shows its actions, resources, tokens with Rotate and Revoke, capabilities, commands and identity. Older pairings now sit inside the row of the machine they belong to.
  • Pending approval: every decision is in one section, with node approvals beside device requests. Each row shows who is asking, why, from which IP and for what access, with Approve and Reject directly on it. All requests carry equal weight, with no accent that could read as a recommendation.
  • Phone: the same component at every width. Approve sits right under the request's name, and warning explanations that only existed as tooltips can now be read.

Every action stays available. Desktop and Edit alias take one more tap, because they moved into the open row.

Why This Change Was Made

Devices are a list you scan, so they became rows, not cards. Row menus are gone: Device ID has its own copy button, and the remaining actions are plain buttons in the open row. Capability chips became a sentence and the token table became rows. The decorative tiles and icons, the "3 of 5 connected" summary and the repeated "Pending approval" pill are removed.

Overlaps #191231, #191235 and #191239 on these rows and the token table; this structure replaces those parts.

Evidence

Mock Gateway responses with paired, pending, offline and long-name devices.

Before After
Desktop Before After
390px Before After

Open row, Absolutely light:

Open row

CRT at 390px keeps square corners:

CRT

Also checked: no devices, Gateway only, 28 devices, Absolutely dark, 320px with no horizontal overflow, and real Safari opening a row with an OS click. The device-alias-rename and device-platform-family real-Gateway e2e tests pass with the new rows.

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

clawsweeper Bot commented Nov 2, 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 the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 2, 2026
@clawsweeper clawsweeper Bot added 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 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Replaces device cards and menus with expandable rows, visible approval details, and actions inside each open row.

Example: Viewing Mac Studio on a 390 px-wide Devices page.

  • Before: Resources, capability chips, and actions fill much of the screen.
  • After: A compact row shows its name, platform, and connection status; opening it reveals resources and actions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Direct visual evidence supports the redesign, but the deterministic mock-baseline failure blocks readiness and a few added assertions provide little value.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected browser screenshots with synthetic Gateway responses show the changed Devices renderer before and after at desktop and 390 px, expanded resource/token/action details, and CRT phone styling; these directly prove the visual change.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Dense device cards make it difficult to scan connectivity on a phone, while pending requests hide information needed for approval.
Reason: Maintainer-authored direction establishes the presentation choice, and inspected screenshots demonstrate clearer scanning and visible approval context at desktop and phone widths.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-authored redesign improves device scanning, but a stale mock-baseline entry causes a concrete CI failure that needs repair.

Priority: P3
Reviewed head: f97e1637a5cf72c766e8f743f01ebfac9e271875

Before merge

  • Prune the baseline entry for the removed toast mock (P2) - Removing the toast mock leaves its exact allowance in config/test-mock-exports-baseline.txt:6416. The mock-factory ratchet treats this as a stale entry and returns exit 1, matching the mock-exports annotation on the failing exact-head baseline-ratchets check. Prune that obsolete allowance with the existing baseline tool and commit the resulting narrow baseline change.

Findings

  • [P2] Prune the baseline entry for the removed toast mock — config/test-mock-exports-baseline.txt:6416

Tests

  • Low-value test ui/src/pages/devices/view.devices.test.ts: Remove the added “gives every pending request the same weight” test: checking absence of a .primary class cannot detect the stylesheet-based accent it claims to prevent, and its remaining assertions pin incidental markup.
  • Low-value test ui/src/pages/devices/capability-list.test.ts: Remove the standalone “reads as one sentence” test and the new no-icon assertion; they pin presentation details rather than a distinct failure beyond the retained capability naming, grouping, and overflow contracts.
Agent review details

How this fits together

The Control UI combines Gateway device, node, and presence snapshots into device inventory rows; existing page and Gateway owners handle approvals, token operations, renaming, and removal.

flowchart LR
  A[Gateway snapshots] --> B[Inventory projection]
  B --> C[Expandable device rows]
  A --> D[Pending approval rows]
  C --> E[Existing page operations]
  D --> E
  E --> F[Gateway RPC]
Loading

Technical review

Best possible solution:

Keep the expandable-row design and existing operation owners, remove the obsolete toast-mock allowance, and retain tests that protect distinct user behavior.

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

The prior crowded layout is visible in the before screenshots, and the removed toast mock plus retained baseline entry deterministically explains the reported mock-exports failure without executing target code.

Is this the best way to solve the issue?

The redesign reuses inventory and mutation owners, replaces the old menu and chip paths completely, and preserves action availability; no additional production layer is needed.

Full review comments:

  • [P2] Prune the baseline entry for the removed toast mock — config/test-mock-exports-baseline.txt:6416
    Removing the toast mock leaves its exact allowance in config/test-mock-exports-baseline.txt:6416. The mock-factory ratchet treats this as a stale entry and returns exit 1, matching the mock-exports annotation on the failing exact-head baseline-ratchets check. Prune that obsolete allowance with the existing baseline tool and commit the resulting narrow baseline change.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6a82c555d2d4.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm check:test-mock-exports --base b8df00c
  • pnpm check:baseline-ratchets --base b8df00c
  • git diff --check

What I checked:

PR surface

Source -63, Tests +24. Total -39 across 28 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 14 1118 1181 -63
Tests 14 381 357 +24
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 28 1499 1538 -39

Labels

Label changes:

  • add P3: This is a device-management presentation improvement with a narrow validation repair and no established urgent runtime regression.
  • 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 a device-management presentation improvement with a narrow validation repair and no established urgent runtime regression.
  • 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 2, 2026, 1:13 PM ET / 18:13 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 6c3a972 into main Nov 3, 2026
71 of 73 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/settings-devices-redesign branch November 3, 2026 13:59
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
…1329)

Show device inventory in rows with details on demand while preserving pairing decisions, permissions and per-device actions. Remove the stale toast mock baseline entry through its owner tool.

Targeted inventory and capability tests and UI typecheck passed. Pending CI remains pending under the approved batch landing policy.
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: XL 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