Style sweep: control panel — callouts/buttons onto the kit, fonts tokenized (#1890) #1900

Closed
matou-build-agent wants to merge 1 commit from agent/issue-1890 into main

closes #1890

What

Style sweep of the control panel (dashboard/src) — consolidate the callouts and
buttons onto the shared kit, and route every font through the kit's type tokens. A
refactor with no intended visual change: the before/after screenshots are
pixel-identical (that is the point — consistency without regression).

The drift removed

  • ~22 scoped .oc-callout { … } re-declarations that shadowed the kit's own
    .oc-callout.
  • ~26 hand-rolled .oc-btn / .oc-btn1 / .oc-btn2 / .oc-btns copies across
    the backups / provisioning / rescue / mail / members / device-add screens.
  • 14 ad-hoc monospace font-family stacks.

(The audit's ~484 "hex colours" were issue-reference #NNN tokens in comments/prose,
not colours — there were zero hex colours in <style> blocks, so that clause was
already met.)

The kit gains (once, in packages/ui-kit/src/baseLayer.css)

  • Callout layout postures .oc-callout--framed / --stack / --compact /
    --quiet — geometry/emphasis only; the tier colour stays with the
    ok/warn/bad/muted postures the kit already owns.
  • .oc-action — the compact dashboard action button, distinct from OcButton's
    large uppercase wireframe voice: --primary / --ok / --soft / --plain /
    --danger / --danger-fill / --big / --sm.
  • .oc-actions (+ --end) — the wrapping button row.

Every affected screen drops its local copy and wears the kit class/modifier. The two
.oc-card shadows are renamed off the kit class — members/MemberDetailScreen
→ .oc-member-card, provisioning/SelectRoleServicesScreen → .oc-service-option
(the coupled provisionSetup / provisionDependencyGate tests re-pinned). Every
font-family is now var(--oc-font-mono) or inherit.

Acceptance

  • ✅ no .oc-callout { / .oc-btn / .oc-btns definitions under dashboard/src;
    the button/callout variants live in the kit.
  • ✅ every font-family under dashboard/src is var(--oc-font-*) or inherit.
  • ✅ no hex colours in dashboard/src <style> blocks.
  • ✅ 2008 dashboard + 234 ui-kit unit tests green; 36 pnpm e2e:harness
    specs green; vue-tsc + eslint clean.
  • ✅ before/after harness screenshots per tab (attached; identical, as expected).

Deferred (a two-way-door judgment under ADR 0174)

Promoting the bespoke single-use cards .oc-scard / .oc-recovery-card and the
duplicated .oc-service-card(s) into the kit is left as a follow-up: they use distinct
names (they do not shadow a kit class) and lean on scoped-style :deep(), so moving
them into the plain-CSS baseLayer is a separate, larger change that would risk the
"unit + e2e:harness green" bar for no grep-gate benefit.

Screenshots

before-* are on origin/main, after-* are this branch, same scenario/brand.

🤖 Generated with Claude Code

closes #1890 ## What Style sweep of the control panel (`dashboard/src`) — consolidate the callouts and buttons onto the shared kit, and route every font through the kit's type tokens. A refactor with **no intended visual change**: the before/after screenshots are pixel-identical (that is the point — consistency without regression). ## The drift removed - **~22** scoped `.oc-callout { … }` re-declarations that shadowed the kit's own `.oc-callout`. - **~26** hand-rolled `.oc-btn` / `.oc-btn1` / `.oc-btn2` / `.oc-btns` copies across the backups / provisioning / rescue / mail / members / device-add screens. - **14** ad-hoc monospace `font-family` stacks. (The audit's ~484 "hex colours" were issue-reference `#NNN` tokens in comments/prose, not colours — there were **zero** hex colours in `<style>` blocks, so that clause was already met.) ## The kit gains (once, in `packages/ui-kit/src/baseLayer.css`) - Callout **layout** postures `.oc-callout--framed` / `--stack` / `--compact` / `--quiet` — geometry/emphasis only; the tier colour stays with the `ok`/`warn`/`bad`/`muted` postures the kit already owns. - `.oc-action` — the **compact dashboard action button**, distinct from `OcButton`'s large uppercase wireframe voice: `--primary` / `--ok` / `--soft` / `--plain` / `--danger` / `--danger-fill` / `--big` / `--sm`. - `.oc-actions` (+ `--end`) — the wrapping button row. Every affected screen drops its local copy and wears the kit class/modifier. The two `.oc-card` **shadows** are renamed off the kit class — `members/MemberDetailScreen` → `.oc-member-card`, `provisioning/SelectRoleServicesScreen` → `.oc-service-option` (the coupled `provisionSetup` / `provisionDependencyGate` tests re-pinned). Every `font-family` is now `var(--oc-font-mono)` or `inherit`. ## Acceptance - ✅ no `.oc-callout {` / `.oc-btn` / `.oc-btns` definitions under `dashboard/src`; the button/callout variants live in the kit. - ✅ every `font-family` under `dashboard/src` is `var(--oc-font-*)` or `inherit`. - ✅ no hex colours in `dashboard/src` `<style>` blocks. - ✅ **2008** dashboard + **234** ui-kit unit tests green; **36** `pnpm e2e:harness` specs green; `vue-tsc` + `eslint` clean. - ✅ before/after harness screenshots per tab (attached; identical, as expected). ## Deferred (a two-way-door judgment under ADR 0174) Promoting the bespoke single-use cards `.oc-scard` / `.oc-recovery-card` and the duplicated `.oc-service-card(s)` into the kit is left as a follow-up: they use distinct names (they do **not** shadow a kit class) and lean on scoped-style `:deep()`, so moving them into the plain-CSS `baseLayer` is a separate, larger change that would risk the "unit + e2e:harness green" bar for no grep-gate benefit. ## Screenshots `before-*` are on `origin/main`, `after-*` are this branch, same scenario/brand. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sandcastle: #1890 — control-panel style sweep: callouts/buttons consolidated onto the kit, fonts tokenized
All checks were successful
ci / seam (pull_request) Successful in 13m53s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
4abc1374a8
The drift (per the ticket audit): ~22 scoped `.oc-callout { … }` re-declarations,
~26 hand-rolled `.oc-btn`/`.oc-btn1`/`.oc-btn2`/`.oc-btns` copies, and 14 ad-hoc
monospace font stacks across ~30 dashboard screens. No hex colours were present in
`<style>` blocks (the ticket's ~484 count was issue-reference `#NNN` tokens in
comments/prose, not colours) — that clause was already met.

Kit (packages/ui-kit/src/baseLayer.css), added ONCE:
- callout layout postures `.oc-callout--framed` / `--stack` / `--compact` / `--quiet`
  (geometry/emphasis only — the tier colour stays with the ok/warn/bad/muted
  postures the kit already owns);
- `.oc-action` — the compact dashboard action button (distinct from OcButton's large
  uppercase wireframe voice), with `--primary`/`--ok`/`--soft`/`--plain`/`--danger`/
  `--danger-fill`/`--big`/`--sm`;
- `.oc-actions` (+ `--end`) — the wrapping button row.

Screens: every backups/provisioning/rescue/mail/members/device-add screen drops its
local `.oc-callout`/`.oc-btn*`/`.oc-btns` copy and wears the kit class/modifier; the
two `.oc-card` shadows are renamed off the kit class — members/MemberDetailScreen →
`.oc-member-card`, provisioning/SelectRoleServicesScreen → `.oc-service-option` (the
coupled provisionSetup/provisionDependencyGate tests re-pinned); every `font-family`
is now `var(--oc-font-mono)` or `inherit`.

Grep gates: no `.oc-callout {`/`.oc-btn`/`.oc-btns` definitions under dashboard/src;
no hex in `<style>` blocks. Tests: 2008 dashboard + 234 ui-kit unit green, 36 harness
e2e green, vue-tsc + eslint clean. backupsReplicationEntry harness selector updated
`.oc-btns`→`.oc-actions`.

Deferred (two-way-door, ADR 0174): promoting the bespoke single-use `.oc-scard` /
`.oc-recovery-card` and the duplicated `.oc-service-card(s)` into the kit — they use
distinct names (don't shadow a kit class) and lean on scoped `:deep()`, a separate
larger change.

Lands by PR (landing-pr).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Author
Member

📷 Evidence for #1890 — taken after the fix unless the name says otherwise.

before-backups-backup-gap.png
before-backups-backup-gap.png

after-backups-backup-gap.png
after-backups-backup-gap.png

after-services-steady.png
after-services-steady.png

after-members-steady.png
after-members-steady.png

after-settings-steady.png
after-settings-steady.png

after-overview-steady.png
after-overview-steady.png

:camera: **Evidence for #1890** — taken after the fix unless the name says otherwise. **before-backups-backup-gap.png** ![before-backups-backup-gap.png](https://git.matou.nz/attachments/2ebf7147-d983-4d53-8ace-34d505b2112a) **after-backups-backup-gap.png** ![after-backups-backup-gap.png](https://git.matou.nz/attachments/2c2654d5-d907-41fe-87a9-6a484ca16113) **after-services-steady.png** ![after-services-steady.png](https://git.matou.nz/attachments/14112d6a-38a0-4105-8f4c-7c744ebd9260) **after-members-steady.png** ![after-members-steady.png](https://git.matou.nz/attachments/f1e25981-14a5-4db5-a682-0db76e45833c) **after-settings-steady.png** ![after-settings-steady.png](https://git.matou.nz/attachments/a5dbedc4-3437-4f1d-af96-823646472455) **after-overview-steady.png** ![after-overview-steady.png](https://git.matou.nz/attachments/0923774e-6434-4caf-b03a-123039890bb7)
Owner

Reviewed for merge at Ben's request (2026-11-16 PR sweep) — not merged; left open. ~510 commits behind; the style sweep conflicts in 23 dashboard screens that have been edited since. A sweep this wide is cheaper to re-run from current main than to hand-resolve.

Reviewed for merge at Ben's request (2026-11-16 PR sweep) — **not merged; left open.** ~510 commits behind; the style sweep conflicts in 23 dashboard screens that have been edited since. A sweep this wide is cheaper to re-run from current main than to hand-resolve.
Owner

Closing unmerged: a 50-file sweep 527 commits behind conflicts across about 23 screens, and re-running it from current main is cheaper and safer than rebasing it. #1890 stays open (ready-for-agent); current counts are on the ticket.

Closing unmerged: a 50-file sweep 527 commits behind conflicts across about 23 screens, and re-running it from current main is cheaper and safer than rebasing it. #1890 stays open (`ready-for-agent`); current counts are on the ticket.
ben closed this pull request 2026-11-17 13:15:03 +00:00
All checks were successful
ci / seam (pull_request) Successful in 13m53s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No reviewers
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.

Dependencies

No dependencies set.

Reference
Matou/idss!1900
No description provided.