shell: overview-composition — the steady-state Overview, composed never computed #34

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

Parent

Feature spec: #22 (shell).

What to build

The dashboard's steady-state Overview (DO) (docs/ux/wireframes/shell/shell-do-overview.html) — the one glance that tells an operator whether anything needs them. Every number on it is a feature's truth rendered in shell's frame: the health headline is monitoring's aggregation summarised (e.g. "Chat down on rimu — 4 min · 3 other devices and 5 services healthy"), the coverage headline is backups' map with named gaps (e.g. "Photos has a single copy · 3 of 4 datasets backed up"), and the needs-attention queue is a standing queue of operator-only decisions — each item a query over its owning feature's store. Shell computes none of it (DDR 0095, ADR 0097): Overview needs no new API shape, it consumes the read queries the features already expose at their seams (carried by the OpenAPI spec).

"Everything is fine" is a shown state, not a blank: with nothing queued and all-healthy, the needs-attention queue renders "Nothing needs your attention" as a first-class state — never a hidden section, never an empty screen. Each needs-attention item routes straight into the feature that owns it: a pending device (from enroll's connection requests) into device-add/provisioning set-up, a member awaiting approval (members' gate), a release waiting on a decision (provisioning's channel state), a raised alert (monitoring's drill-in) — each count being a query over its owner.

Notes: these reads via OpenAPI queries are rendered-at-mount runtime data couplings, not build edges (slice-map ruling 2026-07-25) — this slice is buildable against fakes. Drill-ins route out of Overview (health → monitoring DO → P5-S1, coverage → backups DO → P7-S1).

Acceptance criteria

  • (story 14) Given the dashboard at rest, When Overview (DO) renders, Then it shows a health headline (monitoring's aggregation summarised, e.g. "Chat down on rimu — 4 min · 3 other devices and 5 services healthy"), a coverage headline (backups' map with named gaps, e.g. "Photos has a single copy · 3 of 4 datasets backed up"), and a needs-attention queue — each a query over its owning feature's store; shell computes none of it.
  • (story 14) Given Overview, When I drill in to health, Then monitoring opens (edge DO → P5-S1); When I drill in to coverage, Then backups opens (edge DO → P7-S1).
  • (story 15) Given nothing queued and all-healthy, When Overview renders, Then the needs-attention queue renders "Nothing needs your attention" as a first-class state — never a hidden section, never an empty screen.
  • (story 16) Given a needs-attention item (a pending device from enroll's connection requests, a member awaiting approval from members' gate, a release waiting on a decision from provisioning's channel state, a raised alert from monitoring), When I act on it, Then shell routes into the owning feature's flow (edge DO → the owning feature; e.g. a pending device → device-add/provisioning set-up, a raised alert → monitoring drill-in) — each count being a query over its owner.

Blocked by

  • #29 — Overview mounts in the frame

Task manifest

task: shell:overview-composition
implements_flow: shell
implements_edge: DN→DO, DO→P5-S1, DO→P7-S1, DO→DF
wireframe: docs/ux/wireframes/shell/shell-do-overview.html
interface: Overview (DO) as thin composition over feature read queries via the OpenAPI spec — monitoring's aggregation (health headline), backups' coverage map (coverage headline), and the needs-attention queue (queries over enroll connection requests / members' gate / provisioning's channel state / monitoring's alerts); shell computes none
seam: dashboard Overview component tests — faked feature read queries; asserts each number is rendered-at-mount from its owner's query, the shown everything-fine state, and drill-in/needs-attention routing into owners
acceptance:
  - given: the dashboard at rest
    when: Overview (DO) renders
    then: health headline (monitoring's aggregation), coverage headline (backups' map with named gaps), and the needs-attention queue render, each a query over its owner; shell computes none
  - given: nothing queued and all-healthy
    when: Overview renders
    then: the queue shows "Nothing needs your attention" as a first-class state, never a blank
  - given: a needs-attention item (pending device / member awaiting approval / release awaiting decision / raised alert)
    when: I act on it
    then: shell routes into the owning feature's flow, each count being a query over its owner
depends_on: [ui-kit-mount-slot-contract]
out_of_scope: [the first-run DOx state and its exit condition (overview-first-run's), the resting Fleet list (fleet-resting-list's), the truths themselves (monitoring/backups/enroll/members/provisioning own them), any shell aggregation endpoint or store (ADR 0097 rejected)]
needs_human_decision: []
## Parent Feature spec: #22 (shell). ## What to build The dashboard's steady-state **Overview (DO)** (`docs/ux/wireframes/shell/shell-do-overview.html`) — the one glance that tells an operator whether anything needs them. Every number on it is a feature's truth rendered in shell's frame: the **health headline** is monitoring's aggregation summarised (e.g. "Chat down on rimu — 4 min · 3 other devices and 5 services healthy"), the **coverage headline** is backups' map with named gaps (e.g. "Photos has a single copy · 3 of 4 datasets backed up"), and the **needs-attention queue** is a standing queue of operator-only decisions — each item a query over its owning feature's store. Shell computes none of it (DDR 0095, ADR 0097): Overview needs no new API shape, it consumes the read queries the features already expose at their seams (carried by the OpenAPI spec). "Everything is fine" is a **shown** state, not a blank: with nothing queued and all-healthy, the needs-attention queue renders "Nothing needs your attention" as a first-class state — never a hidden section, never an empty screen. Each needs-attention item routes straight into the feature that owns it: a pending device (from `enroll`'s connection requests) into device-add/provisioning set-up, a member awaiting approval (members' gate), a release waiting on a decision (provisioning's channel state), a raised alert (monitoring's drill-in) — each count being a query over its owner. Notes: these reads via OpenAPI queries are rendered-at-mount runtime data couplings, not build edges (slice-map ruling 2026-07-25) — this slice is buildable against fakes. Drill-ins route out of Overview (health → monitoring DO → P5-S1, coverage → backups DO → P7-S1). ## Acceptance criteria - [ ] (story 14) Given the dashboard at rest, When Overview (DO) renders, Then it shows a health headline (monitoring's aggregation summarised, e.g. "Chat down on rimu — 4 min · 3 other devices and 5 services healthy"), a coverage headline (backups' map with named gaps, e.g. "Photos has a single copy · 3 of 4 datasets backed up"), and a needs-attention queue — each a query over its owning feature's store; shell computes none of it. - [ ] (story 14) Given Overview, When I drill in to health, Then monitoring opens (edge DO → P5-S1); When I drill in to coverage, Then backups opens (edge DO → P7-S1). - [ ] (story 15) Given nothing queued and all-healthy, When Overview renders, Then the needs-attention queue renders "Nothing needs your attention" as a first-class state — never a hidden section, never an empty screen. - [ ] (story 16) Given a needs-attention item (a pending device from `enroll`'s connection requests, a member awaiting approval from members' gate, a release waiting on a decision from provisioning's channel state, a raised alert from monitoring), When I act on it, Then shell routes into the owning feature's flow (edge DO → the owning feature; e.g. a pending device → device-add/provisioning set-up, a raised alert → monitoring drill-in) — each count being a query over its owner. ## Blocked by - #29 — Overview mounts in the frame ## Task manifest ```yaml task: shell:overview-composition implements_flow: shell implements_edge: DN→DO, DO→P5-S1, DO→P7-S1, DO→DF wireframe: docs/ux/wireframes/shell/shell-do-overview.html interface: Overview (DO) as thin composition over feature read queries via the OpenAPI spec — monitoring's aggregation (health headline), backups' coverage map (coverage headline), and the needs-attention queue (queries over enroll connection requests / members' gate / provisioning's channel state / monitoring's alerts); shell computes none seam: dashboard Overview component tests — faked feature read queries; asserts each number is rendered-at-mount from its owner's query, the shown everything-fine state, and drill-in/needs-attention routing into owners acceptance: - given: the dashboard at rest when: Overview (DO) renders then: health headline (monitoring's aggregation), coverage headline (backups' map with named gaps), and the needs-attention queue render, each a query over its owner; shell computes none - given: nothing queued and all-healthy when: Overview renders then: the queue shows "Nothing needs your attention" as a first-class state, never a blank - given: a needs-attention item (pending device / member awaiting approval / release awaiting decision / raised alert) when: I act on it then: shell routes into the owning feature's flow, each count being a query over its owner depends_on: [ui-kit-mount-slot-contract] out_of_scope: [the first-run DOx state and its exit condition (overview-first-run's), the resting Fleet list (fleet-resting-list's), the truths themselves (monitoring/backups/enroll/members/provisioning own them), any shell aggregation endpoint or store (ADR 0097 rejected)] needs_human_decision: [] ```
Author
Owner

Done in 2f0587c (branch sandcastle/worker/20260725-093529-053352).

The steady-state Overview (DO) composed, never computed (DDR 0095, ADR 0097). dashboard/src/components/shell/OverviewSurface.vue composes the glance from three truths it does not own: monitoring's aggregation → health headline (HealthSummarySource, rendered verbatim — never a derived green, DDR 0071), backups' coverage map → coverage headline (CoverageSummarySource), and the needs-attention queue as four queries, one per owner (NeedsAttentionSource: pendingDevices/enroll, awaitingMembers/members, pendingReleases/provisioning, raisedAlerts/monitoring). Shell only concatenates in wireframe order and counts (composeQueue) — each count genuinely a query over its owner.

  • AC story 14 — health + coverage + needs-attention render at mount, each a query over its owner; drill-in health → monitoring (DO→P5-S1), coverage → backups (DO→P7-S1). ✅
  • AC story 15 — everything-fine is a shown state: all-empty renders a first-class needs-attention-empty "Nothing needs your attention", never a hidden section, never a blank. ✅
  • AC story 16 — each item routes into its owner: set-up-pending-device→device-add, review-awaiting-member→members, review-release→provisioning, drill-in-alert→monitoring. ✅

OverviewScreen.vue is the pure DO render, faithful to the wireframe's data-field/data-action/data-status element-ID contract. Evidence: dashboard/tests/unit/overview.test.ts — 12 new component tests over hand-written fakes (47 total dashboard tests green), vue-tsc + eslint clean. Out-of-scope (first-run DOx, the truths themselves, any shell aggregation store — ADR 0097 rejected) left untouched.

Done in `2f0587c` (branch `sandcastle/worker/20260725-093529-053352`). The steady-state **Overview (DO)** composed, never computed (DDR 0095, ADR 0097). `dashboard/src/components/shell/OverviewSurface.vue` composes the glance from three truths it does not own: **monitoring's aggregation** → health headline (`HealthSummarySource`, rendered verbatim — never a derived green, DDR 0071), **backups' coverage map** → coverage headline (`CoverageSummarySource`), and the **needs-attention queue as four queries, one per owner** (`NeedsAttentionSource`: pendingDevices/`enroll`, awaitingMembers/members, pendingReleases/provisioning, raisedAlerts/monitoring). Shell only concatenates in wireframe order and counts (`composeQueue`) — each count genuinely a query over its owner. - **AC story 14** — health + coverage + needs-attention render at mount, each a query over its owner; drill-in health → monitoring (DO→P5-S1), coverage → backups (DO→P7-S1). ✅ - **AC story 15** — everything-fine is a *shown* state: all-empty renders a first-class `needs-attention-empty` "Nothing needs your attention", never a hidden section, never a blank. ✅ - **AC story 16** — each item routes into its owner: `set-up-pending-device`→device-add, `review-awaiting-member`→members, `review-release`→provisioning, `drill-in-alert`→monitoring. ✅ `OverviewScreen.vue` is the pure DO render, faithful to the wireframe's `data-field`/`data-action`/`data-status` element-ID contract. Evidence: `dashboard/tests/unit/overview.test.ts` — 12 new component tests over hand-written fakes (47 total dashboard tests green), `vue-tsc` + eslint clean. Out-of-scope (first-run DOx, the truths themselves, any shell aggregation store — ADR 0097 rejected) left untouched.
ben closed this issue 2026-07-25 09:43:55 +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#34
No description provided.