templates: community page renderer — @coa/templates, build pending (phase-2 plan Task 4) #31
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/coa#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Plan
docs/superpowers/plans/2026-08-28-coa-phase-2.mdTask 4.Deliverable
New workspace package
templates/(@coa/templates, added topnpm-workspace.yamland 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/--secondaryfrom the brand kit; logo via relativesrc="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 intemplates/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
<!doctype html>,<title>is the community name, no<script.<b>Evil</b> & cotest);endorsements+sessionrenders "3 endorsements".pnpm -r typecheck && pnpm -r testgreen.depends_on
out_of_scope
Real download links (phase 3); serving the page (Task 6).
Phase gate
No build dispatch, no
coa-sharedprovisioning, no status transitions beyondpage-ready(phase 3). Never delete or rewrite anything undercommunities/(ADR 0002/0003).Claimed by the interactive session — working plan Task 4 on branch agent/issue-31 (parallel to #29/#30; no file overlap).
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: