shell: app-side-shell — the operator app's Welcome, both homes, and logs #28

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

Parent

Feature spec: #22 (shell).

What to build

The operator app's resting root — the seat on the operator's own machine that founds, break-glass-rescues, and (more lightly) helps run a community. It gates the app-hosted entries of founding and device-add, so it must exist before those journeys can begin. Four resting screens: Welcome (shell-w-welcome.html), Operator home (shell-ho-operator-home.html), Device home (shell-hd-device-home.html), and the logs viewer (shell-a5-logs-viewer.html).

On a seat with no community configured, the app rests at Welcome with exactly two entry actions — "Create a community" and "Join with a code" — and nothing else (ADR 0018: the entry choice lives on Welcome, not a home). Choosing "Create a community" begins founding's journey (edge W → P1-S1); "Join with a code" begins device-add's app-side join (edge W → P3-S2). On a seat that already administers a community (ADR 0019), the app rests at Operator home (HO): community name and portal URL, a healthy status pill, "Open dashboard" as the visually dominant action (edge HO → DN, ADR 0011 — everyday administration lives on the dashboard), the standing rescue material (config replica synced, operator key active) present but quiet while healthy, and any local VM's lifecycle. On a machine that merely helps, the app rests at the lighter Device home (HD): which community it helps run, its role and running services as read-only rows (name, plain state, last incident), and the local VM lifecycle as the one genuinely local act (manage: start/stop/resize/remove) — managing services stays in the dashboard.

The logs viewer (A5) is the escalation path reachable from every surface (ADR 0027): the operation log with filter/search and a "Download bundle" that produces one shareable bundle for a remote helper, with secrets never entering logs by construction — but never the primary diagnostic the operator must read (the plain-language surfaces are; the P1 persona promise stands). This slice also establishes the cross-cutting never-empty rule (DDR 0095): every resting list shell frames opens with founding's row so "empty" is always rendered as "here is what exists, here is the next move".

Acceptance criteria

  • (story 1) Given no community configured on this seat, When the app opens, Then W (Welcome) shows exactly two actions — "Create a community" and "Join with a code" — and nothing else (ADR 0018).
  • (story 1) Given W, When I choose "Create a community", Then founding's journey begins (edge W → P1-S1); When I choose "Join with a code", Then device-add's app-side join begins (edge W → P3-S2).
  • (story 2) Given a community administered from this seat (ADR 0019), When the app opens, Then HO (Operator home) shows the community name and portal URL, a healthy status pill, "Open dashboard" as the visually dominant action, the standing rescue material (config replica synced, operator key active), and any local VM's lifecycle — with rescue tools present but quiet while healthy.
  • (story 2) Given HO, When I choose "Open dashboard", Then everyday administration leaves the app for the dashboard (edge HO → DN, ADR 0011); "Rescue tools" begins break-glass (HO → P8-S3); "Logs" opens the logs viewer (HO → A5); "Enrollment codes" opens the app-side ledger (HO → A4).
  • (story 3) Given this machine is a device (helper) seat, When the app opens, Then HD (Device home) shows which community it helps run, its role and running services as read-only rows (name, plain state, last incident), and the local VM lifecycle as the one genuinely local act (manage: start/stop/resize/remove).
  • (story 3) Given HD, When I drill in to this device's logs, Then A5 opens scoped to this device (edge HD → A5); managing services stays in the dashboard, not here.
  • (story 29) Given any resting surface or drill-in, When I open logs, Then A5 (or the surface's own log drill-in) shows the operation log with filter/search and a "Download bundle" that produces one shareable bundle for a remote helper (ADR 0027); secrets never enter logs by construction.
  • (story 29) Given logs are the escalation path, When the operator rests, Then logs are never the primary diagnostic the operator must read — the plain-language surfaces are (the P1 persona promise stands).
  • (story 30) Given any resting list shell frames, When it renders at rest, Then it opens with founding's row — the Fleet list's gateway (DF), the codes ledger's spent founding code (A4/DF2), the Members tab's founder (mounted from members) — so "empty" is always rendered as "here is what exists, here is the next move".

Blocked by

  • #23 — the repo skeleton must exist

Task manifest

task: shell:app-side-shell
implements_flow: shell
implements_edge: W→HO, HO→A5, HO→A4, HD→A5, W→(founding P1-S1), W→(device-add P3-S2)
wireframe:
  - docs/ux/wireframes/shell/shell-w-welcome.html
  - docs/ux/wireframes/shell/shell-ho-operator-home.html
  - docs/ux/wireframes/shell/shell-hd-device-home.html
  - docs/ux/wireframes/shell/shell-a5-logs-viewer.html
interface: the operator app root — the W/HO/HD resting screens and the A5 logs viewer; gates founding's (W → P1-S1) and device-add's (W → P3-S2) app-hosted entries; establishes the never-empty rule for every resting list shell frames (DDR 0095)
seam: operator app shell component tests (Electron/Vue) — resting-screen rendering (W two-action-only, HO healthy card, HD read-only rows) and routing to founding/device-add/rescue/logs/ledger entries, against fakes
acceptance:
  - given: no community configured on this seat
    when: the app opens
    then: W shows exactly "Create a community" and "Join with a code" and nothing else; the two actions begin founding (W → P1-S1) and device-add's join (W → P3-S2)
  - given: a community administered from this seat
    when: the app opens
    then: HO shows name+portal URL, a healthy pill, "Open dashboard" dominant (HO → DN), standing rescue material quiet-while-healthy, and local VM lifecycle; actions route to rescue/logs/ledger
  - given: a device (helper) seat
    when: the app opens
    then: HD shows the community it helps, role and services as read-only rows, and local VM lifecycle as the one local act; logs drill-in opens A5 scoped to this device
  - given: any resting surface
    when: I open logs
    then: A5 shows the operation log with filter/search and "Download bundle" (one shareable bundle, no secrets), and is never the primary diagnostic
  - given: any resting list shell frames
    when: it renders at rest
    then: it opens with founding's row (Fleet's gateway, the codes ledger's spent founding code, Members' founder) — never a blank
depends_on: [bootstrap:skeleton]
out_of_scope: [the HOx unreachable state and the AU update strip/screen (unreachable-pair-hox-dx's and appupdate-ladder's), the codes-ledger contents (codes-ledger-both-surfaces'), break-glass itself (rescue's P8), founding's and device-add's journeys, the multi-community switcher's full journey]
needs_human_decision: []
## Parent Feature spec: #22 (shell). ## What to build The operator app's resting root — the seat on the operator's own machine that founds, break-glass-rescues, and (more lightly) helps run a community. It gates the app-hosted entries of founding and device-add, so it must exist before those journeys can begin. Four resting screens: Welcome (`shell-w-welcome.html`), Operator home (`shell-ho-operator-home.html`), Device home (`shell-hd-device-home.html`), and the logs viewer (`shell-a5-logs-viewer.html`). On a seat with no community configured, the app rests at **Welcome** with exactly two entry actions — "Create a community" and "Join with a code" — and nothing else (ADR 0018: the entry choice lives on Welcome, not a home). Choosing "Create a community" begins founding's journey (edge W → P1-S1); "Join with a code" begins device-add's app-side join (edge W → P3-S2). On a seat that already administers a community (ADR 0019), the app rests at **Operator home (HO)**: community name and portal URL, a healthy status pill, "Open dashboard" as the visually dominant action (edge HO → DN, ADR 0011 — everyday administration lives on the dashboard), the standing rescue material (config replica synced, operator key active) present but quiet while healthy, and any local VM's lifecycle. On a machine that merely helps, the app rests at the lighter **Device home (HD)**: which community it helps run, its role and running services as read-only rows (name, plain state, last incident), and the local VM lifecycle as the one genuinely local act (manage: start/stop/resize/remove) — managing services stays in the dashboard. The **logs viewer (A5)** is the escalation path reachable from every surface (ADR 0027): the operation log with filter/search and a "Download bundle" that produces one shareable bundle for a remote helper, with secrets never entering logs by construction — but never the primary diagnostic the operator must read (the plain-language surfaces are; the P1 persona promise stands). This slice also establishes the cross-cutting **never-empty rule** (DDR 0095): every resting list shell frames opens with founding's row so "empty" is always rendered as "here is what exists, here is the next move". ## Acceptance criteria - [ ] (story 1) Given no community configured on this seat, When the app opens, Then W (Welcome) shows exactly two actions — "Create a community" and "Join with a code" — and nothing else (ADR 0018). - [ ] (story 1) Given W, When I choose "Create a community", Then founding's journey begins (edge W → P1-S1); When I choose "Join with a code", Then device-add's app-side join begins (edge W → P3-S2). - [ ] (story 2) Given a community administered from this seat (ADR 0019), When the app opens, Then HO (Operator home) shows the community name and portal URL, a healthy status pill, "Open dashboard" as the visually dominant action, the standing rescue material (config replica synced, operator key active), and any local VM's lifecycle — with rescue tools present but quiet while healthy. - [ ] (story 2) Given HO, When I choose "Open dashboard", Then everyday administration leaves the app for the dashboard (edge HO → DN, ADR 0011); "Rescue tools" begins break-glass (HO → P8-S3); "Logs" opens the logs viewer (HO → A5); "Enrollment codes" opens the app-side ledger (HO → A4). - [ ] (story 3) Given this machine is a device (helper) seat, When the app opens, Then HD (Device home) shows which community it helps run, its role and running services as read-only rows (name, plain state, last incident), and the local VM lifecycle as the one genuinely local act (manage: start/stop/resize/remove). - [ ] (story 3) Given HD, When I drill in to this device's logs, Then A5 opens scoped to this device (edge HD → A5); managing services stays in the dashboard, not here. - [ ] (story 29) Given any resting surface or drill-in, When I open logs, Then A5 (or the surface's own log drill-in) shows the operation log with filter/search and a "Download bundle" that produces one shareable bundle for a remote helper (ADR 0027); secrets never enter logs by construction. - [ ] (story 29) Given logs are the escalation path, When the operator rests, Then logs are never the primary diagnostic the operator must read — the plain-language surfaces are (the P1 persona promise stands). - [ ] (story 30) Given any resting list shell frames, When it renders at rest, Then it opens with founding's row — the Fleet list's gateway (DF), the codes ledger's spent founding code (A4/DF2), the Members tab's founder (mounted from members) — so "empty" is always rendered as "here is what exists, here is the next move". ## Blocked by - #23 — the repo skeleton must exist ## Task manifest ```yaml task: shell:app-side-shell implements_flow: shell implements_edge: W→HO, HO→A5, HO→A4, HD→A5, W→(founding P1-S1), W→(device-add P3-S2) wireframe: - docs/ux/wireframes/shell/shell-w-welcome.html - docs/ux/wireframes/shell/shell-ho-operator-home.html - docs/ux/wireframes/shell/shell-hd-device-home.html - docs/ux/wireframes/shell/shell-a5-logs-viewer.html interface: the operator app root — the W/HO/HD resting screens and the A5 logs viewer; gates founding's (W → P1-S1) and device-add's (W → P3-S2) app-hosted entries; establishes the never-empty rule for every resting list shell frames (DDR 0095) seam: operator app shell component tests (Electron/Vue) — resting-screen rendering (W two-action-only, HO healthy card, HD read-only rows) and routing to founding/device-add/rescue/logs/ledger entries, against fakes acceptance: - given: no community configured on this seat when: the app opens then: W shows exactly "Create a community" and "Join with a code" and nothing else; the two actions begin founding (W → P1-S1) and device-add's join (W → P3-S2) - given: a community administered from this seat when: the app opens then: HO shows name+portal URL, a healthy pill, "Open dashboard" dominant (HO → DN), standing rescue material quiet-while-healthy, and local VM lifecycle; actions route to rescue/logs/ledger - given: a device (helper) seat when: the app opens then: HD shows the community it helps, role and services as read-only rows, and local VM lifecycle as the one local act; logs drill-in opens A5 scoped to this device - given: any resting surface when: I open logs then: A5 shows the operation log with filter/search and "Download bundle" (one shareable bundle, no secrets), and is never the primary diagnostic - given: any resting list shell frames when: it renders at rest then: it opens with founding's row (Fleet's gateway, the codes ledger's spent founding code, Members' founder) — never a blank depends_on: [bootstrap:skeleton] out_of_scope: [the HOx unreachable state and the AU update strip/screen (unreachable-pair-hox-dx's and appupdate-ladder's), the codes-ledger contents (codes-ledger-both-surfaces'), break-glass itself (rescue's P8), founding's and device-add's journeys, the multi-community switcher's full journey] needs_human_decision: [] ```
Author
Owner

Done in commit 47e019f.

Built the operator app's resting root at app/ — the first Vue in the repo — against the four shell wireframes.

Screens (each a <script setup> SFC, on the data-field/data-action/data-status contract):

  • W Welcome — exactly two entry actions and nothing else (ADR 0018): Create → founding P1-S1, Join → device-add P3-S2.
  • HO Operator home — community name + portal URL, healthy pill, "Open dashboard" the visually dominant action (HO→DN, ADR 0011), standing rescue material (config replica synced, operator key active) quiet-while-healthy, local VM lifecycle; routes to Rescue tools (P8-S3) / Logs (A5) / Enrollment codes (A4).
  • HD Device home — which community it helps, role + running services as read-only rows, local VM as the one genuinely local act; logs drill-in opens A5 scoped to this device; managing services stays in the dashboard.
  • A5 Logs viewer — operation log with operation/level/search filters + a Download-bundle for a remote helper (ADR 0027); secrets absent by construction (LogEntry has a closed, non-secret field set).
  • RestingRoot resolves seat → screen (ADR 0019) and forwards nav intents to an injected Navigator (shell has no orchestrator, ADR 0097).

Never-empty rule (DDR 0095): established as a cross-cutting primitive frameRestingList in the shared UI kit, for the list-shell slices (Fleet/codes/Members) to consume — those specific list screens are out of this slice.

Seam (component tests, Electron/Vue, against fakes): FakeSeatSource + FakeNavigator; 35 app tests (app/tests/unit/*) + the UI-kit primitive test, all green. vue-tsc build and eslint (with the newly-added eslint-plugin-vue) both clean.

Tooling wired: Vue 3, @vue/test-utils, happy-dom, sass, the src/* alias, vue-tsc build, eslint-plugin-vue (both lockfiles synced).

Left to their own slices (out of scope): app-update strip (#30), HOx unreachable (#38), codes-ledger contents (#36), the VM-manage screen.

Evidence: app/src/components/shell/*.vue, app/src/lib/{seat,navigation,logs}.ts, app/tests/unit/*, packages/ui-kit/src/neverEmpty.ts. STATUS.md, docs/slices/shell.yaml (status: done) and map.html updated in the same commit.

Done in commit `47e019f`. Built the operator app's resting root at `app/` — the first Vue in the repo — against the four shell wireframes. **Screens (each a `<script setup>` SFC, on the data-field/data-action/data-status contract):** - **W Welcome** — exactly two entry actions and nothing else (ADR 0018): Create → founding P1-S1, Join → device-add P3-S2. - **HO Operator home** — community name + portal URL, healthy pill, "Open dashboard" the visually dominant action (HO→DN, ADR 0011), standing rescue material (config replica synced, operator key active) quiet-while-healthy, local VM lifecycle; routes to Rescue tools (P8-S3) / Logs (A5) / Enrollment codes (A4). - **HD Device home** — which community it helps, role + running services as read-only rows, local VM as the one genuinely local act; logs drill-in opens A5 scoped to this device; managing services stays in the dashboard. - **A5 Logs viewer** — operation log with operation/level/search filters + a Download-bundle for a remote helper (ADR 0027); secrets absent by construction (`LogEntry` has a closed, non-secret field set). - **RestingRoot** resolves seat → screen (ADR 0019) and forwards nav intents to an injected `Navigator` (shell has no orchestrator, ADR 0097). **Never-empty rule (DDR 0095):** established as a cross-cutting primitive `frameRestingList` in the shared UI kit, for the list-shell slices (Fleet/codes/Members) to consume — those specific list screens are out of this slice. **Seam (component tests, Electron/Vue, against fakes):** `FakeSeatSource` + `FakeNavigator`; 35 app tests (`app/tests/unit/*`) + the UI-kit primitive test, all green. `vue-tsc` build and `eslint` (with the newly-added `eslint-plugin-vue`) both clean. **Tooling wired:** Vue 3, `@vue/test-utils`, happy-dom, sass, the `src/*` alias, `vue-tsc` build, `eslint-plugin-vue` (both lockfiles synced). **Left to their own slices (out of scope):** app-update strip (#30), HOx unreachable (#38), codes-ledger contents (#36), the VM-manage screen. Evidence: `app/src/components/shell/*.vue`, `app/src/lib/{seat,navigation,logs}.ts`, `app/tests/unit/*`, `packages/ui-kit/src/neverEmpty.ts`. STATUS.md, `docs/slices/shell.yaml` (`status: done`) and `map.html` updated in the same commit.
ben closed this issue 2026-07-25 06:16:25 +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#28
No description provided.