device detail (P9): a device's name, kind and location cannot be edited after it joins — the promised edit endpoint does not exist #1432

Closed
opened 2026-09-12 15:03:37 +00:00 by ben · 0 comments
Owner

Parent

Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit 078cd5b3 on founding-ui-two-colour-rail-ceremony, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: cd dashboard && pnpm harness → http://localhost:5198/panel.html?scenario=steady&tab=<tab>.

Gap

openapi ~:6836 and internal/enroll/enroll.go:313 promise the device facts are "edited later from the device detail (P9)". There is no PATCH/PUT anywhere in openapi, and P9 (dashboard/src/lib/deviceTelemetry.ts, components/shell/DeviceDetail*) is read-only. A device named wrongly at mint, or moved from the marae to a home, is stuck. (Companion: the mint-wire ticket adds the fields at mint; this one is the edit.)

Governing: DDR 0202 (device detail), ADR 0237 (location).

Why needs-design

The P9 wireframe has no edit affordance for these facts; add the frame (inline edit on the facts row, or a small dialog matching the Add device one) before the seam op is cut.

What to do

  1. /wireframe the P9 edit affordance (name, kind, location; Save / Cancel; a refused save states why).
  2. openapi + Go: PATCH /fleet/nodes/{id} with the three optional fields; the ledger and fleet store update; the fleet read reflects it on the next poll.
  3. Dashboard: HttpFleetClient.updateNode, the P9 edit UI, unit + live tests.

Acceptance criteria

  • Given a joined device, when its location is changed on P9 and saved, then Overview, Fleet and P9 all show the new value on the next read (DDR 0155 §3 — one source).
  • Given a seam refusal (e.g. an empty name), then the edit stays open with the reason.
## Parent Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit `078cd5b3` on `founding-ui-two-colour-rail-ceremony`, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: `cd dashboard && pnpm harness` → `http://localhost:5198/panel.html?scenario=steady&tab=<tab>`. ## Gap openapi ~:6836 and `internal/enroll/enroll.go:313` promise the device facts are "edited later from the device detail (P9)". There is no PATCH/PUT anywhere in openapi, and P9 (`dashboard/src/lib/deviceTelemetry.ts`, `components/shell/DeviceDetail*`) is read-only. A device named wrongly at mint, or moved from the marae to a home, is stuck. (Companion: the mint-wire ticket adds the fields at mint; this one is the edit.) Governing: DDR 0202 (device detail), ADR 0237 (location). ## Why needs-design The P9 wireframe has no edit affordance for these facts; add the frame (inline edit on the facts row, or a small dialog matching the Add device one) before the seam op is cut. ## What to do 1. `/wireframe` the P9 edit affordance (name, kind, location; Save / Cancel; a refused save states why). 2. openapi + Go: `PATCH /fleet/nodes/{id}` with the three optional fields; the ledger and fleet store update; the fleet read reflects it on the next poll. 3. Dashboard: `HttpFleetClient.updateNode`, the P9 edit UI, unit + live tests. ## Acceptance criteria - [ ] Given a joined device, when its location is changed on P9 and saved, then Overview, Fleet and P9 all show the new value on the next read (DDR 0155 §3 — one source). - [ ] Given a seam refusal (e.g. an empty name), then the edit stays open with the reason.
ben closed this issue 2026-10-26 01:30:52 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1432
No description provided.