Fleet device dialog — shell + identity + status summary (#2059) #2070

Merged
ben merged 4 commits from agent/issue-2059 into main 2026-11-04 20:10:30 +00:00

closes #2059

Build slice 1/4 (dialog-shell-and-identity) of the Fleet-tab device dialog
— design contract DDR 0295 (amends DDR 0202), child spec #2058, design pass
#2050, from app report #2046.

What this ships

Clicking a device on the Fleet tab now opens the device dialog (the house
OcDialog, ADR 0237's device-add shape) in place over the resting list — the
URL stays /fleet, no route of its own. It carries the device's identity
(name, kind, location, role, tags) and a status summary (health chip + the
CPU/MEM/DISK glance with the sample age + the last-heard age), read from the
FleetRow the surface already loaded — no new read (DDR 0155 §3).

  • Full detail opens the existing P9-S1 observing drill-in in place,
    unchanged
    (the former device-detail-<id> intent). The Fleet row's
    device-name data-action moved from device-detail-<id> to
    device-dialog-<id> (DDR 0202 gate G2 superseded).
  • The summary carries DDR 0202's object-states honestly: a reporting device
    grades live; a silent device is a dated last-known record, muted, no
    stale-green
    ; a not-set-up device shows an honest — (never 0%) with the
    prominent Set up act; a disk ≥80% is named in the warning tier (no red),
    pointing to Full detail.
  • The × / scrim / Esc close it, changing nothing.

Out of scope (sibling slices)

The change/logs/service/silence routes (dialog-action-routes), the facts edit
(device-facts-edit), and the remove entry (device-remove-entry,
ready-for-human) are their own slices that build on this shell.

Tests

  • New dashboard/tests/unit/fleetDeviceDialog.test.ts (10 tests): the three
    summary states (D1/D1s/D3), the disk-bad note, Full detail → P9-S1, close.
  • The look-at tests re-homed onto the new dialog step (deviceDetailDrillIn,
    fleet, fleetTelemetryColumns, provisionRemoveDevice, overviewCards)
    and the two e2e narrow-band hit-test guards (fleetNarrow,
    fleetLookAtReach).
  • Full dashboard unit suite green (2259 passed), vue-tsc clean. Dashboard-only
    — no Go, no new seam.

Unproven by the seam: the real OcDialog focus-trap / Esc-stack behaviour
(exercised only in the browser harness).

Screenshots

Taken from the control-panel preview harness after the fix:

  • after-device-dialog-default.png — steady scenario, the dialog opened on
    a reporting device (rimu): identity + the live CPU/MEM/DISK glance + sample /
    last-heard age + Full detail (P9-D1).
  • after-device-dialog-offline.png — device-offline scenario, the dialog
    opened on tōtara with monitoring's offline — 12 min chip (the chip and
    heartbeat stated separately). The muted last-known gauge state and the
    not-set-up — state are covered by the unit tests (the harness scenarios
    keep this device's telemetry reporting).
closes #2059 Build slice **1/4** (`dialog-shell-and-identity`) of the Fleet-tab device dialog — design contract **DDR 0295** (amends DDR 0202), child spec #2058, design pass #2050, from app report #2046. ## What this ships Clicking a device on the Fleet tab now opens the **device dialog** (the house `OcDialog`, ADR 0237's device-add shape) in place over the resting list — the URL stays `/fleet`, no route of its own. It carries the device's **identity** (name, kind, location, role, tags) and a **status summary** (health chip + the CPU/MEM/DISK glance with the sample age + the last-heard age), read from the `FleetRow` the surface already loaded — **no new read** (DDR 0155 §3). - *Full detail* opens the existing **P9-S1 observing drill-in in place, unchanged** (the former `device-detail-<id>` intent). The Fleet row's device-name `data-action` moved from `device-detail-<id>` to `device-dialog-<id>` (DDR 0202 gate G2 superseded). - The summary carries DDR 0202's object-states honestly: a reporting device grades live; a **silent** device is a dated last-known record, muted, **no stale-green**; a **not-set-up** device shows an honest `—` (never 0%) with the prominent *Set up* act; a disk ≥80% is named in the warning tier (no red), pointing to Full detail. - The × / scrim / Esc close it, changing nothing. ## Out of scope (sibling slices) The change/logs/service/silence routes (`dialog-action-routes`), the facts edit (`device-facts-edit`), and the remove entry (`device-remove-entry`, `ready-for-human`) are their own slices that build on this shell. ## Tests - New `dashboard/tests/unit/fleetDeviceDialog.test.ts` (10 tests): the three summary states (D1/D1s/D3), the disk-bad note, Full detail → P9-S1, close. - The look-at tests re-homed onto the new dialog step (`deviceDetailDrillIn`, `fleet`, `fleetTelemetryColumns`, `provisionRemoveDevice`, `overviewCards`) and the two e2e narrow-band hit-test guards (`fleetNarrow`, `fleetLookAtReach`). - Full dashboard unit suite green (2259 passed), `vue-tsc` clean. Dashboard-only — no Go, no new seam. **Unproven by the seam:** the real `OcDialog` focus-trap / Esc-stack behaviour (exercised only in the browser harness). ## Screenshots Taken from the control-panel preview harness after the fix: - **after-device-dialog-default.png** — `steady` scenario, the dialog opened on a reporting device (rimu): identity + the live CPU/MEM/DISK glance + sample / last-heard age + Full detail (P9-D1). - **after-device-dialog-offline.png** — `device-offline` scenario, the dialog opened on tōtara with monitoring's `offline — 12 min` chip (the chip and heartbeat stated separately). The muted last-known gauge state and the not-set-up `—` state are covered by the unit tests (the harness scenarios keep this device's telemetry reporting).
sandcastle: #2059 — Fleet device dialog shell + identity + status summary (slice 1/4)
Some checks failed
ci / seam (pull_request) Successful in 15m22s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been cancelled
29da648f5f
Build slice `dialog-shell-and-identity` of the Fleet-tab device dialog
(DDR 0295, amends DDR 0202; from app report #2046; landing-pr). A device-name
click on Fleet now opens the device dialog in place over the resting list,
carrying the device's identity + a status summary read from the FleetRow the
surface already loaded — no new read (DDR 0155 §3).

Key decisions:
- New shell/DeviceDialog.vue over OcDialog (ADR 0237 device-add shape), fed the
  FleetRow; renders the three DDR 0202 summary states honestly (reporting live
  with sample + last-heard age; silent = dated last-known record, muted, no
  stale-green; not-set-up = honest — never 0%, prominent Set up). A disk >=80%
  is named in the warning tier (no red) and points to Full detail.
- The Fleet row's device-name data-action moves device-detail-<id> ->
  device-dialog-<id> (deviceDialogRoute / deviceDialogTargetFromIntent); the
  dialog's Full detail fires the former device-detail-<id> intent, which
  FleetSurface opens as the P9-S1 observing drill-in in place, unchanged.
- Heartbeat/sample age both derived from the aggregate's one sampledAt stamp
  (the per-device heartbeat/sample split stays P9-S1's) — dashboard-only, no Go.
- Out of scope (sibling slices): change/logs/service/silence routes, facts edit,
  remove entry.

Files:
- dashboard/src/components/shell/DeviceDialog.vue (new)
- dashboard/src/lib/fleet.ts (DEVICE_DIALOG_OWNER, deviceDialogRoute, parser)
- dashboard/src/components/shell/FleetDiagram.vue (name -> device-dialog-<id>)
- dashboard/src/components/shell/FleetSurface.vue (dialogTarget state + wiring)
- dashboard/tests/unit/fleetDeviceDialog.test.ts (new, 10 tests)
- re-homed look-at tests onto the dialog step: deviceDetailDrillIn, fleet,
  fleetTelemetryColumns, provisionRemoveDevice, overviewCards; the two e2e
  narrow-band guards (fleetNarrow, fleetLookAtReach)
- STATUS.md

Unproven by the seam: the real OcDialog focus-trap / Esc-stack (browser harness).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Author
Member

📷 Evidence for #2059 — taken after the fix unless the name says otherwise.

after-device-dialog-default.png
after-device-dialog-default.png

after-device-dialog-offline.png
after-device-dialog-offline.png

:camera: **Evidence for #2059** — taken after the fix unless the name says otherwise. **after-device-dialog-default.png** ![after-device-dialog-default.png](https://git.matou.nz/attachments/74d8d67a-f7ea-416a-90df-61d427b38500) **after-device-dialog-offline.png** ![after-device-dialog-offline.png](https://git.matou.nz/attachments/936327ac-5617-4645-bbea-bba55c575dd8)
Merge origin/main into agent/issue-2059 — refresh PR #2070 onto current main before merge (190 behind)
Some checks failed
ci / seam (pull_request) Failing after 23m19s
ci / publish (pull_request) Has been cancelled
ci / publish-broker (pull_request) Has been cancelled
ci / deploy-broker (pull_request) Has been cancelled
2a3545ffb8
device dialog: every word through the locale files (DDR 0300) — main's bare-literal lint now covers shell components, and PR #2070's dialog carried 17 English literals
All checks were successful
ci / seam (pull_request) Successful in 16m28s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
250436559f
The seam leg red on the refreshed head (eslint oc-i18n/no-bare-literal, 17
errors, all in DeviceDialog.vue). The dialog now reads a new
`panel.shell.deviceDialog` block in all five languages (en, es, nl, fr, pt):
the fact labels, the gauge labels, the glance and heartbeat lines, the
disk / silence / not-set-up notes, the role placeholder, the gateway / founding
tags and both buttons. The kind word and the ages move to main's translated
twins (`kindText`, `agoText` in shellI18n.ts) rather than the English
`kindWord` / `agoPhrase`.

English output is unchanged word for word. Verified in the worktree: eslint .
clean; vue-tsc clean; dashboard unit suite 183 files / 2308 tests green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ben merged commit 915eb0b0ab into main 2026-11-04 20:10:30 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss!2070
No description provided.