Control-panel style sweep onto the shared kit (#1890) #2195

Open
matou-build-agent wants to merge 2 commits from agent/issue-1890 into main

closes #1890

What

Style sweep of the control panel (dashboard/src): every callout, button and
font now draws from the shared kit (packages/ui-kit/src/baseLayer.css) — no
local copies. This is the fresh redo Ben asked for after PR #1900 was closed as
too stale to rebase.

The drift removed (all local re-definitions layered on top of the already-
imported kit):

  • 22 scoped .oc-callout { … } overrides — each re-stating the kit callout
    with its own framed border / compact type / receded look / column stack.
  • 26 hand-rolled .oc-btns / .oc-btn / .oc-btn1 / .oc-btn2
    definitions, with gaps that had drifted 8/10/12px and two different danger
    treatments.
  • 15 font-family declarations bypassing --oc-font-* (ad-hoc monospace
    stacks).
  • 2 local .oc-card shadows of the kit class.

How

The kit now owns the vocabulary once:

  • Callout layout postures --framed / --compact / --note / --quiet /
    --stack / --block, placed before the colour postures so a --warn/
    --bad border-colour still wins over --framed's four-sided border.
  • The compact action button .oc-action (+ --primary / --go / --danger /
    --danger-fill / --plain / --big / --sm / :disabled) and the
    .oc-actions row (+ --end / --wrap), replacing the hand-rolled button
    classes.

Every tab screen now composes these classes; the two .oc-card shadows were
de-shadowed to .oc-member-card / .oc-service-option (their unit tests
re-pointed to the new names). All monospace fonts route through
var(--oc-font-mono).

Acceptance (grep-provable, all 0)

  • no .oc-callout {, .oc-btn/.oc-btns, .oc-card { definitions under
    dashboard/src;
  • every font-family under dashboard/src is var(--oc-font-*) or inherit;
  • no hex colours in dashboard/src <style> blocks.

Checks

  • dashboard: 2343 unit tests green; vue-tsc clean; eslint . clean.
  • ui-kit: 247 tests green; vue-tsc clean.
  • 49 files changed, net −296 lines.

Second commit — a pre-existing pre-push-gate blocker (not this slice)

The shared pre-push gate runs eslint . over the whole tree when a PR touches
.ts/.vue. It red on a pre-existing violation introduced by main's tip
3f1aabe8 (the hand-merged PR #1905), in a file outside this slice:
dashboard/src/components/monitoring/FleetServicesStatusScreen.vue:138 shipped
a bare user-facing literal drill in (ADR 0232 oc-i18n/no-bare-literal) — it
blocks every .vue/.ts-touching PR. The fix is one line and zero-risk: the
key panel.operations.monitoring.fleetStatus.drillIn already exists in all five
locales and is already rendered through t(…) by the two sibling drill-in
buttons in the same file; line 138 was simply left bare. No catalogue change, so
i18n key-parity is untouched. Called out here so the human merging sees it
rather than finding an out-of-slice file in the diff unexplained.

A no-visual-regression consolidation (the kit postures reproduce each screen's
prior look, harmonising only the drifted gaps/sizes).

Screenshots: none — the Sandcastle container cannot launch a browser, so the
preview-harness (pnpm harness, :5198) before/after shots and pnpm e2e:harness
could not be run here: chromium's system libs (libnspr4/libnss3/…) need root
to apt-install, and the nixpkgs libs require GLIBC_2.38 over the container's 2.36
(the #380 constraint). That browser tier is the host/CI's to run; the human
merging this PR gets it from CI. The change is grep- and unit-test-provable,
which all pass above.

🤖 Generated with Claude Code

closes #1890 ## What Style sweep of the control panel (`dashboard/src`): every callout, button and font now draws from the shared kit (`packages/ui-kit/src/baseLayer.css`) — no local copies. This is the fresh redo Ben asked for after PR #1900 was closed as too stale to rebase. The drift removed (all local re-definitions layered on top of the already- imported kit): - **22** scoped `.oc-callout { … }` overrides — each re-stating the kit callout with its own framed border / compact type / receded look / column stack. - **26** hand-rolled `.oc-btns` / `.oc-btn` / `.oc-btn1` / `.oc-btn2` definitions, with gaps that had drifted 8/10/12px and two different danger treatments. - **15** `font-family` declarations bypassing `--oc-font-*` (ad-hoc monospace stacks). - **2** local `.oc-card` shadows of the kit class. ## How The kit now owns the vocabulary **once**: - Callout **layout** postures `--framed` / `--compact` / `--note` / `--quiet` / `--stack` / `--block`, placed *before* the colour postures so a `--warn`/ `--bad` border-colour still wins over `--framed`'s four-sided border. - The compact action button `.oc-action` (+ `--primary` / `--go` / `--danger` / `--danger-fill` / `--plain` / `--big` / `--sm` / `:disabled`) and the `.oc-actions` row (+ `--end` / `--wrap`), replacing the hand-rolled button classes. Every tab screen now composes these classes; the two `.oc-card` shadows were de-shadowed to `.oc-member-card` / `.oc-service-option` (their unit tests re-pointed to the new names). All monospace fonts route through `var(--oc-font-mono)`. ## Acceptance (grep-provable, all 0) - no `.oc-callout {`, `.oc-btn`/`.oc-btns`, `.oc-card {` definitions under `dashboard/src`; - every `font-family` under `dashboard/src` is `var(--oc-font-*)` or `inherit`; - no hex colours in `dashboard/src` `<style>` blocks. ## Checks - dashboard: **2343** unit tests green; `vue-tsc` clean; `eslint .` clean. - ui-kit: **247** tests green; `vue-tsc` clean. - 49 files changed, net −296 lines. ## Second commit — a pre-existing pre-push-gate blocker (not this slice) The shared pre-push gate runs `eslint .` over the whole tree when a PR touches `.ts`/`.vue`. It red on a **pre-existing** violation introduced by main's tip `3f1aabe8` (the hand-merged PR #1905), in a file outside this slice: `dashboard/src/components/monitoring/FleetServicesStatusScreen.vue:138` shipped a bare user-facing literal `drill in` (ADR 0232 `oc-i18n/no-bare-literal`) — it blocks *every* `.vue`/`.ts`-touching PR. The fix is one line and zero-risk: the key `panel.operations.monitoring.fleetStatus.drillIn` already exists in all five locales and is already rendered through `t(…)` by the two sibling drill-in buttons in the same file; line 138 was simply left bare. No catalogue change, so i18n key-parity is untouched. Called out here so the human merging sees it rather than finding an out-of-slice file in the diff unexplained. A no-visual-regression consolidation (the kit postures reproduce each screen's prior look, harmonising only the drifted gaps/sizes). **Screenshots:** none — the Sandcastle container cannot launch a browser, so the preview-harness (`pnpm harness`, :5198) before/after shots and `pnpm e2e:harness` could not be run here: chromium's system libs (`libnspr4`/`libnss3`/…) need root to apt-install, and the nixpkgs libs require GLIBC_2.38 over the container's 2.36 (the #380 constraint). That browser tier is the host/CI's to run; the human merging this PR gets it from CI. The change is grep- and unit-test-provable, which all pass above. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Consolidate the control panel (dashboard/src) onto the kit's vocabulary,
removing the local re-definitions that had drifted on top of the already-
imported kit.

Kit (packages/ui-kit/src/baseLayer.css) now owns, once:
- callout LAYOUT postures --framed/--compact/--note/--quiet/--stack/--block,
  placed BEFORE the colour postures so a --warn/--bad border-colour still wins
  over --framed's four-sided border;
- the compact action button .oc-action (+ --primary/--go/--danger/
  --danger-fill/--plain/--big/--sm/:disabled) and the .oc-actions row
  (+ --end/--wrap), replacing the hand-rolled .oc-btns/.oc-btn/.oc-btn1/.oc-btn2.

Per screen (49 files):
- 22 scoped `.oc-callout {…}` overrides replaced with kit postures and deleted;
- 26 local button definitions replaced with .oc-action/.oc-actions and deleted;
- 15 monospace `font-family` declarations routed through var(--oc-font-mono);
- two local `.oc-card` shadows de-shadowed to .oc-member-card /
  .oc-service-option (their unit tests re-pointed to the new class names).

Acceptance (all grep-provable, all 0): no `.oc-callout {`, `.oc-btn`/`.oc-btns`,
`.oc-card {` definitions under dashboard/src; every font-family is
var(--oc-font-*) or inherit; no hex in <style> blocks.

Checks: dashboard 2343 unit tests green, ui-kit 247 tests green, both vue-tsc
runs clean. A no-visual-regression consolidation.

Blocker for next iteration / owed to CI: `pnpm e2e:harness` and the per-tab
before/after preview-harness screenshots could NOT be run in the Sandcastle
container — it cannot launch a browser (chromium's system libs need root to
apt-install; the nixpkgs libs require GLIBC_2.38 over the container's 2.36,
the #380 constraint). The host/CI runs that tier; a human merges the PR.

Lands by PR (landing-pr, ADR 0267).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Factory-Account: d631bd58e1e9
sandcastle: #1890 — unblock the shared pre-push lint gate (pre-existing bare literal)
All checks were successful
ci / seam (pull_request) Successful in 30m28s
ci / publish-broker (pull_request) Has been skipped
ci / publish (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
dc8f40dc3f
The pre-push `eslint .` gate (triggered by this PR's .vue/.ts changes) red on a
PRE-EXISTING violation in a file outside this slice:
dashboard/src/components/monitoring/FleetServicesStatusScreen.vue:138 shipped a
bare user-facing literal `drill in` (ADR 0232 `oc-i18n/no-bare-literal`),
introduced by main's tip 3f1aabe8 (the hand-merged PR #1905). It blocks every
.vue/.ts-touching PR, this one included.

The fix is obvious and zero-risk: the key
`panel.operations.monitoring.fleetStatus.drillIn` already exists in all five
locale catalogues and is rendered through `t(…)` by the two sibling drill-in
buttons in this very file (lines 84, 113); line 138 was simply left bare. Route
it through the same key. No catalogue change — the key already exists, so i18n
key-parity is untouched.

`eslint .` over the whole tree now reports 0 problems; vue-tsc clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Factory-Account: d631bd58e1e9
Author
Member
close-report gates passed for #1890 — every claim verified; this PR is cleared for merge.
<!-- close-report: gates-passed --> close-report gates passed for #1890 — every claim verified; this PR is cleared for merge.
All checks were successful
ci / seam (pull_request) Successful in 30m28s
ci / publish-broker (pull_request) Has been skipped
ci / publish (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
This pull request has changes conflicting with the target branch.
  • STATUS.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin agent/issue-1890:agent/issue-1890
git switch agent/issue-1890

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff agent/issue-1890
git switch agent/issue-1890
git rebase main
git switch main
git merge --ff-only agent/issue-1890
git switch agent/issue-1890
git rebase main
git switch main
git merge --no-ff agent/issue-1890
git switch main
git merge --squash agent/issue-1890
git switch main
git merge --ff-only agent/issue-1890
git switch main
git merge agent/issue-1890
git push origin main
Sign in to join this conversation.
No reviewers
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.

Dependencies

No dependencies set.

Reference
Matou/idss!2195
No description provided.