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

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

closes #1892

What

The control plane's own server-rendered pages now wear the shared community band — the same whāriki band DDR 0280 built for the IDIP bridge's app door — so the coa/app/panel surfaces read as one family (Ben, 2026-09-25: "the coa, founding app and control panel should all be implemented with global css styles for consistency").

The band is lifted out of internal/idp into internal/brandkit (next to FontFaceCSS), imported by both packages:

  • BandCSS() — the accent → secondary gradient body + serif .name heading + white .panel card.
  • NameHeading(name) — the serif <h1 data-field="community-name">.
  • PortalTokensCSS(kit) — the compiled PortalSurface :root block, inlined where a page can't LINK the stylesheet.

Surfaces swept

internal/idp/appdoorpage.go (now consumes the shared band) plus the three controlapi pages:

  • member_join_idip.go — join / waiting / dead-invite / not-approved / witness-degraded / app-only
  • refusal.go — the gate refusal surface
  • signin_restart.go — the sign-in restart page (reuses the refusal family style)

Each drops its system-ui stack and hardcoded-hex palette (44 + 13 hex) for the band drawn from --oc-* tokens with Mātou-default fallbacks. The join page keeps LINKing /brand/portal/tokens.css (apex-served, DDR 0270 §1); the refusal/restart pages are served one origin from the control plane, so they INLINE the compiled tokens via the new RefusalBrand.Tokens, filled live per request in main.go. Kit-less, every page rests on the Mātou defaults (ADR 0100 — no fabricated name/logo).

Acceptance

  • ✅ every page carries the shared band + inlined kit fonts + the community-name heading — one seam test, TestBand_SharedAcrossSurfaces, over all eight.
  • ✅ no hardcoded palette hex outside token fallbacks; no system-ui stacks (asserted in the seam test).
  • ✅ rendered with no kit they fall back to the Mātou defaults — TestBand_NoKit_FallsBackToMatouDefaults.

controlapi / idp / brandkit / control-plane suites green; gofmt / vet / golangci-lint clean.

Screenshots

Rendered with a dark kit (deep green) and a pale kit (dusty rose → blue):

dark kit pale kit
join dark-join.png pale-join.png
refusal dark-refusal.png pale-refusal.png
restart / waiting dark-signin-restart.png pale-waiting.png
app-only / dead-invite dark-dead-invite.png pale-app-only.png
closes #1892 ## What The control plane's own server-rendered pages now wear the **shared community band** — the same whāriki band DDR 0280 built for the IDIP bridge's app door — so the coa/app/panel surfaces read as one family (Ben, 2026-09-25: *"the coa, founding app and control panel should all be implemented with global css styles for consistency"*). The band is **lifted out of `internal/idp` into `internal/brandkit`** (next to `FontFaceCSS`), imported by both packages: - `BandCSS()` — the accent → secondary gradient body + serif `.name` heading + white `.panel` card. - `NameHeading(name)` — the serif `<h1 data-field="community-name">`. - `PortalTokensCSS(kit)` — the compiled PortalSurface `:root` block, inlined where a page can't LINK the stylesheet. ## Surfaces swept `internal/idp/appdoorpage.go` (now consumes the shared band) plus the three controlapi pages: - `member_join_idip.go` — join / waiting / dead-invite / not-approved / witness-degraded / app-only - `refusal.go` — the gate refusal surface - `signin_restart.go` — the sign-in restart page (reuses the refusal family style) Each drops its `system-ui` stack and hardcoded-hex palette (44 + 13 hex) for the band drawn from `--oc-*` tokens with Mātou-default fallbacks. The join page keeps LINKing `/brand/portal/tokens.css` (apex-served, DDR 0270 §1); the refusal/restart pages are served one origin from the control plane, so they INLINE the compiled tokens via the new `RefusalBrand.Tokens`, filled live per request in `main.go`. Kit-less, every page rests on the Mātou defaults (ADR 0100 — no fabricated name/logo). ## Acceptance - ✅ every page carries the shared band + inlined kit fonts + the community-name heading — one seam test, `TestBand_SharedAcrossSurfaces`, over all eight. - ✅ no hardcoded palette hex outside token fallbacks; no `system-ui` stacks (asserted in the seam test). - ✅ rendered with no kit they fall back to the Mātou defaults — `TestBand_NoKit_FallsBackToMatouDefaults`. controlapi / idp / brandkit / control-plane suites green; gofmt / vet / golangci-lint clean. ## Screenshots Rendered with a **dark** kit (deep green) and a **pale** kit (dusty rose → blue): | | dark kit | pale kit | |---|---|---| | join | `dark-join.png` | `pale-join.png` | | refusal | `dark-refusal.png` | `pale-refusal.png` | | restart / waiting | `dark-signin-restart.png` | `pale-waiting.png` | | app-only / dead-invite | `dark-dead-invite.png` | `pale-app-only.png` |
sandcastle: #1892 — the control plane's server-rendered pages wear the shared community band (lifted from the app door into internal/brandkit)
All checks were successful
ci / seam (pull_request) Successful in 19m6s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
c058399627
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.

New `internal/brandkit/band.go`:
- `BandCSS()` — the shared band stylesheet (the `:root{--ad-*}` neutrals + the
  kit's accent → secondary gradient body + `.name`/`.welcome`/`.panel`).
- `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 cannot LINK the sheet can INLINE it).

`internal/idp/appdoorpage.go` now consumes `BandCSS()`/`NameHeading()` (its
inline band copy removed; `TestSeam_AppDoorPage_WearsThePortalSignInBand` green).

The three controlapi surfaces drop their `system-ui` + hardcoded-hex palettes
(44 + 13 hex) and flat layouts, and wear the band — logo + community-name
heading over the gradient, content on a white `.panel`:
- `member_join_idip.go` — join / waiting / dead-invite / not-approved /
  witness-degraded / app-only; the dead / not-approved surfaces drop their
  redundant bare-name welcome-line (the band heading is the title, per the
  wireframe's `.wt`).
- `refusal.go` — pill + reason + kv + doors on the panel; `refusalStylesheet`
  builds the band + card CSS, shared with:
- `signin_restart.go` — the restart page.

Token source per serving origin: the join page is apex-served so it LINKS
`/brand/portal/tokens.css` (DDR 0270 §1, unchanged); 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; `TestBand_NoKit_FallsBackToMatouDefaults` the
neutral; `refusal_brand_wiring_test.go` updated to the kit reader. controlapi /
idp / brandkit / control-plane suites green + gofmt/vet/golangci-lint clean.
Dark-kit + pale-kit screenshots in the PR.

STATUS.md milestone log updated.

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

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

dark-join.png
dark-join.png

pale-join.png
pale-join.png

dark-refusal.png
dark-refusal.png

pale-refusal.png
pale-refusal.png

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

pale-waiting.png
pale-waiting.png

pale-app-only.png
pale-app-only.png

dark-dead-invite.png
dark-dead-invite.png

:camera: **Evidence for #1892** — taken after the fix unless the name says otherwise. **dark-join.png** ![dark-join.png](https://git.matou.nz/attachments/e96b312a-9a24-440a-8129-70db28c11e08) **pale-join.png** ![pale-join.png](https://git.matou.nz/attachments/9fdda58b-681a-4d37-8b34-1536dbc13a00) **dark-refusal.png** ![dark-refusal.png](https://git.matou.nz/attachments/6b2c301a-5a64-4b1f-9edb-64e87190eeea) **pale-refusal.png** ![pale-refusal.png](https://git.matou.nz/attachments/b1ee7d80-6605-4316-b18b-fd316d36b6a9) **dark-signin-restart.png** ![dark-signin-restart.png](https://git.matou.nz/attachments/f18738ea-eabb-4700-a0be-4f4835be20eb) **pale-waiting.png** ![pale-waiting.png](https://git.matou.nz/attachments/b2274059-0cba-4068-90f4-f0ce7502b6c6) **pale-app-only.png** ![pale-app-only.png](https://git.matou.nz/attachments/ed74d98d-30e9-468c-8ff8-c05227c0ab6a) **dark-dead-invite.png** ![dark-dead-invite.png](https://git.matou.nz/attachments/e170b37f-dc13-4987-8655-1e0353816ed4)
Owner

Reviewed for merge at Ben's request (2026-11-16 PR sweep) — not merged; left open. ~510 commits behind; conflicts in 5 Go files (control-plane main.go, controlapi member_join_idip.go / refusal.go / signin_restart.go, idp appdoorpage.go). Main rewrote the same surfaces since: the refusal page now wears the kit by linking/inlining --oc-* tokens with neutral fallbacks, and WithIdipMemberJoin no longer takes the appOnly argument this PR passes (the browser-join closure page). Reconciling is a redesign of the band against today's pages, not a pick-a-side merge — needs a fresh pass from current main.

Reviewed for merge at Ben's request (2026-11-16 PR sweep) — **not merged; left open.** ~510 commits behind; conflicts in 5 Go files (control-plane main.go, controlapi member_join_idip.go / refusal.go / signin_restart.go, idp appdoorpage.go). Main rewrote the same surfaces since: the refusal page now wears the kit by linking/inlining `--oc-*` tokens with neutral fallbacks, and `WithIdipMemberJoin` no longer takes the `appOnly` argument this PR passes (the browser-join closure page). Reconciling is a redesign of the band against today's pages, not a pick-a-side merge — needs a fresh pass from current main.
Owner

Closing unmerged: it is 529 commits behind, and main has since taken a different path for half of it. #1892 stays open (ready-for-agent) to be redone from current main; the re-scope is on the ticket.

Closing unmerged: it is 529 commits behind, and main has since taken a different path for half of it. #1892 stays open (`ready-for-agent`) to be redone from current main; the re-scope is on the ticket.
ben closed this pull request 2026-11-17 13:15:01 +00:00
All checks were successful
ci / seam (pull_request) Successful in 19m6s
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!1898
No description provided.