ai-code-battle/web/src
jedarden 223bfa3d86 feat(web): handle zone_death events in replay viewer
Per plan §3.7.1, the shrinking zone kills bots outside the safe radius.
The engine emits zone_death events (commit f0a0673), but the web viewer
only handled bot_died events, so zone kills weren't visualized correctly.

Changes:
- Add zone_death event collection in drawCombatEffects()
- Visual distinction: yellow-amber lightning bolt marker vs red X for combat
- Zone death animation: fast yellow particles + shockwave
- Screen reader transcript: "Bot X killed by zone"
- Separate summarizeZoneDeaths() for detailed transcripts

Closes: bf-4i44
2026-05-25 15:28:39 -04:00
..
components phase-8: win probability sparkline + critical moments in replay viewer 2026-05-08 14:17:26 -04:00
lib feat(web): implement accessibility.ts per plan §15.3 2026-05-25 07:37:31 -04:00
pages feat(web): add individual rivalry page route (plan §13.5) 2026-05-25 08:24:33 -04:00
styles feat(web): add rivalry platform integration (plan §13.5) 2026-05-25 07:21:27 -04:00
agentation-overlay.ts fix(api): rename /api/ui-feedback to /api/feedback per plan §13.6 2026-04-22 13:22:47 -04:00
api-types.ts feat(web): route R2 assets through Pages Function instead of r2.aicodebattle.com 2026-04-30 07:55:44 -04:00
app.ts feat(web): add individual rivalry page route (plan §13.5) 2026-05-25 08:24:33 -04:00
commentary.ts Add Phase 7-9 features: evolution dashboard, WASM sandbox, enhanced replay 2026-03-29 01:13:23 -04:00
embed.ts fix(web): fix replay viewer routing and embed fallback 2026-04-30 13:07:13 -04:00
engine.ts feat(web): add combat_deaths to MatchResult and display in sandbox 2026-05-24 18:42:38 -04:00
main.ts feat(replay): add fog-of-war perspective toggle and minimap per §7.3 2026-04-23 00:30:46 -04:00
og-tags.ts feat(web): route R2 assets through Pages Function instead of r2.aicodebattle.com 2026-04-30 07:55:44 -04:00
replay-commentary.ts feat(evolver): complete Phase 7 LLM-driven evolution implementation 2026-04-08 16:38:48 -04:00
replay-viewer.ts feat(web): handle zone_death events in replay viewer 2026-05-25 15:28:39 -04:00
router.ts fix(web): fix replay viewer routing and embed fallback 2026-04-30 13:07:13 -04:00
test-setup.ts fix(web): add matchMedia mock to prevent unhandled test errors 2026-05-25 00:18:32 -04:00
types.ts feat(web): add combat_deaths to MatchResult and display in sandbox 2026-05-24 18:42:38 -04:00
win-probability.ts Add Phase 7-9 features: evolution dashboard, WASM sandbox, enhanced replay 2026-03-29 01:13:23 -04:00