Repository navigation
improve(ui): show devices as rows with details on demand - #191329
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 changesReplaces 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.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6a82c555d2d4. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource -63, Tests +24. Total -39 across 28 files. Added test files: 1. 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 2, 2026, 1:13 PM ET / 18:13 UTC. |
…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.
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
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.
Open row, Absolutely light:
CRT at 390px keeps square corners:
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-renameanddevice-platform-familyreal-Gateway e2e tests pass with the new rows.