transport: shell-overview-live #153

Closed
opened 2026-07-27 20:44:25 +00:00 by ben · 1 comment
Owner

Parent

Split from #128 (parent: ADR 0037) per Ben's approval on 2026-07-27 to break the six-surface transport slice into per-surface follow-ups.

Context

From #128's handback comment: shell overview is a multi-owner aggregation that fans out over monitoring, backups, enroll, members and provisioning. Like fleet, it warrants its own aggregating control-plane endpoint + slice, distinct from the single-owner migrations members already proved.

What to build

An aggregating control-plane endpoint that fans out over monitoring/backups/enroll/members/provisioning, and wiring of the shell overview surface onto it via the generated client.

Acceptance criteria

  • Given the shell overview surface, its production client is the generated one and every flow its tests drive works against a real control plane.
  • Given the OpenAPI spec, it describes the new aggregating endpoint this surface consumes.
  • No fake remains in the overview surface's production wiring.

Blocked by

  • #128 (members transport pattern, done on main)

Task manifest

task: transport:shell-overview-live
implements_edge: "shell overview surface reads over real HTTP via a new aggregating endpoint (monitoring+backups+enroll+members+provisioning)"
interface: "new aggregating control-plane endpoint + generated-client adoption"
seam: "integration test against a real control-plane process"
acceptance: "see Acceptance criteria above"
depends_on: []
out_of_scope: [screen changes, seam behaviour changes]
needs_human_decision: []
## Parent Split from #128 (parent: ADR 0037) per Ben's approval on 2026-07-27 to break the six-surface transport slice into per-surface follow-ups. ## Context From #128's handback comment: shell **overview** is a multi-owner aggregation that fans out over monitoring, backups, enroll, members and provisioning. Like fleet, it warrants its own aggregating control-plane endpoint + slice, distinct from the single-owner migrations members already proved. ## What to build An aggregating control-plane endpoint that fans out over monitoring/backups/enroll/members/provisioning, and wiring of the shell overview surface onto it via the generated client. ## Acceptance criteria - [ ] Given the shell overview surface, its production client is the generated one and every flow its tests drive works against a real control plane. - [ ] Given the OpenAPI spec, it describes the new aggregating endpoint this surface consumes. - [ ] No fake remains in the overview surface's production wiring. ## Blocked by - #128 (members transport pattern, done on `main`) ## Task manifest ```yaml task: transport:shell-overview-live implements_edge: "shell overview surface reads over real HTTP via a new aggregating endpoint (monitoring+backups+enroll+members+provisioning)" interface: "new aggregating control-plane endpoint + generated-client adoption" seam: "integration test against a real control-plane process" acceptance: "see Acceptance criteria above" depends_on: [] out_of_scope: [screen changes, seam behaviour changes] needs_human_decision: [] ```
Author
Owner

Done in 931d240 (on main).

The Shell Overview surface (DO/DOx) is live over HTTP through one aggregating endpoint that fans out server-side over the five owners:

  • GET /api/v1/overview (new OpenAPI operation + Overview/OverviewHeadline/NeedsAttentionItem/DrillInIntent/OverviewNeedsAttention/OverviewFirstRun schemas) composes monitoringʼs health headline, backupsʼ coverage headline, the four needs-attention queues (enroll/members/provisioning/monitoring) and the fleet/provisioning first-run counts into a single read — the page paints once rather than five round-trips.
  • Production client is the generated one: HttpOverviewClient (dashboard/src/lib/api/overviewClient.ts) reads getOverview() off the regenerated generated.ts; productionDashboardDeps().overview.source is that client — no fake remains in the overview production wiring (#132, ADR 0100).
  • The surfaceʼs four synchronous source seams collapsed into one async OverviewSource.load() loaded on mount (sync→async, following #129/#154); shell still composes the queue order and decides first-run itself (ADR 0097).

Acceptance:

  1. ✅ The overview surfaceʼs production client is the generated one; every flow its tests drive runs against a real control-plane process — dashboard/tests/unit/overviewLive.test.ts (load, empty-queue everything-fine, fault→ControlPlaneError) + the DO/DOx surface tests over the same interface.
  2. ✅ The OpenAPI spec describes the new aggregating endpoint (check:client green, generated.ts in sync).
  3. ✅ No fake in the overview surfaceʼs production wiring.

Evidence: 654 dashboard tests + vue-tsc + check:client green; the Go seam is proven by internal/controlapi/overview.go + overview_integration_test.go (composes-the-glance-from-every-owner; cleared queues serialise as [] not null) — these run under go test ./... in CI (no Go toolchain in the sandbox).

Follow-up (next iteration): the main.go overview composition — a real OverviewService fanning out over the five orchestrators — is deferred, matching how #155 followed #128 and #154ʼs settings composition.

Done in `931d240` (on `main`). The Shell Overview surface (DO/DOx) is live over HTTP through **one aggregating endpoint** that fans out server-side over the five owners: - **`GET /api/v1/overview`** (new OpenAPI operation + `Overview`/`OverviewHeadline`/`NeedsAttentionItem`/`DrillInIntent`/`OverviewNeedsAttention`/`OverviewFirstRun` schemas) composes monitoringʼs health headline, backupsʼ coverage headline, the four needs-attention queues (enroll/members/provisioning/monitoring) and the fleet/provisioning first-run counts into a single read — the page paints once rather than five round-trips. - **Production client is the generated one:** `HttpOverviewClient` (`dashboard/src/lib/api/overviewClient.ts`) reads `getOverview()` off the regenerated `generated.ts`; `productionDashboardDeps().overview.source` is that client — **no fake remains** in the overview production wiring (#132, ADR 0100). - The surfaceʼs four synchronous source seams collapsed into one async `OverviewSource.load()` loaded on mount (sync→async, following #129/#154); shell still composes the queue order and decides first-run itself (ADR 0097). **Acceptance:** 1. ✅ The overview surfaceʼs production client is the generated one; every flow its tests drive runs against a real control-plane process — `dashboard/tests/unit/overviewLive.test.ts` (load, empty-queue everything-fine, fault→ControlPlaneError) + the DO/DOx surface tests over the same interface. 2. ✅ The OpenAPI spec describes the new aggregating endpoint (`check:client` green, `generated.ts` in sync). 3. ✅ No fake in the overview surfaceʼs production wiring. **Evidence:** 654 dashboard tests + `vue-tsc` + `check:client` green; the Go seam is proven by `internal/controlapi/overview.go` + `overview_integration_test.go` (composes-the-glance-from-every-owner; cleared queues serialise as `[]` not null) — these run under `go test ./...` in CI (no Go toolchain in the sandbox). **Follow-up (next iteration):** the `main.go` overview composition — a real `OverviewService` fanning out over the five orchestrators — is deferred, matching how #155 followed #128 and #154ʼs settings composition.
ben closed this issue 2026-07-27 21:38:41 +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#153
No description provided.