quasar-ui: app-quasar-boot — the operator app boots the Quasar layer; ADR 0108's deferral retires #241

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

Parent

Quasar-UI arc (foundation: quasar-ui:kit-quasar-foundation). ADR 0108 deferred the Quasar UI layer at first packaging; this ticket retires that deferral for the operator app. Shell spec: #22.

What to build

The renderer composition (bootstrapApp, #131/#191) installs the Quasar plugin plus the kit's base layer + brand-vars CSS at boot — resolving the app-creation reconciliation ADR 0108 named: bootstrapApp owns createApp; Quasar rides app.use(Quasar, …) inside it (a full Quasar-CLI app-vite migration only if genuinely required — record the resolution as an ADR amending 0108).

  • Production and dev entries are both dressed; the boot seam test (which drives the real composition) extends to prove it.
  • The file:// + node-integration constraints hold: everything bundles (the #233 require-bridge stays green or is extended), the window never loads remote content (ADR 0108 security posture).
  • The launch Ben drives in #183 Phase A keeps working: the unpackaged procedure (docs/operator-app/build-and-run.md) stays valid or is updated in the same commit.

Acceptance criteria

  • Given the built production renderer, When it boots over the real helper, Then Quasar components render wearing DEFAULT_BRAND_TOKENS and the boot seam test passes
  • Given the unpackaged Phase-A launch, When the app opens on Welcome, Then the screen renders kit-styled (no browser-default chrome) with founding's live re-theme path intact
  • Given ADR 0108, When this lands, Then an ADR records the deferral retired and the app-creation reconciliation chosen

Task manifest

task: quasar-ui:app-quasar-boot
implements_seam: "bootstrapApp remains the composition root (#131); Quasar is installed inside it, proven at the boot seam"
interface: "renderer entries (production.ts/dev.ts) + bootstrapApp compose the Quasar layer from @ourcloud/ui-kit"
seam: "the boot seam test over the real helper; #233 renderer-build guard"
acceptance:
  - given: the packaged production entry; when: boot over the real helper; then: Quasar-styled shell wearing the kit, seam test green
depends_on: [quasar-ui:kit-quasar-foundation]
out_of_scope: [screen adoption (the three app adoption tickets), the dashboard, main/preload IPC hardening]
needs_human_decision: []
## Parent Quasar-UI arc (foundation: quasar-ui:kit-quasar-foundation). ADR 0108 deferred the Quasar UI layer at first packaging; this ticket retires that deferral for the operator app. Shell spec: #22. ## What to build The renderer composition (`bootstrapApp`, #131/#191) installs the Quasar plugin plus the kit's base layer + brand-vars CSS at boot — resolving the app-creation reconciliation ADR 0108 named: `bootstrapApp` owns `createApp`; Quasar rides `app.use(Quasar, …)` inside it (a full Quasar-CLI app-vite migration only if genuinely required — record the resolution as an ADR amending 0108). - Production and dev entries are both dressed; the boot seam test (which drives the real composition) extends to prove it. - The `file://` + node-integration constraints hold: everything bundles (the #233 require-bridge stays green or is extended), the window never loads remote content (ADR 0108 security posture). - The launch Ben drives in #183 Phase A keeps working: the unpackaged procedure (`docs/operator-app/build-and-run.md`) stays valid or is updated in the same commit. ## Acceptance criteria - [ ] Given the built production renderer, When it boots over the real helper, Then Quasar components render wearing `DEFAULT_BRAND_TOKENS` and the boot seam test passes - [ ] Given the unpackaged Phase-A launch, When the app opens on Welcome, Then the screen renders kit-styled (no browser-default chrome) with founding's live re-theme path intact - [ ] Given ADR 0108, When this lands, Then an ADR records the deferral retired and the app-creation reconciliation chosen ## Task manifest ```yaml task: quasar-ui:app-quasar-boot implements_seam: "bootstrapApp remains the composition root (#131); Quasar is installed inside it, proven at the boot seam" interface: "renderer entries (production.ts/dev.ts) + bootstrapApp compose the Quasar layer from @ourcloud/ui-kit" seam: "the boot seam test over the real helper; #233 renderer-build guard" acceptance: - given: the packaged production entry; when: boot over the real helper; then: Quasar-styled shell wearing the kit, seam test green depends_on: [quasar-ui:kit-quasar-foundation] out_of_scope: [screen adoption (the three app adoption tickets), the dashboard, main/preload IPC hardening] needs_human_decision: [] ```
Author
Owner

Done in 57fdc1c (on origin/main). bootstrapApp now installs the shared kit's Quasar layer on the app it already creates (installOcKit(app) from @ourcloud/ui-kit/quasar) and imports the three kit stylesheets as local side-effect bundle imports — retiring ADR 0108's Quasar deferral for the operator app WITHOUT a Quasar-CLI app-vite migration (recorded in new ADR 0120, amending 0108).

Acceptance:

  • AC1 (built production renderer boots over the real helper, Quasar renders wearing DEFAULT_BRAND_TOKENS, boot seam green): boot.test.ts now asserts $q on the app booted over the REAL production helper; quasarBoot.test.ts mounts a .q-btn that renders wearing the default kit (--oc-accent #2f7d4f). The #233 renderer-build guard stays green (Quasar is browser-only — no node builtin reaches the file:// loader).
  • AC2 (unpackaged Phase-A launch opens on a kit-styled Welcome, live re-theme intact): the packaged entry stamps DEFAULT_BRAND_TOKENS onto :root before first paint (#237) and the boot loads the kit base layer (resets UA control chrome); the app bundles the default kit because it runs pre-founding, unlike the dashboard. docs/operator-app/build-and-run.md is unchanged — pnpm build:electron now bundles the Quasar layer with no new step.
  • AC3 (ADR records the deferral retired + the reconciliation chosen): docs/adr/0120-operator-app-boots-quasar-through-the-kit.md, with ADR 0108 updated to point at it.

Evidence: verified in nix develop .#go-ci — 48 app test files (415 tests) incl. the boot seam over the real helper + the #233 guard, vue-tsc + eslint + prettier (code) green. Vitest aliases quasar → the client build + inlines it (as #242 did); packagedConfig.test.ts moved to happy-dom (it now transitively pulls the client build, which touches window at import).

Follow-up: the three app screen-adoption tickets.

Done in `57fdc1c` (on `origin/main`). `bootstrapApp` now installs the shared kit's Quasar layer on the app it already creates (`installOcKit(app)` from `@ourcloud/ui-kit/quasar`) and imports the three kit stylesheets as local side-effect bundle imports — retiring ADR 0108's Quasar deferral for the operator app WITHOUT a Quasar-CLI app-vite migration (recorded in new **ADR 0120**, amending 0108). **Acceptance:** - AC1 (built production renderer boots over the real helper, Quasar renders wearing DEFAULT_BRAND_TOKENS, boot seam green): `boot.test.ts` now asserts `$q` on the app booted over the REAL production helper; `quasarBoot.test.ts` mounts a `.q-btn` that renders wearing the default kit (`--oc-accent` `#2f7d4f`). The #233 renderer-build guard stays green (Quasar is browser-only — no node builtin reaches the `file://` loader). - AC2 (unpackaged Phase-A launch opens on a kit-styled Welcome, live re-theme intact): the packaged entry stamps `DEFAULT_BRAND_TOKENS` onto `:root` before first paint (#237) and the boot loads the kit base layer (resets UA control chrome); the app bundles the default kit because it runs pre-founding, unlike the dashboard. `docs/operator-app/build-and-run.md` is unchanged — `pnpm build:electron` now bundles the Quasar layer with no new step. - AC3 (ADR records the deferral retired + the reconciliation chosen): `docs/adr/0120-operator-app-boots-quasar-through-the-kit.md`, with ADR 0108 updated to point at it. **Evidence:** verified in `nix develop .#go-ci` — 48 app test files (415 tests) incl. the boot seam over the real helper + the #233 guard, vue-tsc + eslint + prettier (code) green. Vitest aliases `quasar` → the client build + inlines it (as #242 did); `packagedConfig.test.ts` moved to happy-dom (it now transitively pulls the client build, which touches `window` at import). Follow-up: the three app screen-adoption tickets.
ben closed this issue 2026-08-01 02:36:27 +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#241
No description provided.