templates: community page renderer — @coa/templates, build pending (phase-2 plan Task 4) #31

Closed
opened 2026-08-28 21:00:24 +00:00 by ben · 2 comments
Owner

Plan

docs/superpowers/plans/2026-08-28-coa-phase-2.md Task 4.

Deliverable

New workspace package templates/ (@coa/templates, added to pnpm-workspace.yaml and the root build filter): renderCommunityPage(PageInput) → string, INSTALLERS (mac-x64, mac-arm64, linux-appimage, windows, android), approvalWords(Approval), escapeHtml. Static HTML, inline CSS, no JavaScript; --primary/--secondary from the brand kit; logo via relative src="logo.svg|png"; five <a class="btn pending" aria-disabled="true"> buttons labelled <label> — build pending; welcome heading + approval mode in words; backend line ("shared indigenous digital infrastructure" / own infrastructure); footer with contact email. Snapshot + assertions in templates/test/community-page.test.ts (plan's six tests).

Design ruling

The visual design is the worker's two-way-door call (matou-website look: system font stack, whitespace, rounded cards). Post a screenshot of the rendered fixture on this ticket with the ruling comment; Ben vetoes asynchronously.

Acceptance

  • Snapshot committed; document starts <!doctype html>, <title> is the community name, no <script.
  • Every user string is escaped (<b>Evil</b> & co test); endorsements+session renders "3 endorsements".
  • pnpm -r typecheck && pnpm -r test green.

depends_on

  • schema: StatusSchema + FIXTURE_SUBMISSION (Task 1)

out_of_scope

Real download links (phase 3); serving the page (Task 6).

Phase gate

No build dispatch, no coa-shared provisioning, no status transitions beyond page-ready (phase 3). Never delete or rewrite anything under communities/ (ADR 0002/0003).

## Plan `docs/superpowers/plans/2026-08-28-coa-phase-2.md` **Task 4**. ## Deliverable New workspace package `templates/` (`@coa/templates`, added to `pnpm-workspace.yaml` and the root build filter): `renderCommunityPage(PageInput) → string`, `INSTALLERS` (mac-x64, mac-arm64, linux-appimage, windows, android), `approvalWords(Approval)`, `escapeHtml`. Static HTML, inline CSS, **no JavaScript**; `--primary`/`--secondary` from the brand kit; logo via relative `src="logo.svg|png"`; five `<a class="btn pending" aria-disabled="true">` buttons labelled `<label> — build pending`; welcome heading + approval mode in words; backend line ("shared indigenous digital infrastructure" / own infrastructure); footer with contact email. Snapshot + assertions in `templates/test/community-page.test.ts` (plan's six tests). ## Design ruling The visual design is the worker's two-way-door call (matou-website look: system font stack, whitespace, rounded cards). Post a screenshot of the rendered fixture on this ticket with the ruling comment; Ben vetoes asynchronously. ## Acceptance - Snapshot committed; document starts `<!doctype html>`, `<title>` is the community name, no `<script`. - Every user string is escaped (`<b>Evil</b> & co` test); `endorsements+session` renders "3 endorsements". - `pnpm -r typecheck && pnpm -r test` green. ## depends_on - schema: StatusSchema + FIXTURE_SUBMISSION (Task 1) ## out_of_scope Real download links (phase 3); serving the page (Task 6). ## Phase gate No build dispatch, no `coa-shared` provisioning, no status transitions beyond `page-ready` (phase 3). Never delete or rewrite anything under `communities/` (ADR 0002/0003).
Author
Owner

Claimed by the interactive session — working plan Task 4 on branch agent/issue-31 (parallel to #29/#30; no file overlap).

Claimed by the interactive session — working plan Task 4 on branch agent/issue-31 (parallel to #29/#30; no file overlap).
Author
Owner

Ruled by agent under ADR 0002 — veto anytime.

Design ruling (two-way door): matou-website look — system font stack, teal primary header, secondary-accent rounded cards, five grey aria-disabled installer buttons. One addition beyond the plan sketch: the header logo sits on a white rounded chip, because any logo drawn in the community's primary colour (as the fixture is) would otherwise be invisible against the primary-coloured header. Revertible by commit; proven by the 6 template tests + snapshot.

Rendered fixture:

community page

Ruled by agent under ADR 0002 — veto anytime. **Design ruling (two-way door):** matou-website look — system font stack, teal primary header, secondary-accent rounded cards, five grey aria-disabled installer buttons. One addition beyond the plan sketch: the header logo sits on a white rounded chip, because any logo drawn in the community's primary colour (as the fixture is) would otherwise be invisible against the primary-coloured header. Revertible by commit; proven by the 6 template tests + snapshot. Rendered fixture: ![community page](https://git.matou.nz/attachments/7dcc64b9-ace3-4aa6-8b6a-8b05c267e203)
ben closed this issue 2026-08-30 00:29:10 +00:00
Sign in to join this conversation.
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.

Reference
Matou/coa#31
No description provided.