shell: fleet-resting-list — the resting Fleet list, gateway as row one #35

Closed
opened 2026-07-25 04:54:47 +00:00 by ben · 1 comment
Owner

Parent

Feature spec: #22 (shell).

What to build

The Fleet tab's resting list (DF, docs/ux/wireframes/shell/shell-df-fleet.html) — every node in one place so an operator can see and act on any of them. It lists each device with name, role and a health chip, opening with the gateway as row one (the never-empty rule, DDR 0095), and offers "+ Add device" and "Enrollment codes". A degraded device is shown in-state within the list, not on a separate screen: the chip is monitoring's classification (e.g. "chat down — 4 min", "asleep (expected)") — shell displays the chip, monitoring owns the truth.

Every action on the list routes into the feature that owns it: "+ Add device" begins device-add's in-flow minting (edge DF → P2-S1); "change"/"set up" on a row opens provisioning's standing surface for that node (edge DF → P4-S1, ADR 0063); drilling in from a health chip opens monitoring's drill-in (edge DF → P5-S3); "Enrollment codes" opens the dashboard codes ledger (edge DF → DF2). This slice is buildable against a faked fleet and faked monitoring chip classification.

Acceptance criteria

  • (story 19) Given the fleet, When the Fleet tab (DF) renders, Then it lists each device with name, role and a health chip, opening with the gateway as row one (never-empty rule, DDR 0095), and offers "+ Add device" and "Enrollment codes".
  • (story 19) Given a degraded device, When DF renders, Then the degraded state is shown in-state within the list (the chip is monitoring's classification, e.g. "chat down — 4 min", "asleep (expected)"), not a separate screen; shell displays the chip, monitoring owns the truth.
  • (story 20) Given DF, When I choose "+ Add device", Then device-add's in-flow minting begins (edge DF → P2-S1); When I choose "change"/"set up" on a row, Then provisioning's standing surface for that node opens (edge DF → P4-S1, ADR 0063); When I drill in from a health chip, Then monitoring's drill-in opens (edge DF → P5-S3); When I choose "Enrollment codes", Then the dashboard codes ledger opens (edge DF → DF2).

Blocked by

  • #29 — Fleet mounts in the frame

Task manifest

task: shell:fleet-resting-list
implements_flow: shell
implements_edge: DN→DF, DF→P2-S1, DF→P4-S1, DF→P5-S3, DF→DF2
wireframe: docs/ux/wireframes/shell/shell-df-fleet.html
interface: the Fleet (DF) resting list — rows of name/role/health-chip with the gateway as row one (never-empty), "+ Add device" and "Enrollment codes"; health chips are monitoring's classification (shell renders, monitoring owns); row actions route to owners (device-add P2-S1, provisioning P4-S1, monitoring P5-S3, ledger DF2)
seam: Fleet component tests — faked fleet + faked monitoring chip classification; asserts the never-empty gateway row, in-list degraded chips, and each row/action route
acceptance:
  - given: the fleet
    when: the Fleet tab (DF) renders
    then: each device lists name, role and a health chip; the gateway is row one; "+ Add device" and "Enrollment codes" are offered
  - given: a degraded device
    when: DF renders
    then: the degraded state is an in-list chip (monitoring's classification), not a separate screen
  - given: DF
    when: I choose the row/action controls
    then: "\"+ Add device\" \u2192 device-add P2-S1, \"change\"/\"set up\" \u2192 provisioning P4-S1, health chip \u2192 monitoring P5-S3, \"Enrollment codes\" \u2192 DF2"
depends_on: [ui-kit-mount-slot-contract]
out_of_scope: [the codes ledger contents (codes-ledger-both-surfaces'), the journeys the actions route into (device-add/provisioning/monitoring own them), monitoring's chip truth itself]
needs_human_decision: []
## Parent Feature spec: #22 (shell). ## What to build The Fleet tab's resting list (**DF**, `docs/ux/wireframes/shell/shell-df-fleet.html`) — every node in one place so an operator can see and act on any of them. It lists each device with name, role and a health chip, opening with the gateway as row one (the never-empty rule, DDR 0095), and offers "+ Add device" and "Enrollment codes". A degraded device is shown **in-state within the list**, not on a separate screen: the chip is monitoring's classification (e.g. "chat down — 4 min", "asleep (expected)") — shell displays the chip, monitoring owns the truth. Every action on the list routes into the feature that owns it: "+ Add device" begins device-add's in-flow minting (edge DF → P2-S1); "change"/"set up" on a row opens provisioning's standing surface for that node (edge DF → P4-S1, ADR 0063); drilling in from a health chip opens monitoring's drill-in (edge DF → P5-S3); "Enrollment codes" opens the dashboard codes ledger (edge DF → DF2). This slice is buildable against a faked fleet and faked monitoring chip classification. ## Acceptance criteria - [ ] (story 19) Given the fleet, When the Fleet tab (DF) renders, Then it lists each device with name, role and a health chip, opening with the gateway as row one (never-empty rule, DDR 0095), and offers "+ Add device" and "Enrollment codes". - [ ] (story 19) Given a degraded device, When DF renders, Then the degraded state is shown in-state within the list (the chip is monitoring's classification, e.g. "chat down — 4 min", "asleep (expected)"), not a separate screen; shell displays the chip, monitoring owns the truth. - [ ] (story 20) Given DF, When I choose "+ Add device", Then device-add's in-flow minting begins (edge DF → P2-S1); When I choose "change"/"set up" on a row, Then provisioning's standing surface for that node opens (edge DF → P4-S1, ADR 0063); When I drill in from a health chip, Then monitoring's drill-in opens (edge DF → P5-S3); When I choose "Enrollment codes", Then the dashboard codes ledger opens (edge DF → DF2). ## Blocked by - #29 — Fleet mounts in the frame ## Task manifest ```yaml task: shell:fleet-resting-list implements_flow: shell implements_edge: DN→DF, DF→P2-S1, DF→P4-S1, DF→P5-S3, DF→DF2 wireframe: docs/ux/wireframes/shell/shell-df-fleet.html interface: the Fleet (DF) resting list — rows of name/role/health-chip with the gateway as row one (never-empty), "+ Add device" and "Enrollment codes"; health chips are monitoring's classification (shell renders, monitoring owns); row actions route to owners (device-add P2-S1, provisioning P4-S1, monitoring P5-S3, ledger DF2) seam: Fleet component tests — faked fleet + faked monitoring chip classification; asserts the never-empty gateway row, in-list degraded chips, and each row/action route acceptance: - given: the fleet when: the Fleet tab (DF) renders then: each device lists name, role and a health chip; the gateway is row one; "+ Add device" and "Enrollment codes" are offered - given: a degraded device when: DF renders then: the degraded state is an in-list chip (monitoring's classification), not a separate screen - given: DF when: I choose the row/action controls then: "\"+ Add device\" \u2192 device-add P2-S1, \"change\"/\"set up\" \u2192 provisioning P4-S1, health chip \u2192 monitoring P5-S3, \"Enrollment codes\" \u2192 DF2" depends_on: [ui-kit-mount-slot-contract] out_of_scope: [the codes ledger contents (codes-ledger-both-surfaces'), the journeys the actions route into (device-add/provisioning/monitoring own them), monitoring's chip truth itself] needs_human_decision: [] ```
Author
Owner

Done in commit 3879dc9 (branch sandcastle/worker/20260725-092507-c9f157).

The Fleet tab’s resting list (DF) landed in dashboard/src/components/shell/: FleetSurface composes the whole fleet from two truths it does not own — a faked FleetSource (which devices exist: name/role/gateway-flag/provisioned) and a faked FleetHealthSource (monitoring’s health chip per node) — and hands FleetScreen (the pure DF render) the framed rows. Shell computes neither (ADR 0097).

Acceptance evidence — 10 component tests in dashboard/tests/unit/fleet.test.ts (all green, vue-tsc clean):

  • story 19 (render): each row lists name, role and a health chip; the two header actions (+ Add device, Enrollment codes) ride the list.
  • story 19 (never-empty, DDR 0095): the gateway karaka is row one with its GATEWAY tag — structurally, via FleetSource.gateway() led through the UI kit’s frameRestingList — including the gateway-only case (never a blank list).
  • story 19 (degraded in-state): a degraded device stays a row in the one list, wearing monitoring’s chip verbatim (chat down — 4 min, asleep (expected)); shell renders, monitoring owns — a reclassified chip is rendered verbatim.
  • story 20 (routing): every action forwards a DrillInIntent to its owner — + Add device → device-add (P2-S1), change/set up → provisioning (P4-S1, ADR 0063), health chip → monitoring (P5-S3), Enrollment codes → the codes ledger (DF2).

docs/slices/shell.yaml marks fleet-resting-list status: done, map.html and STATUS.md updated in the same commit. Out of scope (own slices): the codes-ledger contents, the journeys the actions route into, monitoring’s chip truth itself.

Done in commit `3879dc9` (branch `sandcastle/worker/20260725-092507-c9f157`). The Fleet tab’s resting list (DF) landed in `dashboard/src/components/shell/`: `FleetSurface` composes the whole fleet from two truths it does not own — a faked `FleetSource` (which devices exist: name/role/gateway-flag/provisioned) and a faked `FleetHealthSource` (monitoring’s health chip per node) — and hands `FleetScreen` (the pure DF render) the framed rows. Shell computes neither (ADR 0097). Acceptance evidence — 10 component tests in `dashboard/tests/unit/fleet.test.ts` (all green, `vue-tsc` clean): - **story 19 (render):** each row lists name, role and a health chip; the two header actions (`+ Add device`, `Enrollment codes`) ride the list. - **story 19 (never-empty, DDR 0095):** the gateway `karaka` is row one with its `GATEWAY` tag — structurally, via `FleetSource.gateway()` led through the UI kit’s `frameRestingList` — including the gateway-only case (never a blank list). - **story 19 (degraded in-state):** a degraded device stays a row in the one list, wearing monitoring’s chip verbatim (`chat down — 4 min`, `asleep (expected)`); shell renders, monitoring owns — a reclassified chip is rendered verbatim. - **story 20 (routing):** every action forwards a `DrillInIntent` to its owner — `+ Add device` → device-add (P2-S1), `change`/`set up` → provisioning (P4-S1, ADR 0063), health chip → monitoring (P5-S3), `Enrollment codes` → the codes ledger (DF2). `docs/slices/shell.yaml` marks `fleet-resting-list` `status: done`, `map.html` and `STATUS.md` updated in the same commit. Out of scope (own slices): the codes-ledger contents, the journeys the actions route into, monitoring’s chip truth itself.
ben closed this issue 2026-07-25 09:34:45 +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#35
No description provided.