quasar-ui: dashboard-quasar-boot — the web dashboard boots the Quasar layer #242

Closed
opened 2026-07-31 23:38:19 +00:00 by ben · 1 comment
Owner

Parent

Quasar-UI arc (foundation: quasar-ui:kit-quasar-foundation). ADR 0036: the dashboard is a Quasar SPA built to static files, served from the fleet by the control plane; it currently runs the same "Quasar deferred" phasing as the app. Shell spec: #22.

What to build

The dashboard's composition (dashboard/src/bootstrap.ts) installs the Quasar plugin plus the kit's base layer + brand-vars CSS at boot:

  • The build stays a static-file SPA — anything needing a server runtime belongs in the control plane API (ADR 0036 consequence); the existing build/serve path keeps working.
  • The dashboard wears the community's compiled kit (logo + accent, DDR 0007) via the same --q-* → --oc-* CSS the app uses; DEFAULT_BRAND_TOKENS never appears here post-founding (the fleet serves a founded community's kit).
  • All assets bundle into the static build — no CDN fetches (the dashboard must render on a LAN-only private-path fleet).

Acceptance criteria

  • Given the dashboard's existing component/seam tests, When Quasar is installed at boot, Then they pass and the build output remains static files
  • Given a compiled community kit's tokens on :root, When any dashboard surface mounts, Then Quasar components wear the kit's colours (no browser-default chrome, no hex literals)
  • Given a fleet with no internet egress, When the dashboard loads, Then no request leaves the fleet (all assets bundled)

Task manifest

task: quasar-ui:dashboard-quasar-boot
implements_seam: "dashboard bootstrap composes the Quasar layer from @ourcloud/ui-kit; static-file SPA constraint (ADR 0036) holds"
interface: "dashboard/src/bootstrap.ts + entry wiring"
seam: "dashboard component tests; the static build output"
acceptance:
  - given: compiled kit tokens; when: dashboard mounts; then: Quasar surfaces wear the kit, build stays static
depends_on: [quasar-ui:kit-quasar-foundation]
out_of_scope: [tab-content adoption (the three dashboard adoption tickets), control-plane serving changes]
needs_human_decision: []
## Parent Quasar-UI arc (foundation: quasar-ui:kit-quasar-foundation). ADR 0036: the dashboard is a Quasar SPA built to static files, served from the fleet by the control plane; it currently runs the same "Quasar deferred" phasing as the app. Shell spec: #22. ## What to build The dashboard's composition (`dashboard/src/bootstrap.ts`) installs the Quasar plugin plus the kit's base layer + brand-vars CSS at boot: - The build **stays a static-file SPA** — anything needing a server runtime belongs in the control plane API (ADR 0036 consequence); the existing build/serve path keeps working. - The dashboard wears the community's compiled kit (logo + accent, DDR 0007) via the same `--q-*` → `--oc-*` CSS the app uses; `DEFAULT_BRAND_TOKENS` never appears here post-founding (the fleet serves a founded community's kit). - All assets bundle into the static build — no CDN fetches (the dashboard must render on a LAN-only private-path fleet). ## Acceptance criteria - [ ] Given the dashboard's existing component/seam tests, When Quasar is installed at boot, Then they pass and the build output remains static files - [ ] Given a compiled community kit's tokens on `:root`, When any dashboard surface mounts, Then Quasar components wear the kit's colours (no browser-default chrome, no hex literals) - [ ] Given a fleet with no internet egress, When the dashboard loads, Then no request leaves the fleet (all assets bundled) ## Task manifest ```yaml task: quasar-ui:dashboard-quasar-boot implements_seam: "dashboard bootstrap composes the Quasar layer from @ourcloud/ui-kit; static-file SPA constraint (ADR 0036) holds" interface: "dashboard/src/bootstrap.ts + entry wiring" seam: "dashboard component tests; the static build output" acceptance: - given: compiled kit tokens; when: dashboard mounts; then: Quasar surfaces wear the kit, build stays static depends_on: [quasar-ui:kit-quasar-foundation] out_of_scope: [tab-content adoption (the three dashboard adoption tickets), control-plane serving changes] needs_human_decision: [] ```
Author
Owner

Done in 082e1a6 (on origin/main).

The web dashboard now boots the kit Quasar layer:

  • dashboard/src/bootstrap.ts installs the kit runtime on the composed app (installOcKit(app), inside the createApp it already owns — ADR 0108 app-creation reconciliation) and imports the three kit stylesheets as bundle side-effects (@ourcloud/ui-kit/quasar.css + base-layer.css + quasar-brand-vars.css). No DEFAULT_BRAND_TOKENS/bundled tokens.css: the fleet serves a founded community kit onto :root, and --q-*→--oc-* reads it (DDR 0007).
  • Build stays a static-file SPA (ADR 0036): vite build emits index.html + one JS + one CSS chunk; Quasar CSS (.q-btn etc.) and the brand-vars override are bundled in, no CDN / no request leaves the fleet (ADR 0108). Verified the built assets carry no external http(s) fetch (only a Vue error-reference string).
  • vitest.config.ts aliases quasar→quasar/dist/quasar.client.js and inlines it, so the happy-dom boot seam exercises the client build the SPA ships (Quasar resolves to its SSR build under Vitest node conditions, whose install throws in a plain app).

Evidence: new seam dashboard/tests/unit/quasarBoot.test.ts (5 tests, one per AC) — Quasar installed ($q) + the six-tab DN frame still mounts; a kit-installed QBtn renders .q-btn chrome + the palette binds --oc-* with no hex; only-local CSS. All 71 dashboard test files (714 tests) + vue-tsc + eslint + prettier green; vite build produces static output.

Out of scope (unchanged): tab-content adoption (#243–#247), control-plane serving. Next: #241 (app boot + its ADR-0108 amendment).

Done in 082e1a6 (on origin/main). The web dashboard now boots the kit Quasar layer: - `dashboard/src/bootstrap.ts` installs the kit runtime on the composed app (`installOcKit(app)`, inside the `createApp` it already owns — ADR 0108 app-creation reconciliation) and imports the three kit stylesheets as bundle side-effects (`@ourcloud/ui-kit/quasar.css` + `base-layer.css` + `quasar-brand-vars.css`). No `DEFAULT_BRAND_TOKENS`/bundled `tokens.css`: the fleet serves a founded community kit onto `:root`, and `--q-*`→`--oc-*` reads it (DDR 0007). - **Build stays a static-file SPA (ADR 0036):** `vite build` emits `index.html` + one JS + one CSS chunk; Quasar CSS (`.q-btn` etc.) and the brand-vars override are bundled in, **no CDN / no request leaves the fleet** (ADR 0108). Verified the built assets carry no external `http(s)` fetch (only a Vue error-reference string). - `vitest.config.ts` aliases `quasar`→`quasar/dist/quasar.client.js` and inlines it, so the happy-dom boot seam exercises the client build the SPA ships (Quasar resolves to its SSR build under Vitest node conditions, whose `install` throws in a plain app). **Evidence:** new seam `dashboard/tests/unit/quasarBoot.test.ts` (5 tests, one per AC) — Quasar installed (`$q`) + the six-tab DN frame still mounts; a kit-installed `QBtn` renders `.q-btn` chrome + the palette binds `--oc-*` with no hex; only-local CSS. All 71 dashboard test files (714 tests) + vue-tsc + eslint + prettier green; `vite build` produces static output. Out of scope (unchanged): tab-content adoption (#243–#247), control-plane serving. Next: #241 (app boot + its ADR-0108 amendment).
ben closed this issue 2026-08-01 00:51:51 +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#242
No description provided.