ai-code-battle/web
jedarden 9850020c53 feat(web): win probability sparkline + critical moment navigation
Add §13.2 win probability graph and critical moment navigation to the
replay viewer.

- types.ts: add ReplayCriticalMoment interface; extend Replay with
  win_prob ([][]float per turn) and critical_moments fields
- replay-viewer.ts: export CriticalMomentMarker; draw dashed vertical
  lines with delta labels for critical moments on the sparkline canvas;
  add setCriticalMoments / getCriticalMomentMarkers; update
  createWinProbSparkline to accept click-to-scrub callback and replace
  existing canvas on reload; refresh sparkline on every render()
- app.ts: add win-probability section below main canvas with prev/next
  critical moment buttons, description label, and player legend;
  initWinProb converts win_prob array to WinProbPoint[] and wires up
  setCriticalMoments; graceful hide when win_prob absent

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 08:36:42 -04:00
..
public feat(evolver): complete Phase 7 LLM-driven evolution implementation 2026-04-08 16:38:48 -04:00
src feat(web): win probability sparkline + critical moment navigation 2026-04-21 08:36:42 -04:00
.gitignore Complete Phase 3: TypeScript Canvas replay viewer 2026-03-24 07:30:04 -04:00
app.html feat(evolver): complete Phase 7 LLM-driven evolution implementation 2026-04-08 16:38:48 -04:00
CLOUDFLARE_DEPLOYMENT.md feat(ci): add Cloudflare Pages deployment configuration 2026-04-08 16:53:09 -04:00
DEPLOYMENT_INSTRUCTIONS.md docs(web): add Cloudflare Pages deployment instructions 2026-04-08 17:21:59 -04:00
embed.html Add Phase 9 features: embeddable replay widget and playlists 2026-03-29 02:03:45 -04:00
index.html feat(evolver): complete Phase 7 LLM-driven evolution implementation 2026-04-08 16:38:48 -04:00
package-lock.json feat(web): add Agentation feedback overlay for UI annotation 2026-04-21 08:26:00 -04:00
package.json feat(web): add Agentation feedback overlay for UI annotation 2026-04-21 08:26:00 -04:00
pages.json Fix R2 custom domain in pages.json to match project spec 2026-03-26 22:10:37 -04:00
tsconfig.json Complete Phase 3: TypeScript Canvas replay viewer 2026-03-24 07:30:04 -04:00
vite.config.ts Add Phase 9 features: embeddable replay widget and playlists 2026-03-29 02:03:45 -04:00