ai-code-battle/web/src/components
jedarden c66dc893fa phase-8: win probability sparkline + critical moments in replay viewer
The win probability sparkline component is now fully integrated:

1. Worker (engine/winprob.go): Monte Carlo rollout computes per-turn win
   probabilities, detectCriticalMoments identifies turns where win prob
   shifts >15% with template-based descriptions.

2. Replay storage (engine/replay.go): win_prob and critical_moments arrays
   stored in replay JSON, written by match worker after each match.

3. Web component (web/src/components/win-prob.ts): WinProbSparkline class
   renders the graph with critical moment markers (dashed vertical lines),
   click-to-scrub interaction, and current turn indicator.

4. Replay page integration (web/src/pages/replay.ts): initWinProb() sets up
   the sparkline with player colors, legend, prev/next critical moment
   navigation buttons, and keyboard shortcuts ([/]).

The sparkline displays one line per player with area fill gradient,
percentage labels (0%, 50%, 100%), critical moment diamonds with
delta labels, and updates in real-time as the replay plays.
2026-05-08 14:17:26 -04:00
..
annotation.ts fix: remove unused imports in evolver, misc pre-dispatch changes 2026-04-22 18:32:46 -04:00
bot-card.ts phase-9: implement bot profile cards with Canvas-rendered PNG and OG tags 2026-05-08 11:30:07 -04:00
director.ts feat(replay): implement Director Mode adaptive auto-speed playback per §16.10 2026-04-21 17:57:10 -04:00
event-timeline.ts phase-9: implement match event timeline with computed events 2026-05-08 11:39:04 -04:00
pip-registry.ts feat(web): add ambient activity awareness per §16.18 2026-04-22 17:06:02 -04:00
pip.ts feat(web): add ambient activity awareness per §16.18 2026-04-22 17:06:02 -04:00
playlist-carousel.ts feat(web): route R2 assets through Pages Function instead of r2.aicodebattle.com 2026-04-30 07:55:44 -04:00
skeleton.ts feat(web): performance trifecta — preload-on-hover, skeleton screens, back-cache per §16.14 2026-04-22 13:28:43 -04:00
theater.ts feat(web): add theater component and playlist carousel 2026-04-22 14:31:08 -04:00
win-prob.ts phase-8: win probability sparkline + critical moments in replay viewer 2026-05-08 14:17:26 -04:00