build: Fleet device dialog — shell + identity + status summary (slice 1/4) #2059

Closed
opened 2026-10-23 18:01:20 +00:00 by matou-build-agent · 2 comments

Parent

  • Design pass #2050; child spec #2058; design contract DDR 0295 (amends
    DDR 0202). Flow docs/ux/flows/p9-device-dialog.mermaid; wireframes
    docs/ux/wireframes/p9-device-dialog/ (P9-D1 / D1s / D3).
  • Slice dialog-shell-and-identity of docs/slices/fleet-device-dialog.yaml.

What to build

Clicking a device on the Fleet tab opens the device dialog (the house
OcDialog, the device-add dialog's shape — ADR 0237) as the first stop, showing
the device's identity (name, kind, location, role, tags) and a status
summary
(health chip + the CPU/MEM/DISK glance + the sample/heartbeat age),
read from the Fleet aggregate the row was built from — no new read (DDR 0155
§3). Full detail opens the existing P9-S1 observing drill-in in place
(unchanged); the × / scrim / Esc closes the dialog. The summary carries DDR
0202's object-states honestly: reporting/stale (no stale-green), a silent device
as a dated last-known record, a not-set-up device as an honest — with the
prominent Set up act. The Fleet row's device-name data-action changes from
device-detail-<id> to device-dialog-<id>; the dialog's Full detail fires
the former device-detail-<id> intent.

Acceptance criteria

  • Given a reporting set-up device, when its name is clicked on Fleet, then a
    dialog opens (URL stays /fleet) with name, kind, location, role, the health
    chip, the CPU/MEM/DISK glance with the sample age, and the heartbeat age (P9-D1).
  • Given the dialog, when Full detail is chosen, then the existing P9-S1
    drill-in opens in place (the device-detail-<id> intent), unchanged.
  • Given the dialog, when × / scrim / Esc is used, then it closes and nothing
    is changed (close-dialog).
  • Given a silent device, then its summary renders as a dated last-known
    record, muted, never live — no stale-green (P9-D1s).
  • Given a connected-not-set-up device, then the readings show — (never 0%),
    the absence is named, and Set up this device is the prominent act (P9-D3).
  • Given a disk ≥80%, then the summary names it (warning tier, named in copy —
    no red) and points to Full detail.

Task manifest

task: dialog-shell-and-identity
implements_flow: p9-device-dialog
implements_edge: DF→D1, DF→D1s, DF→D3, D1→P9-S1 (Full detail), D1→DF (close)
wireframe:
  - docs/ux/wireframes/p9-device-dialog/p9-d1-device-dialog-default.html
  - docs/ux/wireframes/p9-device-dialog/p9-d1s-device-dialog-silent.html
  - docs/ux/wireframes/p9-device-dialog/p9-d3-device-dialog-not-set-up.html
interface: |
  shell/DeviceDialog.vue over packages/ui-kit/src/components/OcDialog.vue
  (frame dialog navigator state); fed the FleetRow it was opened from.
  Fleet row name data-action: device-detail-<id> → device-dialog-<id>.
seam: dashboard unit over the injected FleetSource/fleet client (as DeviceDetailSurface's tests do)
acceptance:
  - given: a reporting set-up device
    when: its name is clicked on Fleet
    then: the dialog opens with identity + status summary; URL stays /fleet
  - given: the dialog
    when: Full detail is chosen
    then: the existing P9-S1 drill-in opens in place (device-detail-<id>), unchanged
  - given: a silent device
    when: its dialog opens
    then: the summary is a dated last-known record, never live (no stale-green)
depends_on: [shell:ui-kit-mount-slot-contract]
out_of_scope: [the routed actions (change/set-up/logs/service/silence) — dialog-action-routes; the edit — device-facts-edit; remove — device-remove-entry]
unproven_by_seam: the real OcDialog focus-trap / Esc-stack behaviour — exercised only in the browser harness
needs_human_decision: []

Blocked by

  • #2050 (the design PR must merge — native dependency).
<!-- origin: app-report #2046 --> ## Parent - Design pass **#2050**; child spec **#2058**; design contract **DDR 0295** (amends DDR 0202). Flow `docs/ux/flows/p9-device-dialog.mermaid`; wireframes `docs/ux/wireframes/p9-device-dialog/` (P9-D1 / D1s / D3). - Slice `dialog-shell-and-identity` of `docs/slices/fleet-device-dialog.yaml`. ## What to build Clicking a device on the Fleet tab opens the **device dialog** (the house `OcDialog`, the device-add dialog's shape — ADR 0237) as the first stop, showing the device's **identity** (name, kind, location, role, tags) and a **status summary** (health chip + the CPU/MEM/DISK glance + the sample/heartbeat age), read from the Fleet aggregate the row was built from — **no new read** (DDR 0155 §3). *Full detail* opens the existing P9-S1 observing drill-in **in place** (unchanged); the × / scrim / Esc closes the dialog. The summary carries DDR 0202's object-states honestly: reporting/stale (no stale-green), a silent device as a dated last-known record, a not-set-up device as an honest `—` with the prominent *Set up* act. The Fleet row's device-name `data-action` changes from `device-detail-<id>` to `device-dialog-<id>`; the dialog's *Full detail* fires the former `device-detail-<id>` intent. ## Acceptance criteria - [ ] Given a reporting set-up device, when its name is clicked on Fleet, then a dialog opens (URL stays `/fleet`) with name, kind, location, role, the health chip, the CPU/MEM/DISK glance with the sample age, and the heartbeat age (P9-D1). - [ ] Given the dialog, when *Full detail* is chosen, then the existing P9-S1 drill-in opens in place (the `device-detail-<id>` intent), unchanged. - [ ] Given the dialog, when × / scrim / Esc is used, then it closes and nothing is changed (`close-dialog`). - [ ] Given a silent device, then its summary renders as a dated last-known record, muted, never live — no stale-green (P9-D1s). - [ ] Given a connected-not-set-up device, then the readings show `—` (never 0%), the absence is named, and *Set up this device* is the prominent act (P9-D3). - [ ] Given a disk ≥80%, then the summary names it (warning tier, named in copy — no red) and points to Full detail. ## Task manifest ```yaml task: dialog-shell-and-identity implements_flow: p9-device-dialog implements_edge: DF→D1, DF→D1s, DF→D3, D1→P9-S1 (Full detail), D1→DF (close) wireframe: - docs/ux/wireframes/p9-device-dialog/p9-d1-device-dialog-default.html - docs/ux/wireframes/p9-device-dialog/p9-d1s-device-dialog-silent.html - docs/ux/wireframes/p9-device-dialog/p9-d3-device-dialog-not-set-up.html interface: | shell/DeviceDialog.vue over packages/ui-kit/src/components/OcDialog.vue (frame dialog navigator state); fed the FleetRow it was opened from. Fleet row name data-action: device-detail-<id> → device-dialog-<id>. seam: dashboard unit over the injected FleetSource/fleet client (as DeviceDetailSurface's tests do) acceptance: - given: a reporting set-up device when: its name is clicked on Fleet then: the dialog opens with identity + status summary; URL stays /fleet - given: the dialog when: Full detail is chosen then: the existing P9-S1 drill-in opens in place (device-detail-<id>), unchanged - given: a silent device when: its dialog opens then: the summary is a dated last-known record, never live (no stale-green) depends_on: [shell:ui-kit-mount-slot-contract] out_of_scope: [the routed actions (change/set-up/logs/service/silence) — dialog-action-routes; the edit — device-facts-edit; remove — device-remove-entry] unproven_by_seam: the real OcDialog focus-trap / Esc-stack behaviour — exercised only in the browser harness needs_human_decision: [] ``` ## Blocked by - **#2050** (the design PR must merge — native dependency).
Author
Member

close-report for #2059 — status success

✅ close-report gates passed — every claim verified against the PR head. PR #2070 (#2070) is open and green; a human merges it and the merge closes this issue via closes #2059 (MERGE_AUTHORITY=human).

envelope
{
  "issue": 2059,
  "status": "success",
  "commits": [
    "29da648f5fa32efa5b6d7fc6d0c0e5da68df0f24"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/components/shell/DeviceDialog.vue",
    "dashboard/src/components/shell/FleetDiagram.vue",
    "dashboard/src/components/shell/FleetSurface.vue",
    "dashboard/src/lib/fleet.ts",
    "dashboard/tests/e2e/preview-harness/fleetLookAtReach.spec.ts",
    "dashboard/tests/e2e/preview-harness/fleetNarrow.spec.ts",
    "dashboard/tests/unit/deviceDetailDrillIn.test.ts",
    "dashboard/tests/unit/fleet.test.ts",
    "dashboard/tests/unit/fleetDeviceDialog.test.ts",
    "dashboard/tests/unit/fleetTelemetryColumns.test.ts",
    "dashboard/tests/unit/overviewCards.test.ts",
    "dashboard/tests/unit/provisionRemoveDevice.test.ts"
  ],
  "tests": [
    {
      "command": "cd dashboard && CI=true npx vitest run",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm run lint",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given a reporting set-up device, when its name is clicked on Fleet, then a dialog opens (URL stays /fleet) with name, kind, location, role, the health chip, the CPU/MEM/DISK glance with the sample age, and the heartbeat age (P9-D1)": "DeviceDialog.vue renders device-name/device-kind/device-location/device-role/device-health-chip + telemetry-glance (sample age) + last-heartbeat; FleetSurface opens it on device-dialog-<id> over the resting list (fleet-list stays, no route emitted). Tests: fleetDeviceDialog.test.ts 'renders the identity and a live status summary' + 'clicking a device name opens the dialog over the list'. Screenshot after-device-dialog-default.png.",
    "Given the dialog, when Full detail is chosen, then the existing P9-S1 drill-in opens in place (the device-detail-<id> intent), unchanged": "DeviceDialog emits deviceDetailRoute(row); FleetSurface.onDialogRoute closes the dialog and onRoute opens detailTarget (device-detail-drill-in). Tests: fleetDeviceDialog.test.ts 'Full detail emits the former device-detail intent' + 'Full detail opens the P9-S1 observing drill-in in place and closes the dialog'.",
    "Given the dialog, when x / scrim / Esc is used, then it closes and nothing is changed (close-dialog)": "OcDialog's close (data-action=close-dialog) → DeviceDialog emits close → FleetSurface.closeDialog clears dialogTarget, list stands, no route emitted. Tests: fleetDeviceDialog.test.ts 'the x / scrim / Esc close the dialog, changing nothing' + 'the x closes the dialog back to the resting list, changing nothing'.",
    "Given a silent device, then its summary renders as a dated last-known record, muted, never live - no stale-green (P9-D1s)": "summaryState='last-known' → glance label 'Last known · sampled ...', gauges state='last-known' (muted, data-status=last-known), silence-note. Test: fleetDeviceDialog.test.ts 'a silent device reads as a dated last-known record, muted, never live - no stale-green'.",
    "Given a connected-not-set-up device, then the readings show - (never 0%), the absence is named, and Set up this device is the prominent act (P9-D3)": "summaryState='no-telemetry' → gauges pct=null render '-' (OcGaugeRing never 0), not-set-up-note names the absence, prominent OcButton data-action=set-up-<id>. Tests: fleetDeviceDialog.test.ts 'a not-set-up device shows - ... and offers Set up as the prominent act' + 'a not-set-up device opens the dialog; Set up routes to provisioning'.",
    "Given a disk >=80%, then the summary names it (warning tier, named in copy - no red) and points to Full detail": "diskBad = gradeResource(diskPct)==='bad' (RESOURCE_BAD_PCT=80); disk-bad-note names the %, OcGaugeRing grades bad from the warning token (no red, DDR 0202), with a Full detail link. Test: fleetDeviceDialog.test.ts 'names a disk >=80% in the warning tier and points to Full detail'."
  },
  "binds": [
    {
      "symbol": "DeviceDialog",
      "defined_in": "dashboard/src/components/shell/DeviceDialog.vue"
    },
    {
      "symbol": "deviceDialogRoute",
      "defined_in": "dashboard/src/lib/fleet.ts"
    },
    {
      "symbol": "deviceDialogTargetFromIntent",
      "defined_in": "dashboard/src/lib/fleet.ts"
    }
  ],
  "summary": "Fleet device dialog shell + identity + status summary (slice 1/4): a device-name click opens DeviceDialog over the resting list, Full detail opens P9-S1 unchanged.",
  "blockers": []
}
**close-report** for #2059 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against the PR head. PR #2070 (https://git.matou.nz/Matou/idss/pulls/2070) is open and green; a human merges it and the merge closes this issue via `closes #2059` (MERGE_AUTHORITY=human). <details><summary>envelope</summary> ```json { "issue": 2059, "status": "success", "commits": [ "29da648f5fa32efa5b6d7fc6d0c0e5da68df0f24" ], "changed_files": [ "STATUS.md", "dashboard/src/components/shell/DeviceDialog.vue", "dashboard/src/components/shell/FleetDiagram.vue", "dashboard/src/components/shell/FleetSurface.vue", "dashboard/src/lib/fleet.ts", "dashboard/tests/e2e/preview-harness/fleetLookAtReach.spec.ts", "dashboard/tests/e2e/preview-harness/fleetNarrow.spec.ts", "dashboard/tests/unit/deviceDetailDrillIn.test.ts", "dashboard/tests/unit/fleet.test.ts", "dashboard/tests/unit/fleetDeviceDialog.test.ts", "dashboard/tests/unit/fleetTelemetryColumns.test.ts", "dashboard/tests/unit/overviewCards.test.ts", "dashboard/tests/unit/provisionRemoveDevice.test.ts" ], "tests": [ { "command": "cd dashboard && CI=true npx vitest run", "exit_code": 0 }, { "command": "cd dashboard && npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "CI=true pnpm run lint", "exit_code": 0 } ], "criteria": { "Given a reporting set-up device, when its name is clicked on Fleet, then a dialog opens (URL stays /fleet) with name, kind, location, role, the health chip, the CPU/MEM/DISK glance with the sample age, and the heartbeat age (P9-D1)": "DeviceDialog.vue renders device-name/device-kind/device-location/device-role/device-health-chip + telemetry-glance (sample age) + last-heartbeat; FleetSurface opens it on device-dialog-<id> over the resting list (fleet-list stays, no route emitted). Tests: fleetDeviceDialog.test.ts 'renders the identity and a live status summary' + 'clicking a device name opens the dialog over the list'. Screenshot after-device-dialog-default.png.", "Given the dialog, when Full detail is chosen, then the existing P9-S1 drill-in opens in place (the device-detail-<id> intent), unchanged": "DeviceDialog emits deviceDetailRoute(row); FleetSurface.onDialogRoute closes the dialog and onRoute opens detailTarget (device-detail-drill-in). Tests: fleetDeviceDialog.test.ts 'Full detail emits the former device-detail intent' + 'Full detail opens the P9-S1 observing drill-in in place and closes the dialog'.", "Given the dialog, when x / scrim / Esc is used, then it closes and nothing is changed (close-dialog)": "OcDialog's close (data-action=close-dialog) → DeviceDialog emits close → FleetSurface.closeDialog clears dialogTarget, list stands, no route emitted. Tests: fleetDeviceDialog.test.ts 'the x / scrim / Esc close the dialog, changing nothing' + 'the x closes the dialog back to the resting list, changing nothing'.", "Given a silent device, then its summary renders as a dated last-known record, muted, never live - no stale-green (P9-D1s)": "summaryState='last-known' → glance label 'Last known · sampled ...', gauges state='last-known' (muted, data-status=last-known), silence-note. Test: fleetDeviceDialog.test.ts 'a silent device reads as a dated last-known record, muted, never live - no stale-green'.", "Given a connected-not-set-up device, then the readings show - (never 0%), the absence is named, and Set up this device is the prominent act (P9-D3)": "summaryState='no-telemetry' → gauges pct=null render '-' (OcGaugeRing never 0), not-set-up-note names the absence, prominent OcButton data-action=set-up-<id>. Tests: fleetDeviceDialog.test.ts 'a not-set-up device shows - ... and offers Set up as the prominent act' + 'a not-set-up device opens the dialog; Set up routes to provisioning'.", "Given a disk >=80%, then the summary names it (warning tier, named in copy - no red) and points to Full detail": "diskBad = gradeResource(diskPct)==='bad' (RESOURCE_BAD_PCT=80); disk-bad-note names the %, OcGaugeRing grades bad from the warning token (no red, DDR 0202), with a Full detail link. Test: fleetDeviceDialog.test.ts 'names a disk >=80% in the warning tier and points to Full detail'." }, "binds": [ { "symbol": "DeviceDialog", "defined_in": "dashboard/src/components/shell/DeviceDialog.vue" }, { "symbol": "deviceDialogRoute", "defined_in": "dashboard/src/lib/fleet.ts" }, { "symbol": "deviceDialogTargetFromIntent", "defined_in": "dashboard/src/lib/fleet.ts" } ], "summary": "Fleet device dialog shell + identity + status summary (slice 1/4): a device-name click opens DeviceDialog over the resting list, Full detail opens P9-S1 unchanged.", "blockers": [] } ``` </details>
Author
Member

Healer note (automated, heal run heal-Matou-idss-1793818319-1864290) — PR #2070's CI is RED on lint, product-class.

ci / seam on PR #2070 (run 60077) failed at stage TypeScript: build (tsc), test (vitest), lint (eslint) with exit 1 — 17 oc-i18n/no-bare-literal errors, all in dashboard/src/components/shell/DeviceDialog.vue (tsc and all 2306 vitest tests passed). No harness fault: the literals are real.

Why now, when the branch was green in October: the branch was refreshed onto main (2a3545ff, 2026-11-04 18:31) and so picked up 5e6deadc (2026-11-02), which widened the bare-literal lint from app/src/components/** to dashboard/src/components/**. DeviceDialog.vue was written before that door existed, so every string in it is bare English.

What the fix is: extract the 17 literals to the control-panel catalogue — panel.shell.deviceDialog.* under dashboard/src/i18n/shell/{en,es,fr,nl,pt}.ts, read through t('panel.shell.deviceDialog.…') — not founding.*. (The lint's own message said founding.<screen>.* for this file; that wording bug is fixed separately in eslint-rules/no-bare-literal.mjs.) The label="CPU" / "MEM" / "DISK" gauge props need binding (:label="t('…')"). Lines flagged: 41, 45, 49, 53, 63, 69, 75, 87, 95×2, 96, 97, 103, 104, 110, 123, 131.

Why this needs a person: #2059 is landing-pr, so landing_merge_if_green answers not-authorized and never parks it agent-blocked; and an open agent PR hides #2059 from the ready list, so no fresh worker picks it up either. The red PR will sit until a human re-arms it.

PR #2071 (agent/issue-2065) was refreshed in the same window and ships UI too — worth checking for the same breakage.

No code was changed on this ticket by the healer (product surface).

**Healer note (automated, heal run `heal-Matou-idss-1793818319-1864290`) — PR #2070's CI is RED on lint, product-class.** `ci / seam` on PR #2070 (run [60077](https://git.matou.nz/Matou/idss/actions/runs/60077)) failed at stage *TypeScript: build (tsc), test (vitest), lint (eslint)* with exit 1 — **17 `oc-i18n/no-bare-literal` errors, all in `dashboard/src/components/shell/DeviceDialog.vue`** (tsc and all 2306 vitest tests passed). No harness fault: the literals are real. **Why now, when the branch was green in October:** the branch was refreshed onto main (`2a3545ff`, 2026-11-04 18:31) and so picked up `5e6deadc` (2026-11-02), which widened the bare-literal lint from `app/src/components/**` to `dashboard/src/components/**`. `DeviceDialog.vue` was written before that door existed, so every string in it is bare English. **What the fix is:** extract the 17 literals to the control-panel catalogue — **`panel.shell.deviceDialog.*`** under `dashboard/src/i18n/shell/{en,es,fr,nl,pt}.ts`, read through `t('panel.shell.deviceDialog.…')` — *not* `founding.*`. (The lint's own message said `founding.<screen>.*` for this file; that wording bug is fixed separately in `eslint-rules/no-bare-literal.mjs`.) The `label="CPU"` / `"MEM"` / `"DISK"` gauge props need binding (`:label="t('…')"`). Lines flagged: 41, 45, 49, 53, 63, 69, 75, 87, 95×2, 96, 97, 103, 104, 110, 123, 131. **Why this needs a person:** #2059 is `landing-pr`, so `landing_merge_if_green` answers `not-authorized` and never parks it `agent-blocked`; and an open agent PR hides #2059 from the ready list, so no fresh worker picks it up either. The red PR will sit until a human re-arms it. PR #2071 (`agent/issue-2065`) was refreshed in the same window and ships UI too — worth checking for the same breakage. No code was changed on this ticket by the healer (product surface).
ben closed this issue 2026-11-04 20:10:36 +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#2059
No description provided.