shell: ui-kit-mount-slot-contract — the dashboard frame every feature mounts into #29

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

Parent

Feature spec: #22 (shell).

What to build

The hub of the whole slice-map: the shared UI kit's mount/slot contract — the resting frame of the web dashboard (DN) that every dashboard feature composes into. When the dashboard loads, the nav chrome (docs/ux/wireframes/shell/shell-dn-nav-chrome.html) renders the brand bar wearing the community's compiled brand kit via tokens.css, the six fixed tabs in order — Overview / Fleet / Services / Members / Backups / Settings — the signed-in operator, and two chrome slots; the selected tab's owner renders in the mount outlet. The six tabs are a closed static mount table (data, not runtime registration): each tab is a named mount point where a feature's screens appear, wired by static build-time composition in the shared UI kit. A new tab is never a runtime registration — it is an OurCloud-side code change adding a declared entry to the mount table (ADR 0094, no plugin registry, no shell-side store).

Two chrome slots ride every page. The standing-indicator stack holds any feature's evidence-based, non-dismissible indicator, rendered in severity-then-age order, each naming its owning feature's drill-in — its content and evidence read as a query over that feature's store (shell holds no copy; e.g. first tenant provisioning's auto-security-off, P4b-U5x). The raised-alert count is a count-with-severity chip read as a query over monitoring's alert store — never a shell-invented counter that can disagree with monitoring. This slice also wires Quasar's brand vars to the compiled tokens.css (the brandkit output) and owns the data-field / data-action / data-status attribute contract.

Shell frames each feature's content without owning or re-testing its truth (ADR 0097): Services mounts monitoring's status truth plus provisioning's per-service surfaces, Members mounts P6-S1, Backups mounts P7-S1, while Overview / Fleet / Settings are shell's own resting surfaces (built in later slices). Ruling carried from the slice-map (2026-07-25): the Services tab's resting content is the mount reading — no shell-authored Services screen.

Acceptance criteria

  • (story 10) Given the web dashboard loads, When the nav chrome (DN) renders, Then it shows the brand bar (wearing the community's compiled brand kit via tokens.css), the six fixed tabs in order — Overview / Fleet / Services / Members / Backups / Settings — the signed-in operator, and the two chrome slots; the selected tab's owner renders in the mount outlet.
  • (story 10) Given the closed v1 tab set (ADR 0094), When the platform grows a catalogue port or a feature, Then no tab registers at runtime — a new tab is an OurCloud-side code change adding a declared entry to the static mount table.
  • (story 11) Given the static mount table, When a tab is selected, Then the owning feature's screens render in the mount outlet — Services mounts monitoring's status truth and provisioning's per-service surfaces (DN → P5-S1), Members mounts P6-S1 (DN → P6-S1), Backups mounts P7-S1 (DN → P7-S1) — while Overview / Fleet / Settings are shell's own resting surfaces.
  • (story 11) Given a feature's screens, When design-verify runs, Then each feature's screens are asserted to appear at their declared mount point; shell asserts only that the truth is rendered at the declared mount, never re-testing the truth itself (ADR 0097).
  • (story 12) Given a feature supplies a standing indicator (evidence-based, non-dismissible), When any dashboard page renders, Then it appears in the standing-indicator stack in severity-then-age order, names its owning feature's drill-in, and its content/evidence is read as a query over that feature's store — shell holds no copy (IND → DN; first tenant provisioning's auto-security-off, P4b-U5x).
  • (story 12) Given the indicator's condition clears in the owning feature's store, When the page re-renders, Then the indicator is gone (it stands only while its condition stands — advice never veto, never a dismissible nag).
  • (story 13) Given monitoring's standing alerts, When the chrome renders the raised-alert count, Then it is a count-with-severity chip read as a query over monitoring's alert store (the CONTEXT.md Alert rule — the surface is a query, never a separate store), not a shell counter.
  • (story 13) Given the alert-count chip, When I drill in, Then monitoring's alerts open (DN → P5-S1); when monitoring's alert store has zero raised alerts, the chip reflects that truthfully.

Blocked by

  • #23 — the repo skeleton must exist
  • #27 — tokens.css output for the brand bar

Task manifest

task: shell:ui-kit-mount-slot-contract
implements_flow: shell
implements_edge: DN→DO, DN→DF, DN→DS, DN→P5-S1, DN→P6-S1, DN→P7-S1, IND→DN
wireframe: docs/ux/wireframes/shell/shell-dn-nav-chrome.html
interface: the shared UI-kit mount/slot contract (ADR 0094) — a closed static mount table (six fixed tabs as data), the standing-indicator stack slot (severity-then-age, content a query over the owning feature's store), the raised-alert count slot (a query over monitoring's alert store), the data-field/data-action/data-status attribute contract, Quasar brand vars wired to the compiled tokens.css
seam: UI-kit mount/slot contract tests (shared UI kit, Vue/Quasar) — data-level mount-table diff + component-level slot tests reading a faked owner store; not a Go seam (ADR 0094/0097)
acceptance:
  - given: the web dashboard loads
    when: the nav chrome (DN) renders
    then: brand bar (tokens.css), the six fixed tabs in order, the signed-in operator, and the two chrome slots render; the selected tab's owner renders in the mount outlet
  - given: the closed v1 tab set
    when: the platform grows a catalogue port or feature
    then: no tab registers at runtime — a new tab is a code change adding a declared static-mount-table entry
  - given: the static mount table
    when: a tab is selected
    then: the owning feature's screens render in the mount outlet (Services → monitoring+provisioning, Members → P6-S1, Backups → P7-S1); Overview/Fleet/Settings are shell's own
  - given: a feature supplies an evidence-based non-dismissible standing indicator
    when: any dashboard page renders
    then: it appears in the stack in severity-then-age order, names the owner's drill-in, and its evidence is a query over the owner's store; it is gone when the condition clears
  - given: monitoring's standing alerts
    when: the chrome renders the raised-alert count
    then: it is a count-with-severity chip read as a query over monitoring's alert store (not a shell counter), reflecting zero truthfully; drill-in opens monitoring (DN → P5-S1)
depends_on: [bootstrap:skeleton, bootstrap:brandkit-seam]
out_of_scope: [the Services tab's resting content (monitoring's status truth + provisioning's per-service surfaces — shell owns only the mount), a runtime plugin/slot registry or dynamic tab discovery (ADR 0094 rejected), any feature's truth or journey, the Overview/Fleet/Settings resting surfaces (own slices)]
needs_human_decision: []
## Parent Feature spec: #22 (shell). ## What to build The hub of the whole slice-map: the shared UI kit's mount/slot contract — the resting frame of the web dashboard (DN) that every dashboard feature composes into. When the dashboard loads, the nav chrome (`docs/ux/wireframes/shell/shell-dn-nav-chrome.html`) renders the brand bar wearing the community's compiled brand kit via `tokens.css`, the six fixed tabs in order — Overview / Fleet / Services / Members / Backups / Settings — the signed-in operator, and two chrome slots; the selected tab's owner renders in the mount outlet. The six tabs are a **closed static mount table** (data, not runtime registration): each tab is a named mount point where a feature's screens appear, wired by static build-time composition in the shared UI kit. A new tab is never a runtime registration — it is an OurCloud-side code change adding a declared entry to the mount table (ADR 0094, no plugin registry, no shell-side store). Two chrome slots ride every page. The **standing-indicator stack** holds any feature's evidence-based, non-dismissible indicator, rendered in severity-then-age order, each naming its owning feature's drill-in — its content and evidence read as a query over that feature's store (shell holds no copy; e.g. first tenant provisioning's auto-security-off, P4b-U5x). The **raised-alert count** is a count-with-severity chip read as a query over monitoring's alert store — never a shell-invented counter that can disagree with monitoring. This slice also wires Quasar's brand vars to the compiled `tokens.css` (the brandkit output) and owns the `data-field` / `data-action` / `data-status` attribute contract. Shell frames each feature's content without owning or re-testing its truth (ADR 0097): Services mounts monitoring's status truth plus provisioning's per-service surfaces, Members mounts P6-S1, Backups mounts P7-S1, while Overview / Fleet / Settings are shell's own resting surfaces (built in later slices). Ruling carried from the slice-map (2026-07-25): the Services tab's resting content **is** the mount reading — no shell-authored Services screen. ## Acceptance criteria - [ ] (story 10) Given the web dashboard loads, When the nav chrome (DN) renders, Then it shows the brand bar (wearing the community's compiled brand kit via `tokens.css`), the six fixed tabs in order — Overview / Fleet / Services / Members / Backups / Settings — the signed-in operator, and the two chrome slots; the selected tab's owner renders in the mount outlet. - [ ] (story 10) Given the closed v1 tab set (ADR 0094), When the platform grows a catalogue port or a feature, Then no tab registers at runtime — a new tab is an OurCloud-side code change adding a declared entry to the static mount table. - [ ] (story 11) Given the static mount table, When a tab is selected, Then the owning feature's screens render in the mount outlet — Services mounts monitoring's status truth and provisioning's per-service surfaces (DN → P5-S1), Members mounts P6-S1 (DN → P6-S1), Backups mounts P7-S1 (DN → P7-S1) — while Overview / Fleet / Settings are shell's own resting surfaces. - [ ] (story 11) Given a feature's screens, When `design-verify` runs, Then each feature's screens are asserted to appear at their declared mount point; shell asserts only that the truth is rendered at the declared mount, never re-testing the truth itself (ADR 0097). - [ ] (story 12) Given a feature supplies a standing indicator (evidence-based, non-dismissible), When any dashboard page renders, Then it appears in the standing-indicator stack in severity-then-age order, names its owning feature's drill-in, and its content/evidence is read as a query over that feature's store — shell holds no copy (IND → DN; first tenant provisioning's auto-security-off, P4b-U5x). - [ ] (story 12) Given the indicator's condition clears in the owning feature's store, When the page re-renders, Then the indicator is gone (it stands only while its condition stands — advice never veto, never a dismissible nag). - [ ] (story 13) Given monitoring's standing alerts, When the chrome renders the raised-alert count, Then it is a count-with-severity chip read as a query over monitoring's alert store (the CONTEXT.md Alert rule — the surface is a query, never a separate store), not a shell counter. - [ ] (story 13) Given the alert-count chip, When I drill in, Then monitoring's alerts open (DN → P5-S1); when monitoring's alert store has zero raised alerts, the chip reflects that truthfully. ## Blocked by - #23 — the repo skeleton must exist - #27 — `tokens.css` output for the brand bar ## Task manifest ```yaml task: shell:ui-kit-mount-slot-contract implements_flow: shell implements_edge: DN→DO, DN→DF, DN→DS, DN→P5-S1, DN→P6-S1, DN→P7-S1, IND→DN wireframe: docs/ux/wireframes/shell/shell-dn-nav-chrome.html interface: the shared UI-kit mount/slot contract (ADR 0094) — a closed static mount table (six fixed tabs as data), the standing-indicator stack slot (severity-then-age, content a query over the owning feature's store), the raised-alert count slot (a query over monitoring's alert store), the data-field/data-action/data-status attribute contract, Quasar brand vars wired to the compiled tokens.css seam: UI-kit mount/slot contract tests (shared UI kit, Vue/Quasar) — data-level mount-table diff + component-level slot tests reading a faked owner store; not a Go seam (ADR 0094/0097) acceptance: - given: the web dashboard loads when: the nav chrome (DN) renders then: brand bar (tokens.css), the six fixed tabs in order, the signed-in operator, and the two chrome slots render; the selected tab's owner renders in the mount outlet - given: the closed v1 tab set when: the platform grows a catalogue port or feature then: no tab registers at runtime — a new tab is a code change adding a declared static-mount-table entry - given: the static mount table when: a tab is selected then: the owning feature's screens render in the mount outlet (Services → monitoring+provisioning, Members → P6-S1, Backups → P7-S1); Overview/Fleet/Settings are shell's own - given: a feature supplies an evidence-based non-dismissible standing indicator when: any dashboard page renders then: it appears in the stack in severity-then-age order, names the owner's drill-in, and its evidence is a query over the owner's store; it is gone when the condition clears - given: monitoring's standing alerts when: the chrome renders the raised-alert count then: it is a count-with-severity chip read as a query over monitoring's alert store (not a shell counter), reflecting zero truthfully; drill-in opens monitoring (DN → P5-S1) depends_on: [bootstrap:skeleton, bootstrap:brandkit-seam] out_of_scope: [the Services tab's resting content (monitoring's status truth + provisioning's per-service surfaces — shell owns only the mount), a runtime plugin/slot registry or dynamic tab discovery (ADR 0094 rejected), any feature's truth or journey, the Overview/Fleet/Settings resting surfaces (own slices)] needs_human_decision: [] ```
Author
Owner

Done in 40590bb.

Built the shared UI kit's mount/slot contract (ADR 0094) — the resting DN frame every dashboard feature mounts into, wired by static composition, no runtime registry, no shell-side store (ADR 0097).

Contract (packages/ui-kit):

  • mountTable.ts — the closed static mount table as data: the six fixed tabs Overview/Fleet/Services/Members/Backups/Settings, each a named mount point with its owner + flow edge (Services→P5-S1 monitoring+provisioning, Members→P6-S1, Backups→P7-S1; Overview/Fleet/Settings shell's own). Object.freezed — a new tab is a code change adding an entry, never a runtime registration.
  • chrome.ts — the two chrome slots as queries over the owning feature's store (shell holds no copy): the standing-indicator stack (severity-then-age, non-dismissible, gone the moment its condition clears — first tenant provisioning's auto-security-off P4b-U5x), and the raised-alert count chip (over monitoring's alert store, a truthful zero when clear, drilling into P5-S1 — never a shell counter).
  • brandVars.ts — quasarBrandVarsCss wires Quasar's --q-* brand vars onto the kit's --oc-* tokens.css (the brandkit output); invents no colour.
  • components/NavChrome.vue — the DN chrome: brand bar wearing tokens.css, the six tabs, both slots, and a mount outlet exposing a named slot per tab id so a feature's screens render at its declared mount point (design-verify asserts placement; shell never re-tests the truth). Emits select/drill-in intents to an injected navigator.

Consumer: dashboard/DashboardShell.vue composes NavChrome with the static table + a DashboardNavigator — the web dashboard now loads its DN frame. Vue tooling wired on dashboard/; NavChrome.vue exported via a package subpath so pure-TS consumers keep a tsc build.

Acceptance: all clauses (stories 10–13) covered — brand bar + six tabs + operator + two slots + mount outlet render; closed table (no runtime tab); owner renders at declared mount; standing indicator appears severity-then-age, names its drill-in, evidence is a query, gone when cleared; alert count is a query over monitoring, truthful zero, drills into P5-S1.

Evidence: 39 new TS tests — ui-kit 33 (tests/unit/mountTable.test.ts, chrome.test.ts, brandVars.test.ts, navChrome.test.ts) + dashboard 6 (tests/unit/dashboardShell.test.ts); all reading faked owner stores. vue-tsc build + eslint clean. State: docs/slices/shell.yaml marks the slice status: done, map.html node updated, STATUS.md header + milestone log updated. Every dashboard-mounted feature slice is now unblocked.

Out of scope (own slices): the Services/Overview/Fleet/Settings resting content and any feature's truth or journey.

Done in `40590bb`. Built the shared UI kit's **mount/slot contract** (ADR 0094) — the resting DN frame every dashboard feature mounts into, wired by static composition, no runtime registry, no shell-side store (ADR 0097). **Contract (`packages/ui-kit`):** - `mountTable.ts` — the **closed static mount table** as data: the six fixed tabs Overview/Fleet/Services/Members/Backups/Settings, each a named mount point with its owner + flow edge (Services→P5-S1 monitoring+provisioning, Members→P6-S1, Backups→P7-S1; Overview/Fleet/Settings shell's own). `Object.freeze`d — a new tab is a code change adding an entry, never a runtime registration. - `chrome.ts` — the two chrome slots as **queries over the owning feature's store** (shell holds no copy): the standing-indicator stack (severity-then-age, non-dismissible, gone the moment its condition clears — first tenant provisioning's auto-security-off P4b-U5x), and the raised-alert count chip (over monitoring's alert store, a truthful zero when clear, drilling into P5-S1 — never a shell counter). - `brandVars.ts` — `quasarBrandVarsCss` wires Quasar's `--q-*` brand vars onto the kit's `--oc-*` `tokens.css` (the brandkit output); invents no colour. - `components/NavChrome.vue` — the DN chrome: brand bar wearing `tokens.css`, the six tabs, both slots, and a **mount outlet exposing a named slot per tab id** so a feature's screens render at its declared mount point (`design-verify` asserts placement; shell never re-tests the truth). Emits `select`/`drill-in` intents to an injected navigator. **Consumer:** `dashboard/DashboardShell.vue` composes `NavChrome` with the static table + a `DashboardNavigator` — the web dashboard now loads its DN frame. Vue tooling wired on `dashboard/`; `NavChrome.vue` exported via a package subpath so pure-TS consumers keep a `tsc` build. **Acceptance:** all clauses (stories 10–13) covered — brand bar + six tabs + operator + two slots + mount outlet render; closed table (no runtime tab); owner renders at declared mount; standing indicator appears severity-then-age, names its drill-in, evidence is a query, gone when cleared; alert count is a query over monitoring, truthful zero, drills into P5-S1. **Evidence:** 39 new TS tests — ui-kit 33 (`tests/unit/mountTable.test.ts`, `chrome.test.ts`, `brandVars.test.ts`, `navChrome.test.ts`) + dashboard 6 (`tests/unit/dashboardShell.test.ts`); all reading faked owner stores. `vue-tsc` build + `eslint` clean. State: `docs/slices/shell.yaml` marks the slice `status: done`, `map.html` node updated, `STATUS.md` header + milestone log updated. Every dashboard-mounted feature slice is now unblocked. Out of scope (own slices): the Services/Overview/Fleet/Settings resting content and any feature's truth or journey.
ben closed this issue 2026-07-25 07:21:53 +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.

Blocks
Depends on
Reference
Matou/idss#29
No description provided.