templates: redesign community downloads page — Poster direction #113

Closed
opened 2026-09-03 17:04:03 +00:00 by ben · 2 comments
Owner

Design direction approved by Ben 2026-09-03 ("Poster", option A of three mockups). Rebuild templates/src/community-page.ts — still ONE self-contained server-rendered template string, no framework, derived entirely from the brand kit.

Direction: Poster

  • Full-bleed hero (min-height ~88vh): radial/linear gradient built from brand.primaryColour and a darkened stop computed from it. Logo in a white circular medallion (~128px), community name in very large heavy type, then onboarding.welcome.heading as the line under the name (fall back to brand.tagline, then nothing).
  • ONE oversized CTA button in brand.secondaryColour: the visitor's detected platform (small inline OS-detect script, ~15 lines, no dependencies; default to Linux ordering when undetectable). Sub-line inside the button: format + size + Build N. The other four platforms render as quiet ghost/outline pill links below.
  • Below the hero, a light info strip (three short columns): approval words (existing approvalWords()), backend words (shared vs self-hosted), release notes link when status.releaseUrl exists.
  • Footer unchanged in content: Built with Matou + contactEmail mailto.
  • States, same slot, no layout shift: ready = CTA live with asset URLs from status.assets; page-ready/building = CTA becomes a non-link status card ("Installers are being built…"); failed = status card with the existing failed wording.
  • Contrast: compute hero/CTA foregrounds from a relative-luminance check on the two brand colours (very light primaries must not produce white-on-white; very dark secondaries must not produce dark-on-dark). Keep a visible keyboard focus state on all links/buttons.

Acceptance

  • templates/test extended: rendered HTML contains both kit colours, logo path, name, welcome-heading/tagline fallback chain, correct markup for page-ready, building, ready, failed fixture statuses, and the OS-detect script only when state is ready.
  • New e2e spec (community-page screenshots): after the existing apply flow renders /c/ngati-example, capture page.screenshot() of the community page in at least pending and ready states into test-results/ (branded PNGs reviewable per run). Keep apply.spec.ts assertions passing (data-installer attributes on the five links must remain).
  • make test, make typecheck, make e2e green.

out_of_scope

  • Feature toggles / nav order (phase 4). Any server or schema changes. Any change to communities/ on-disk layout or Caddy serving. External fonts/CDNs on the page (system font stack only — the page must stay self-contained offline-safe static HTML).

needs_human_decision

None — direction fixed by Ben; implementation details ruled by agent under the two-way-door doctrine.

Design direction approved by Ben 2026-09-03 ("Poster", option A of three mockups). Rebuild `templates/src/community-page.ts` — still ONE self-contained server-rendered template string, no framework, derived entirely from the brand kit. ## Direction: Poster - Full-bleed hero (min-height ~88vh): radial/linear gradient built from `brand.primaryColour` and a darkened stop computed from it. Logo in a white circular medallion (~128px), community `name` in very large heavy type, then `onboarding.welcome.heading` as the line under the name (fall back to `brand.tagline`, then nothing). - ONE oversized CTA button in `brand.secondaryColour`: the visitor's detected platform (small inline OS-detect script, ~15 lines, no dependencies; default to Linux ordering when undetectable). Sub-line inside the button: format + size + `Build N`. The other four platforms render as quiet ghost/outline pill links below. - Below the hero, a light info strip (three short columns): approval words (existing `approvalWords()`), backend words (shared vs self-hosted), release notes link when `status.releaseUrl` exists. - Footer unchanged in content: Built with Matou + `contactEmail` mailto. - States, same slot, no layout shift: `ready` = CTA live with asset URLs from `status.assets`; `page-ready`/`building` = CTA becomes a non-link status card ("Installers are being built…"); `failed` = status card with the existing failed wording. - Contrast: compute hero/CTA foregrounds from a relative-luminance check on the two brand colours (very light primaries must not produce white-on-white; very dark secondaries must not produce dark-on-dark). Keep a visible keyboard focus state on all links/buttons. ## Acceptance - `templates/test` extended: rendered HTML contains both kit colours, logo path, name, welcome-heading/tagline fallback chain, correct markup for `page-ready`, `building`, `ready`, `failed` fixture statuses, and the OS-detect script only when state is `ready`. - New `e2e` spec (`community-page` screenshots): after the existing apply flow renders `/c/ngati-example`, capture `page.screenshot()` of the community page in at least pending and ready states into `test-results/` (branded PNGs reviewable per run). Keep `apply.spec.ts` assertions passing (data-installer attributes on the five links must remain). - `make test`, `make typecheck`, `make e2e` green. ## out_of_scope - Feature toggles / nav order (phase 4). Any server or schema changes. Any change to `communities/` on-disk layout or Caddy serving. External fonts/CDNs on the page (system font stack only — the page must stay self-contained offline-safe static HTML). ## needs_human_decision None — direction fixed by Ben; implementation details ruled by agent under the two-way-door doctrine.

Ruled by agent under the two-way-door doctrine — veto anytime.

Ruling: the oversized CTA sub-line renders format + Build N (e.g. "AppImage · Build 3"), omitting the byte size called for in the direction.

Why: installer byte sizes are not carried anywhere in the brand kit, status.json, or the build-complete callback payload (assets is a map of URLs only — see packages/schema/src/{installers,status,build-complete}.ts). Surfacing a real size would require adding a field to the schema and threading it through the server/callback, and this ticket lists "Any server or schema changes" and schema edits as out_of_scope. Format is derived from each asset URL’s extension, so it needs no new data.

Why two-way: the sub-line is pure presentational template output in one self-contained string; if a later ticket adds sizes to the kit/callback, adding · 84 MB to the sub-line is a one-line, fully-revertible change.

Proof: templates/test asserts the ready-state sub-line contains the format and Build N; grep of the schema package shows no size field exists to render.

Ruled by agent under the two-way-door doctrine — veto anytime. **Ruling:** the oversized CTA sub-line renders **format + Build N** (e.g. "AppImage · Build 3"), omitting the byte **size** called for in the direction. **Why:** installer byte sizes are not carried anywhere in the brand kit, `status.json`, or the `build-complete` callback payload (`assets` is a map of URLs only — see `packages/schema/src/{installers,status,build-complete}.ts`). Surfacing a real size would require adding a field to the schema and threading it through the server/callback, and this ticket lists **"Any server or schema changes"** and schema edits as `out_of_scope`. Format is derived from each asset URL’s extension, so it needs no new data. **Why two-way:** the sub-line is pure presentational template output in one self-contained string; if a later ticket adds sizes to the kit/callback, adding `· 84 MB` to the sub-line is a one-line, fully-revertible change. **Proof:** `templates/test` asserts the ready-state sub-line contains the format and `Build N`; grep of the schema package shows no size field exists to render.

Landed by the idle landing sweep (#114): this agent PR was green but its worker left no close-report — killed after opening the PR. The sweep merged it; closes #113 closes the issue.

Landed by the idle landing sweep (#114): this agent PR was green but its worker left no close-report — killed after opening the PR. The sweep merged it; `closes #113` closes the issue.
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.

Dependencies

No dependencies set.

Reference
Matou/coa#113
No description provided.