#72 templates: ready and failed page states; INSTALLERS from @coa/schema (phase-3 plan Task 5) #97

Merged
matou-build-agent merged 1 commit from agent/issue-72 into main 2026-08-31 12:22:04 +00:00

Implements phase-3 plan Task 5: ready/failed community-page states; INSTALLERS re-exported from @coa/schema.

  • ready + assets → five real <a class="btn" href download> + release-notes link
  • failed → five pending buttons + "Build failed — we're on it. Check back soon." (never the internal error text)
  • building/page-ready byte-identical; new ready snapshot added, phase-2 snapshot untouched

.note.failed colour inlined on the failed element (not shared css) to keep the page-ready <style> byte-identical per the acceptance clause.

pnpm -r typecheck && pnpm -r test green.

closes #72

Implements phase-3 plan Task 5: `ready`/`failed` community-page states; `INSTALLERS` re-exported from `@coa/schema`. - `ready` + `assets` → five real `<a class="btn" href download>` + release-notes link - `failed` → five pending buttons + "Build failed — we're on it. Check back soon." (never the internal error text) - `building`/`page-ready` byte-identical; new `ready` snapshot added, phase-2 snapshot untouched `.note.failed` colour inlined on the failed element (not shared css) to keep the page-ready `<style>` byte-identical per the acceptance clause. `pnpm -r typecheck && pnpm -r test` green. closes #72
community-page.ts now re-exports INSTALLERS from @coa/schema (local const
deleted) and renders per status.state:
- ready + assets → five <a class="btn" href download> plus a release-notes
  link (or none when releaseUrl absent);
- failed → the five pending buttons plus "Build failed — we're on it. Check
  back soon." (the internal error text never reaches the page);
- building / page-ready unchanged (byte-identical).

renderCommunityPage now destructures status. Tests appended (plan copy);
new `ready` snapshot written, phase-2 snapshot untouched.

Deviation from plan Step 2: the `.note.failed` colour is inlined on the
failed <p> rather than added to the shared css() block, because adding it to
css() would change the page-ready <style> block and break the acceptance
clause "Phase-2 snapshot byte-identical". Revertible, provable by the
snapshot tests.

STATUS.md: phase-3 Task 5 log line.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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/coa!97
No description provided.