Commit Graph
14 Commits
Author SHA1 Message Date
tevans 539798f8d0 feat: installable offline PWA (manifest + service worker) 2026-07-20 14:21:56 +01:00
tevans 1348048d50 feat: <gm-shell> wiring, styles, and AFTERIMAGE boot
Adds the gm-shell root element that owns store/clock/stamps/scenario,
mounts director-rail and dice-tray, handles reached (stamp + persist)
and open-tool (toggle dice tray), and boots the AFTERIMAGE scenario in
main.js. Also adds tests/setup.js + a vite.config.js setupFiles entry:
Node's newer built-in global `localStorage` shadows jsdom's per-window
implementation in vitest's jsdom environment, leaving localStorage
undefined in tests until replaced with a real jsdom-backed instance.
2026-07-20 14:15:50 +01:00
tevansandClaude Opus 4.8 549cb190d2 feat: <dice-tray> roller wired to rule-packs
Implement Task 10: dice-tray Web Component with:
- Polyhedral die picker (d4-d20, d100)
- Deterministic roll() using injected RNG
- Rule-pack interpretation for successes/ones/verdict
- Event emission on roll completion
- Reactive rendering on die type/count change

TDD: 3 passing tests (picker render, roll+interpret+verdict, die-type switching)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-20 14:05:52 +01:00
tevans 579dea996d feat: <director-rail> pacing component 2026-07-20 14:01:51 +01:00
tevans 80c8ecb5c8 feat: elapsed + drift formatting helpers 2026-07-20 13:58:49 +01:00
tevans c01917d38a feat: scenario validator + AFTERIMAGE pilot data 2026-07-20 13:55:33 +01:00
tevans e9fa9366fa feat: Year-Zero rule-pack + rule-pack registry 2026-07-20 13:52:41 +01:00
tevans cf028e9a08 feat: seedable dice core with pools 2026-07-20 13:49:54 +01:00
tevans 1861f4512f feat: timeline drift + next-hard-trigger analysis 2026-07-20 13:46:36 +01:00
tevans 40ac770304 feat: pure session clock with pause/resume 2026-07-20 13:43:02 +01:00
tevans bf2dacefc1 feat: namespaced localStorage store with export/import 2026-07-20 13:40:01 +01:00
tevans e4aafe5147 chore: scaffold Vite + Vitest PWA project 2026-07-20 13:36:38 +01:00
tevansandClaude Opus 4.8 415f8c61bf Plan: The Director Slice 1 (shell + rail + data model + Year-Zero dice)
12 TDD tasks proving the vertical slice end-to-end on the AFTERIMAGE pilot:
scaffold, store, clock, timeline/drift, dice core, Year-Zero rule-pack,
scenario validator+data, formatting, <director-rail>, <dice-tray>, <gm-shell>,
and the offline PWA (manifest + service worker).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-20 12:12:00 +01:00
tevansandClaude Opus 4.8 93e9156bd3 Design: The Director — convention GM shell
Offline-first PWA (Web Components) with an always-on Director Rail (pacing
co-pilot), one animated dice engine + system rule-packs, offline NPC/art
generators, and a per-scenario data model as source of truth. Sliced roadmap;
Slice 1 = shell + rail + data model + Year-Zero dice, proven on AFTERIMAGE.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-20 12:05:29 +01:00