Control-plane server-rendered pages wear the shared community band (#1892) #2196

Open
matou-build-agent wants to merge 1 commit from agent/issue-1892 into main

closes #1892

What

The control plane's own server-rendered, gateway-served pages — the IDIP join
family (join / waiting / dead-invite / not-approved / witness-degraded), the gate
refusal surface (+ its AC-X0 not-an-administrator sibling) and the sign-in
restart
page — carried their own system-ui stacks and hardcoded-hex palettes
(15 hex in member_join_idip.go, 10 in refusal.go, reused by
signin_restart.go). They now wear the same whāriki band the IDIP bridge's
app door does (DDR 0280 / DDR 0270 §2/§3).

How

  • Lifted the band into a shared home. internal/idp's bandCSS + nameHeading
    move into new internal/brandkit/band.go — BandCSS(), NameHeading(name),
    and PortalTokensCSS(kit) (the compiled PortalSurface :root block, "" on a
    kit-less/faulty kit). internal/idp imports them, so the four bridge surfaces
    render byte-unchanged (the app-door golden is untouched). This is Ben's
    re-scope: the current idp band (with .btn/.link/.panel label/.status/
    .standing + the logo-tile rules), not #1898's older copy.
  • Swept the three controlapi surfaces onto the band. Each drops its flat
    palette for the logo tile + community-name serif heading over the kit's
    accent→secondary gradient, with its own content on a white .panel. Every
    colour is an --oc-* token with a Mātou-default fallback.
  • Token source per origin (DDR 0270 §1). The apex-served join family LINKS
    /brand/portal/tokens.css; the gate refusal — served one origin away on a
    service host — INLINES the compiled tokens via the new RefusalBrand.Tokens,
    filled live per request by productionRefusalBrandSource reading the whole kit
    through communityKitReader(repo) (replacing the name-only
    communityNameReader). The gate's Handover wiring (ADR 0282) is unchanged.
  • Kit-less every page rests on the Mātou defaults — no fabricated name/logo
    (ADR 0100).

The App-only join end is gone (#1910 / DDR 0284), so it is out of this sweep.

Tests

  • New TestBand_SharedAcrossSurfaces pins every page carries the band + inlined
    kit fonts + the community-name heading and no system-ui;
    TestBand_NoKit_FallsBackToMatouDefaults pins the neutral.
  • refusal_brand_wiring_test.go updated to the kit reader; the restart page's kit
    test now pins the band gradient tokens, not the retired --oc-background.
  • go test ./internal/controlapi/ ./internal/idp/ ./internal/brandkit/ ./control-plane/cmd/control-plane/
    green; go build ./...; gofmt / go vet / golangci-lint clean.

Acceptance

  • ✅ join/waiting/dead-invite/not-approved/witness-degraded, refusal and
    sign-in-restart pages all contain the shared band style + inlined kit fonts +
    the community-name heading (one seam test over every page).
  • ✅ no hardcoded palette hex outside token fallbacks; system-ui stacks gone.
  • ✅ rendered with no kit they fall back to the Mātou defaults.

Screenshots

Dark kit (Te Rūnanga o Pōneke, navy accent) and pale kit (Ngāti Awa Collective,
amber accent), rendered from the real Go renderers over fixture kits.

closes #1892 ## What The control plane's own server-rendered, gateway-served pages — the IDIP join family (join / waiting / dead-invite / not-approved / witness-degraded), the gate **refusal** surface (+ its AC-X0 not-an-administrator sibling) and the **sign-in restart** page — carried their own `system-ui` stacks and hardcoded-hex palettes (15 hex in `member_join_idip.go`, 10 in `refusal.go`, reused by `signin_restart.go`). They now wear the **same whāriki band** the IDIP bridge's app door does (DDR 0280 / DDR 0270 §2/§3). ## How - **Lifted the band into a shared home.** `internal/idp`'s `bandCSS` + `nameHeading` move into new `internal/brandkit/band.go` — `BandCSS()`, `NameHeading(name)`, and `PortalTokensCSS(kit)` (the compiled PortalSurface `:root` block, `""` on a kit-less/faulty kit). `internal/idp` imports them, so the four bridge surfaces render **byte-unchanged** (the app-door golden is untouched). This is Ben's re-scope: the *current* idp band (with `.btn`/`.link`/`.panel label`/`.status`/ `.standing` + the logo-tile rules), not #1898's older copy. - **Swept the three controlapi surfaces onto the band.** Each drops its flat palette for the logo tile + community-name serif heading over the kit's accent→secondary gradient, with its own content on a white `.panel`. Every colour is an `--oc-*` token with a Mātou-default fallback. - **Token source per origin (DDR 0270 §1).** The apex-served join family LINKS `/brand/portal/tokens.css`; the gate refusal — served one origin away on a service host — INLINES the compiled tokens via the new `RefusalBrand.Tokens`, filled live per request by `productionRefusalBrandSource` reading the whole kit through `communityKitReader(repo)` (replacing the name-only `communityNameReader`). The gate's `Handover` wiring (ADR 0282) is unchanged. - **Kit-less** every page rests on the Mātou defaults — no fabricated name/logo (ADR 0100). The App-only join end is gone (#1910 / DDR 0284), so it is out of this sweep. ## Tests - New `TestBand_SharedAcrossSurfaces` pins every page carries the band + inlined kit fonts + the community-name heading and no `system-ui`; `TestBand_NoKit_FallsBackToMatouDefaults` pins the neutral. - `refusal_brand_wiring_test.go` updated to the kit reader; the restart page's kit test now pins the band gradient tokens, not the retired `--oc-background`. - `go test ./internal/controlapi/ ./internal/idp/ ./internal/brandkit/ ./control-plane/cmd/control-plane/` green; `go build ./...`; gofmt / go vet / golangci-lint clean. ## Acceptance - ✅ join/waiting/dead-invite/not-approved/witness-degraded, refusal and sign-in-restart pages all contain the shared band style + inlined kit fonts + the community-name heading (one seam test over every page). - ✅ no hardcoded palette hex outside token fallbacks; `system-ui` stacks gone. - ✅ rendered with no kit they fall back to the Mātou defaults. ## Screenshots Dark kit (Te Rūnanga o Pōneke, navy accent) and pale kit (Ngāti Awa Collective, amber accent), rendered from the real Go renderers over fixture kits.
sandcastle: #1892 — the control plane's server-rendered pages wear the shared community band
Some checks failed
ci / seam (pull_request) Failing after 16m0s
ci / publish-broker (pull_request) Has been skipped
ci / publish (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
e5d7fe5faf
DDR 0280 put the IDIP bridge's app door on the whāriki band inline; this lifts
that band into a shared home both packages import, and sweeps the control plane's
own gateway-served pages onto it (Ben's re-scope, 2026-11-17: lift the CURRENT
idp band — .btn/.link/.panel label/.status/.standing + logo-tile rules — not
#1898's older copy; app-only end is gone per #1910/DDR 0284; keep the gate's
Handover wiring).

New internal/brandkit/band.go:
- BandCSS()        — the shared band stylesheet (the :root{--ad-*} neutrals, the
  kit's accent→secondary gradient body, .name/.welcome/.panel, the kit's primary
  button/.link/.panel label/.status/.standing). Copied verbatim from idp's bandCSS.
- NameHeading(name) — the serif <h1 data-field="community-name"> heading.
- PortalTokensCSS(kit) — the compiled PortalSurface :root block, "" on a
  kit-less/faulty kit (so a page that cannot LINK the sheet can INLINE it).

internal/idp/brand.go now imports BandCSS()/NameHeading() (bandCSS a thin var
over brandkit.BandCSS(); the nameHeading method delegates) — the four bridge
surfaces render byte-unchanged, so the app-door golden is untouched.

The three controlapi surfaces drop their system-ui + hardcoded-hex palettes and
flat layouts and wear the band — logo tile + community-name heading over the
gradient, content on a white .panel:
- member_join_idip.go — join / waiting / dead-invite / not-approved /
  witness-degraded (joinStylesheet → FontFaceCSS + BandCSS + the join card CSS;
  the dead/not-approved surfaces drop their redundant bare-name welcome-line, the
  band heading is the title). Apex-served, so it LINKS /brand/portal/tokens.css.
- refusal.go — pill + reason + kv + doors on the panel, plus the AC-X0
  not-an-administrator sibling; refusalStylesheet(tokens) builds the band + card
  CSS, shared with:
- signin_restart.go — the restart page.

The refusal/restart pages are served one origin from the control plane, so they
INLINE the compiled tokens via the new RefusalBrand.Tokens. That field is filled
live per request in main.go: productionRefusalBrandSource now reads the whole kit
through communityKitReader(repo) (replacing the name-only communityNameReader)
and compiles the band tokens. Kit-less, every page rests on the Mātou-default
--oc-* fallbacks (ADR 0100 — no fabricated name/logo).

Tests: new TestBand_SharedAcrossSurfaces pins all eight pages carry the band +
inlined kit fonts + name heading and no system-ui; TestBand_NoKit_FallsBackToMatouDefaults
the neutral; refusal_brand_wiring_test.go updated to the kit reader; the restart
page's kit test now pins the band gradient tokens, not the retired --oc-background.
go test ./internal/controlapi/ ./internal/idp/ ./internal/brandkit/
./control-plane/cmd/control-plane/ green; go build ./...; gofmt/vet/golangci-lint
clean. Dark-kit + pale-kit screenshots in the PR.

STATUS.md milestone log updated. Lands by PR (landing-pr, human merge).

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

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

shot-dark-join.png
shot-dark-join.png

shot-dark-refusal.png
shot-dark-refusal.png

shot-dark-signin-restart.png
shot-dark-signin-restart.png

shot-dark-waiting.png
shot-dark-waiting.png

shot-pale-join.png
shot-pale-join.png

shot-pale-refusal.png
shot-pale-refusal.png

shot-pale-signin-restart.png
shot-pale-signin-restart.png

shot-pale-not-admin.png
shot-pale-not-admin.png

shot-pale-dead-invite.png
shot-pale-dead-invite.png

:camera: **Evidence for #1892** — taken after the fix unless the name says otherwise. **shot-dark-join.png** ![shot-dark-join.png](https://git.matou.nz/attachments/0d21eb23-eef9-4664-ace5-65adb734c0b7) **shot-dark-refusal.png** ![shot-dark-refusal.png](https://git.matou.nz/attachments/68846ca4-049f-4e99-892f-899138eef165) **shot-dark-signin-restart.png** ![shot-dark-signin-restart.png](https://git.matou.nz/attachments/b21b25d0-72d5-419d-8884-c68c48755f7c) **shot-dark-waiting.png** ![shot-dark-waiting.png](https://git.matou.nz/attachments/b0a99531-0089-4400-b733-9516527bfa60) **shot-pale-join.png** ![shot-pale-join.png](https://git.matou.nz/attachments/645a8ce2-7b35-438b-9a69-221f851b93c5) **shot-pale-refusal.png** ![shot-pale-refusal.png](https://git.matou.nz/attachments/4e3bcebc-ea9a-4bfb-8e99-4c9a6ab7103c) **shot-pale-signin-restart.png** ![shot-pale-signin-restart.png](https://git.matou.nz/attachments/603678be-8772-47d8-8373-70662e0fc719) **shot-pale-not-admin.png** ![shot-pale-not-admin.png](https://git.matou.nz/attachments/c3f51ab0-0e9b-49b1-b48c-eae5d0a91a3c) **shot-pale-dead-invite.png** ![shot-pale-dead-invite.png](https://git.matou.nz/attachments/4a10bde0-0a8b-458a-93c9-fe7e9e490e34)
Author
Member
close-report gates passed for #1892 — every claim verified; this PR is cleared for merge.
<!-- close-report: gates-passed --> close-report gates passed for #1892 — every claim verified; this PR is cleared for merge.
Some checks failed
ci / seam (pull_request) Failing after 16m0s
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-1892:agent/issue-1892
git switch agent/issue-1892

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-1892
git switch agent/issue-1892
git rebase main
git switch main
git merge --ff-only agent/issue-1892
git switch agent/issue-1892
git rebase main
git switch main
git merge --no-ff agent/issue-1892
git switch main
git merge --squash agent/issue-1892
git switch main
git merge --ff-only agent/issue-1892
git switch main
git merge agent/issue-1892
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!2196
No description provided.