Phase 19: Polish: Lighthouse, README, CONTRIBUTING
Issue #20 · open
Part of #1.
What this phase delivers
Production readiness: Lighthouse targets met, README and CONTRIBUTING complete, final cross-browser smoke, keyboard shortcut docs.
Scope
- Optimize: code-split Monaco, lazy-load lessons, defer non-critical CSS, cache static assets.
- A11y pass: focus order, color contrast, ARIA on palette and modals,
prefers-reduced-motionrespected (skips stream replay). - README: prereqs, dev/prod commands, proxy deploy notes (Fly.io & Render snippets), full lesson slug list (auto-generated from
lessons.ts), keyboard shortcut reference. - CONTRIBUTING.md: how to add a lesson (one TS file in
src/content/lessons/, register inlessons.ts, optional checkpoint, run-mode guidance). - Final smoke: visit every lesson in the production preview.
Acceptance criteria
- [ ]
pnpm build && pnpm previewLighthouse: Performance ≥ 90, Accessibility ≥ 95. - [ ] README has working dev/prod/deploy commands, full slug list, all keyboard shortcuts.
- [ ] CONTRIBUTING.md covers the lesson authoring workflow end-to-end.
- [ ]
prefers-reduced-motion: reduceskips stream replay automatically. - [ ] No console warnings in production preview.
- [ ] Visited every lesson once in preview build; nothing 404s or crashes.
Dependencies
Requires: #12, #13, #14, #15, #16, #17, #18, #19. Unblocks: Epic close (#1).
Decision references
D11.1, D11.2, D11.3.
Estimate: 5–7h.