dashboard: FleetSurface renders a blank tab when the fleet read fails #298

Closed
opened 2026-08-05 23:10:55 +00:00 by ben · 1 comment
Owner

dashboard/src/components/shell/FleetSurface.vue:122-123 — onMounted(async () => { composition.value = await props.source.load(); }), no catch. A failed aggregating read leaves composition null and FleetScreen v-if="composition" renders nothing: an empty Fleet tab, no explanation, no retry. The never-empty rule (DDR 0095) can't save it — it's gated behind the same null check.

Acceptance

  • A failed load renders an error state with retry (async-guard idiom, packages/ui-kit/src/asyncGuard.ts).
  • Vitest: rejecting source ⇒ error state, retry re-loads.

Filed from the 2026-08-05 fail-loud audit (three-agent pre-production sweep; findings verified against code).

`dashboard/src/components/shell/FleetSurface.vue:122-123` — `onMounted(async () => { composition.value = await props.source.load(); })`, no catch. A failed aggregating read leaves `composition` null and `FleetScreen v-if="composition"` renders nothing: an empty Fleet tab, no explanation, no retry. The never-empty rule (DDR 0095) can't save it — it's gated behind the same null check. **Acceptance** - A failed load renders an error state with retry (async-guard idiom, `packages/ui-kit/src/asyncGuard.ts`). - Vitest: rejecting source ⇒ error state, retry re-loads. --- _Filed from the 2026-08-05 fail-loud audit (three-agent pre-production sweep; findings verified against code)._
Author
Owner

Fixed in 679e331 (on origin/main).

FleetSurface.vue's onMounted aggregating read and closeSetup's re-read now run behind useAsyncGuard (packages/ui-kit). A failed source.load() renders OcErrorState (data-status="fleet-unreachable") with a Try-again that re-loads, instead of leaving composition null and painting a blank Fleet tab.

Vitest at the seam (dashboard/tests/unit/fleet.test.ts, +2): a rejecting source ⇒ honest error state with the seam message and no fleet list leaked through; retry re-reads and paints the resting list. fleet suite 15 green, vue-tsc clean.

Fixed in 679e331 (on origin/main). `FleetSurface.vue`'s `onMounted` aggregating read and `closeSetup`'s re-read now run behind `useAsyncGuard` (`packages/ui-kit`). A failed `source.load()` renders `OcErrorState` (`data-status="fleet-unreachable"`) with a Try-again that re-loads, instead of leaving `composition` null and painting a blank Fleet tab. Vitest at the seam (`dashboard/tests/unit/fleet.test.ts`, +2): a rejecting source ⇒ honest error state with the seam message and no fleet list leaked through; retry re-reads and paints the resting list. `fleet` suite 15 green, `vue-tsc` clean.
ben closed this issue 2026-08-06 00:54:11 +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.

Dependencies

No dependencies set.

Reference
Matou/idss#298
No description provided.