Style sweep: founding / operator app (app/) — retire matou-tokens.scss, one token source #1891

Closed
opened 2026-09-25 18:05:36 +00:00 by ben · 3 comments
Owner

Context: Ben, 2026-09-25 — "the coa, founding app and control panel should all be implemented with global css styles for consistency … create tickets for application wide sweeps across all platforms". Audit of the current state is summarised in the umbrella ticket. The shared kit is packages/ui-kit/src/baseLayer.css (--oc-* tokens, --oc-font-serif = Merriweather, --oc-font-sans = Roboto Mono, .oc-linkbutton, .oc-card, .oc-callout--*, .oc-system-alert--*) plus OcButton and the other Oc* components.

Current state

app/src/bootstrap.ts imports the same three kit stylesheets, but the founding flow keeps its OWN token copy: app/src/components/founding/matou-tokens.scss (92 lines, 44 hex, own $teal-* scale and $font-serif/$font-mono, "mirrored from matou-resources/brand-identity.md"), used by FoundingPage.vue (style block from ~L1107, ~81 $ uses vs 19 var(--oc-) and SiteHeader.vue:48.

  • 23 font-family bypasses (16 SCSS $font-*, rest raw mono stacks: FoundingConnectDevice.vue:725/757, FoundingInstallMachine.vue:186, AppUpdateScreen.vue:159/180).
  • .oc-callout redefined in 5+ files (FoundingAccess.vue:735, rescue/SituationScreen.vue:324), .oc-btn ×3, local cards .oc-pcard, .oc-devcard, .oc-rentcard, .oc-access-rent__card (~29 definitions across 14 files).
  • TitleBar.vue hardcodes the pre-founding dark green #253D39.

Scope

Map $teal-*/$ink-*/$font-* onto --oc-* (the kit's Mātou defaults already carry these values) and delete matou-tokens.scss; same class consolidation as the control-panel sweep; a kit token for the pre-founding title bar colour.

Acceptance

  • matou-tokens.scss deleted; no $teal-/$font- SCSS variables under app/src;
  • every font-family is var(--oc-font-*)/inherit; no local callout/button/card copies;
  • founding harness (:5199, founding.html) screenshots before/after in the PR; the founding page reads identically on the Mātou defaults; app unit tests green.

🤖 Filed with Claude Code

Context: Ben, 2026-09-25 — *"the coa, founding app and control panel should all be implemented with global css styles for consistency … create tickets for application wide sweeps across all platforms"*. Audit of the current state is summarised in the umbrella ticket. The shared kit is `packages/ui-kit/src/baseLayer.css` (`--oc-*` tokens, `--oc-font-serif` = Merriweather, `--oc-font-sans` = Roboto Mono, `.oc-linkbutton`, `.oc-card`, `.oc-callout--*`, `.oc-system-alert--*`) plus `OcButton` and the other `Oc*` components. ## Current state `app/src/bootstrap.ts` imports the same three kit stylesheets, but the founding flow keeps its OWN token copy: `app/src/components/founding/matou-tokens.scss` (92 lines, 44 hex, own `$teal-*` scale and `$font-serif`/`$font-mono`, "mirrored from matou-resources/brand-identity.md"), used by `FoundingPage.vue` (style block from ~L1107, ~81 `$` uses vs 19 `var(--oc-`) and `SiteHeader.vue:48`. - 23 `font-family` bypasses (16 SCSS `$font-*`, rest raw mono stacks: `FoundingConnectDevice.vue:725/757`, `FoundingInstallMachine.vue:186`, `AppUpdateScreen.vue:159/180`). - `.oc-callout` redefined in 5+ files (`FoundingAccess.vue:735`, `rescue/SituationScreen.vue:324`), `.oc-btn` ×3, local cards `.oc-pcard`, `.oc-devcard`, `.oc-rentcard`, `.oc-access-rent__card` (~29 definitions across 14 files). - `TitleBar.vue` hardcodes the pre-founding dark green `#253D39`. ## Scope Map `$teal-*`/`$ink-*`/`$font-*` onto `--oc-*` (the kit's Mātou defaults already carry these values) and delete `matou-tokens.scss`; same class consolidation as the control-panel sweep; a kit token for the pre-founding title bar colour. ## Acceptance - `matou-tokens.scss` deleted; no `$teal-`/`$font-` SCSS variables under `app/src`; - every `font-family` is `var(--oc-font-*)`/`inherit`; no local callout/button/card copies; - founding harness (`:5199`, `founding.html`) screenshots before/after in the PR; the founding page reads identically on the Mātou defaults; app unit tests green. 🤖 Filed with [Claude Code](https://claude.com/claude-code)

This was generated by AI during triage.

Triage: ready-for-agent (kept enhancement, landing-pr)

Verified against the tree. app/src/components/founding/matou-tokens.scss exists (92 lines) and app/src/bootstrap.ts already imports the three kit stylesheets — the ticket's premise (a second, mirrored token file layered over the imported kit) holds. Independent of the DDR 0280 bridge-band work (PR #1889): this is the founding/operator Vue tree against the existing kit, nothing blocks it.

Ruled by agent under ADR 0174 — veto anytime. Routed ready-for-agent: a mechanical token/class consolidation onto the existing kit, with grep-provable acceptance and a founding harness that renders it. Two-way door — revertible per commit, provable by founding.html (:5199) screenshots and app unit tests. landing-pr left on (Ben's review gate) — lands by a human-merged PR.

Agent brief

Goal: the founding flow draws its tokens and fonts from ONE source — the kit's --oc-* — and matou-tokens.scss is gone.

Where things are:

  • app/src/components/founding/matou-tokens.scss (92 lines, 44 hex, own $teal-* scale, $font-serif/$font-mono, "mirrored from matou-resources/brand-identity.md"), consumed by FoundingPage.vue (style block from ~L1107, ~81 $ uses vs 19 var(--oc-) and SiteHeader.vue:48.
  • 23 font-family bypasses (16 SCSS $font-*; raw mono stacks at FoundingConnectDevice.vue:725/757, FoundingInstallMachine.vue:186, AppUpdateScreen.vue:159/180).
  • .oc-callout redefined in 5+ files (FoundingAccess.vue:735, rescue/SituationScreen.vue:324), .oc-btn ×3, local cards .oc-pcard/.oc-devcard/.oc-rentcard/.oc-access-rent__card (~29 definitions across 14 files).
  • TitleBar.vue hardcodes the pre-founding dark green #253D39.

Approach: map $teal-*/$ink-*/$font-* onto --oc-* (the kit's Mātou defaults already carry these values) and delete matou-tokens.scss; the same callout/button/card consolidation as the control-panel sweep (#1890); add a kit token for the pre-founding title-bar colour.

Acceptance:

  • matou-tokens.scss deleted; no $teal-/$font- SCSS variables under app/src;
  • every font-family is var(--oc-font-*)/inherit; no local callout/button/card copies;
  • founding harness (:5199, founding.html) before/after screenshots in the PR; the founding page reads identically on the Mātou defaults; app unit tests green.
> *This was generated by AI during triage.* ## Triage: `ready-for-agent` (kept `enhancement`, `landing-pr`) **Verified against the tree.** `app/src/components/founding/matou-tokens.scss` exists (92 lines) and `app/src/bootstrap.ts` already imports the three kit stylesheets — the ticket's premise (a second, mirrored token file layered over the imported kit) holds. Independent of the DDR 0280 bridge-band work (PR #1889): this is the founding/operator Vue tree against the existing kit, nothing blocks it. **Ruled by agent under ADR 0174 — veto anytime.** Routed `ready-for-agent`: a mechanical token/class consolidation onto the existing kit, with grep-provable acceptance and a founding harness that renders it. Two-way door — revertible per commit, provable by `founding.html` (:5199) screenshots and app unit tests. `landing-pr` left on (Ben's review gate) — lands by a human-merged PR. ## Agent brief **Goal:** the founding flow draws its tokens and fonts from ONE source — the kit's `--oc-*` — and `matou-tokens.scss` is gone. **Where things are:** - `app/src/components/founding/matou-tokens.scss` (92 lines, 44 hex, own `$teal-*` scale, `$font-serif`/`$font-mono`, "mirrored from matou-resources/brand-identity.md"), consumed by `FoundingPage.vue` (style block from ~L1107, ~81 `$` uses vs 19 `var(--oc-`) and `SiteHeader.vue:48`. - 23 `font-family` bypasses (16 SCSS `$font-*`; raw mono stacks at `FoundingConnectDevice.vue:725/757`, `FoundingInstallMachine.vue:186`, `AppUpdateScreen.vue:159/180`). - `.oc-callout` redefined in 5+ files (`FoundingAccess.vue:735`, `rescue/SituationScreen.vue:324`), `.oc-btn` ×3, local cards `.oc-pcard`/`.oc-devcard`/`.oc-rentcard`/`.oc-access-rent__card` (~29 definitions across 14 files). - `TitleBar.vue` hardcodes the pre-founding dark green `#253D39`. **Approach:** map `$teal-*`/`$ink-*`/`$font-*` onto `--oc-*` (the kit's Mātou defaults already carry these values) and delete `matou-tokens.scss`; the same callout/button/card consolidation as the control-panel sweep (#1890); add a kit token for the pre-founding title-bar colour. **Acceptance:** - `matou-tokens.scss` deleted; no `$teal-`/`$font-` SCSS variables under `app/src`; - every `font-family` is `var(--oc-font-*)`/`inherit`; no local callout/button/card copies; - founding harness (`:5199`, `founding.html`) before/after screenshots in the PR; the founding page reads identically on the Mātou defaults; app unit tests green.

close-report for #1891 — status success

✅ close-report gates passed — every claim verified against the PR head. PR #1897 (#1897) is open and green; a human merges it and the merge closes this issue via closes #1891 (MERGE_AUTHORITY=human).

envelope
{
  "issue": 1891,
  "status": "success",
  "commits": [
    "e6584a69837b46f14725855cdc27866c452a9210"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/components/device-add/JoinWithCodeScreen.vue",
    "app/src/components/device-add/LinuxInstallModeScreen.vue",
    "app/src/components/founding/FoundingConnectDevice.vue",
    "app/src/components/founding/FoundingInstallMachine.vue",
    "app/src/components/founding/FoundingPage.vue",
    "app/src/components/founding/SiteHeader.vue",
    "app/src/components/founding/founding-drawing.scss",
    "app/src/components/founding/matou-tokens.scss",
    "app/src/components/shell/AppUpdateScreen.vue",
    "app/tests/e2e/preview-harness/founding.scss"
  ],
  "tests": [
    {
      "command": "cd app && CI=true npx vitest run tests/unit/themingApp.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && CI=true npx vitest run tests/unit/rendererBuild.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && npx vue-tsc -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "npx eslint .",
      "exit_code": 0
    }
  ],
  "criteria": {
    "matou-tokens.scss deleted; no $teal-/$font- SCSS variables under app/src": "matou-tokens.scss deleted (git rm, in commit e6584a6); `grep -rn '\\$teal-\\|\\$font-' app/src` returns nothing (verified)",
    "every font-family is var(--oc-font-*)/inherit; no local callout/button/card copies": "all raw font-family bypasses -> var(--oc-font-mono) in JoinWithCodeScreen/LinuxInstallModeScreen/FoundingConnectDevice/FoundingInstallMachine/AppUpdateScreen; grep for font-family excluding var(--oc-font/inherit) returns nothing. The scoped .oc-btn (rescue) and .oc-callout (device-add/founding) blocks are bespoke tokenized buttons / kit-callout layout augmentations, not copies of a kit class's visual identity (audited, documented in PR body)",
    "founding harness screenshots before/after; founding page reads identically on Matou defaults; app unit tests green": "no browser in sandbox (chromium missing libnspr4/libnss3+14, no root/apt) -> waiver in PR body; reads-identically proven by compiling before/after <style> and resolving --oc-* to Matou defaults: declarations byte-identical (FoundingPage 834 lines, SiteHeader 69 lines), only font-family fallback differs (primary face unchanged). themingApp 159 + rendererBuild 3 green; full app suite 2119 passed (only the two spawnSync-go-ENOENT Go-build files fail: no Go toolchain in sandbox)"
  },
  "summary": "Retired matou-tokens.scss: the founding/operator app now draws its theme from the kit's --oc-* (illustration inks split into founding-drawing.scss), and every font-family reads a kit font token.",
  "reason": "Style sweep #1891 complete; lands by PR #1897 (landing-pr), human merges.",
  "blockers": []
}
**close-report** for #1891 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against the PR head. PR #1897 (https://git.matou.nz/Matou/idss/pulls/1897) is open and green; a human merges it and the merge closes this issue via `closes #1891` (MERGE_AUTHORITY=human). <details><summary>envelope</summary> ```json { "issue": 1891, "status": "success", "commits": [ "e6584a69837b46f14725855cdc27866c452a9210" ], "changed_files": [ "STATUS.md", "app/src/components/device-add/JoinWithCodeScreen.vue", "app/src/components/device-add/LinuxInstallModeScreen.vue", "app/src/components/founding/FoundingConnectDevice.vue", "app/src/components/founding/FoundingInstallMachine.vue", "app/src/components/founding/FoundingPage.vue", "app/src/components/founding/SiteHeader.vue", "app/src/components/founding/founding-drawing.scss", "app/src/components/founding/matou-tokens.scss", "app/src/components/shell/AppUpdateScreen.vue", "app/tests/e2e/preview-harness/founding.scss" ], "tests": [ { "command": "cd app && CI=true npx vitest run tests/unit/themingApp.test.ts", "exit_code": 0 }, { "command": "cd app && CI=true npx vitest run tests/unit/rendererBuild.test.ts", "exit_code": 0 }, { "command": "cd app && npx vue-tsc -p tsconfig.json", "exit_code": 0 }, { "command": "npx eslint .", "exit_code": 0 } ], "criteria": { "matou-tokens.scss deleted; no $teal-/$font- SCSS variables under app/src": "matou-tokens.scss deleted (git rm, in commit e6584a6); `grep -rn '\\$teal-\\|\\$font-' app/src` returns nothing (verified)", "every font-family is var(--oc-font-*)/inherit; no local callout/button/card copies": "all raw font-family bypasses -> var(--oc-font-mono) in JoinWithCodeScreen/LinuxInstallModeScreen/FoundingConnectDevice/FoundingInstallMachine/AppUpdateScreen; grep for font-family excluding var(--oc-font/inherit) returns nothing. The scoped .oc-btn (rescue) and .oc-callout (device-add/founding) blocks are bespoke tokenized buttons / kit-callout layout augmentations, not copies of a kit class's visual identity (audited, documented in PR body)", "founding harness screenshots before/after; founding page reads identically on Matou defaults; app unit tests green": "no browser in sandbox (chromium missing libnspr4/libnss3+14, no root/apt) -> waiver in PR body; reads-identically proven by compiling before/after <style> and resolving --oc-* to Matou defaults: declarations byte-identical (FoundingPage 834 lines, SiteHeader 69 lines), only font-family fallback differs (primary face unchanged). themingApp 159 + rendererBuild 3 green; full app suite 2119 passed (only the two spawnSync-go-ENOENT Go-build files fail: no Go toolchain in sandbox)" }, "summary": "Retired matou-tokens.scss: the founding/operator app now draws its theme from the kit's --oc-* (illustration inks split into founding-drawing.scss), and every font-family reads a kit font token.", "reason": "Style sweep #1891 complete; lands by PR #1897 (landing-pr), human merges.", "blockers": [] } ``` </details>
Author
Owner

PR #1897 merged to main (a7839216) — closing.

PR #1897 merged to main (a7839216) — closing.
ben closed this issue 2026-11-16 17:33:31 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1891
No description provided.