kanidm sign-in override declares the kit fonts but never loads them — bundle @font-face #1893

Closed
opened 2026-09-25 18:05:40 +00:00 by ben · 4 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

internal/brandkit/idp_override_body.css sets --oc-font-* to Merriweather / Roboto Mono (~L23-28) but carries no @font-face, so the kanidm pages fall back to Georgia/monospace unless the fonts happen to be installed. The faces already exist embedded in brandkit (idpFontCSS, exported as brandkit.FontFaceCSS() by DDR 0280).

Scope / acceptance

The kanidm override artifact includes the kit's @font-face rules (one source: FontFaceCSS); a brandkit test proves the compiled IdpLoginSurface override contains the Merriweather and Roboto Mono faces; a kanidm-path drive screenshot shows the kit's type.

🤖 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 `internal/brandkit/idp_override_body.css` sets `--oc-font-*` to Merriweather / Roboto Mono (~L23-28) but carries no `@font-face`, so the kanidm pages fall back to Georgia/monospace unless the fonts happen to be installed. The faces already exist embedded in `brandkit` (`idpFontCSS`, exported as `brandkit.FontFaceCSS()` by DDR 0280). ## Scope / acceptance The kanidm override artifact includes the kit's `@font-face` rules (one source: `FontFaceCSS`); a brandkit test proves the compiled `IdpLoginSurface` override contains the Merriweather and Roboto Mono faces; a kanidm-path drive screenshot shows the kit's type. 🤖 Filed with [Claude Code](https://claude.com/claude-code)

This was generated by AI during triage.

Triage: ready-for-agent, blocked by #1889 (kept enhancement)

Verified against the tree — the premise needs a correction, and a dependency found.

The ticket says the kanidm override "carries no @font-face, so the kanidm pages fall back to Georgia/monospace." That is already false at the compiled-artifact level: internal/brandkit/idp_override.go renders idpFontCSS() — four @font-face rules with the Merriweather + Roboto Mono faces bundled as data: URIs — and writes it into the override at Render (line 123, between the compiled :root and idpOverrideBody). So the kanidm pages do get the kit faces today; they do not fall back. The raw idp_override_body.css file has no @font-face (true), but the compiled override.css does.

The real remaining work is the ticket's own acceptance clause: "one source: FontFaceCSS." Today the faces are rendered by the local idpFontCSS in idp_override.go. PR #1889 introduces brandkit.FontFaceCSS() as the shared single-source face export (refactored out of the kanidm override's faces) for the IDIP bridge band. So this ticket is the de-duplication half: route the kanidm override through brandkit.FontFaceCSS() and delete the now-duplicate idpFontCSS.

That makes it blocked by #1889 (still OPEN) — FontFaceCSS does not exist on main yet. I have added the native Forgejo dependency; the swarm queue hides blocked slices, so it is invisible to workers until #1889 merges.

Ruled by agent under ADR 0174 — veto anytime. ready-for-agent-behind-a-dependency: fully specified once the premise is corrected, the acceptance is brandkit-test-provable, and the only gap is the not-yet-merged FontFaceCSS. Two-way door — revertible per commit, provable by a brandkit test + a kanidm-path drive screenshot. Not landing-pr (no origin-marker; internal ticket).

Agent brief (unblocks when #1889 lands)

Goal: the kanidm override draws its @font-face rules from the single shared source brandkit.FontFaceCSS(), with no second copy.

Approach: once #1889 has landed brandkit.FontFaceCSS(), replace the call to the local idpFontCSS() in idp_override.go:Render (line 123) with brandkit.FontFaceCSS() and delete the now-unused idpFontCSS/idpFontFaces/idpFontFace machinery (keeping the embedded assets/fonts/*.woff2 that FontFaceCSS itself consumes). Verify byte-for-byte that the compiled IdpLoginSurface override still contains the four faces.

Acceptance:

  • the compiled IdpLoginSurface override contains the Merriweather + Roboto Mono @font-face rules, sourced from FontFaceCSS (one source; no idpFontCSS);
  • a brandkit test proves the compiled override contains both faces;
  • a kanidm-path drive screenshot shows the kit's type.
> *This was generated by AI during triage.* ## Triage: `ready-for-agent`, blocked by #1889 (kept `enhancement`) **Verified against the tree — the premise needs a correction, and a dependency found.** The ticket says the kanidm override *"carries no `@font-face`, so the kanidm pages fall back to Georgia/monospace."* That is **already false at the compiled-artifact level**: `internal/brandkit/idp_override.go` renders `idpFontCSS()` — four `@font-face` rules with the Merriweather + Roboto Mono faces bundled as `data:` URIs — and writes it into the override at `Render` (line 123, between the compiled `:root` and `idpOverrideBody`). So the kanidm pages do get the kit faces today; they do not fall back. The raw `idp_override_body.css` file has no `@font-face` (true), but the compiled `override.css` does. The **real remaining work** is the ticket's own acceptance clause: *"one source: `FontFaceCSS`."* Today the faces are rendered by the local `idpFontCSS` in `idp_override.go`. PR #1889 introduces `brandkit.FontFaceCSS()` as the shared single-source face export (refactored out of the kanidm override's faces) for the IDIP bridge band. So this ticket is **the de-duplication half**: route the kanidm override through `brandkit.FontFaceCSS()` and delete the now-duplicate `idpFontCSS`. That makes it **blocked by #1889** (still OPEN) — `FontFaceCSS` does not exist on `main` yet. I have added the native Forgejo dependency; the swarm queue hides blocked slices, so it is invisible to workers until #1889 merges. **Ruled by agent under ADR 0174 — veto anytime.** `ready-for-agent`-behind-a-dependency: fully specified once the premise is corrected, the acceptance is brandkit-test-provable, and the only gap is the not-yet-merged `FontFaceCSS`. Two-way door — revertible per commit, provable by a brandkit test + a kanidm-path drive screenshot. Not `landing-pr` (no origin-marker; internal ticket). ## Agent brief (unblocks when #1889 lands) **Goal:** the kanidm override draws its `@font-face` rules from the single shared source `brandkit.FontFaceCSS()`, with no second copy. **Approach:** once #1889 has landed `brandkit.FontFaceCSS()`, replace the call to the local `idpFontCSS()` in `idp_override.go:Render` (line 123) with `brandkit.FontFaceCSS()` and delete the now-unused `idpFontCSS`/`idpFontFaces`/`idpFontFace` machinery (keeping the embedded `assets/fonts/*.woff2` that `FontFaceCSS` itself consumes). Verify byte-for-byte that the compiled `IdpLoginSurface` override still contains the four faces. **Acceptance:** - the compiled `IdpLoginSurface` override contains the Merriweather + Roboto Mono `@font-face` rules, sourced from `FontFaceCSS` (one source; no `idpFontCSS`); - a brandkit test proves the compiled override contains both faces; - a kanidm-path drive screenshot shows the kit's type.

swarm-claim host=bens-mac-04 run=32895
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=32895 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=32926
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=32926 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1893 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1893,
  "status": "success",
  "commits": [
    "0a5b4619"
  ],
  "changed_files": [
    "internal/brandkit/idp_override.go",
    "internal/brandkit/boundary_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/brandkit/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./internal/brandkit/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c gofmt -l internal/brandkit/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The kanidm override artifact includes the kit's @font-face rules (one source: FontFaceCSS)": "idp_override.go Render now writes FontFaceCSS() (the one exported source both the kanidm override and the DDR 0280 app door consume); the compiled override.css carries 4 @font-face rules with data:font/woff2;base64 URIs (verified by grep: Merriweather 700 + Roboto Mono 100 700, latin + latin-ext).",
    "a brandkit test proves the compiled IdpLoginSurface override contains the Merriweather and Roboto Mono faces": "TestCompile_IdpLoginBundlesKitFontFaces (boundary_test.go) compiles IdpLoginSurface and asserts the override embeds FontFaceCSS() verbatim, the Merriweather 700 and Roboto Mono 100 700 face fragments, data:font/woff2;base64, and exactly 4 @font-face rules — green under go test.",
    "a kanidm-path drive screenshot shows the kit's type": "WAIVED — the fix is a Go/brandkit CSS artifact with no dashboard surface; a live kanidm drive needs clan-lab and the Sandcastle sandbox cannot launch a browser (chrome-headless-shell fails on libnspr4.so; flake #380 documents npm chromium is unrunnable here). The type is proven from the compiled bytes: override.css embeds 4 data:woff2 @font-face rules for both families, pinned by the new test."
  },
  "summary": "kanidm override.css bundles the kit @font-face (Merriweather + Roboto Mono) from the single exported FontFaceCSS source, pinned by a new brandkit regression test.",
  "blockers": []
}
**close-report** for #1893 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1893, "status": "success", "commits": [ "0a5b4619" ], "changed_files": [ "internal/brandkit/idp_override.go", "internal/brandkit/boundary_test.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/brandkit/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./internal/brandkit/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c gofmt -l internal/brandkit/", "exit_code": 0 } ], "criteria": { "The kanidm override artifact includes the kit's @font-face rules (one source: FontFaceCSS)": "idp_override.go Render now writes FontFaceCSS() (the one exported source both the kanidm override and the DDR 0280 app door consume); the compiled override.css carries 4 @font-face rules with data:font/woff2;base64 URIs (verified by grep: Merriweather 700 + Roboto Mono 100 700, latin + latin-ext).", "a brandkit test proves the compiled IdpLoginSurface override contains the Merriweather and Roboto Mono faces": "TestCompile_IdpLoginBundlesKitFontFaces (boundary_test.go) compiles IdpLoginSurface and asserts the override embeds FontFaceCSS() verbatim, the Merriweather 700 and Roboto Mono 100 700 face fragments, data:font/woff2;base64, and exactly 4 @font-face rules — green under go test.", "a kanidm-path drive screenshot shows the kit's type": "WAIVED — the fix is a Go/brandkit CSS artifact with no dashboard surface; a live kanidm drive needs clan-lab and the Sandcastle sandbox cannot launch a browser (chrome-headless-shell fails on libnspr4.so; flake #380 documents npm chromium is unrunnable here). The type is proven from the compiled bytes: override.css embeds 4 data:woff2 @font-face rules for both families, pinned by the new test." }, "summary": "kanidm override.css bundles the kit @font-face (Merriweather + Roboto Mono) from the single exported FontFaceCSS source, pinned by a new brandkit regression test.", "blockers": [] } ``` </details>
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#1893
No description provided.