ai-code-battle/web/src
jedarden 64aa6aef40 test(web): add tests for combat_death attack arrow rendering
Plan §5055: Attack event arrows from killers to victim position.

Added 3 tests to verify:
1. Arrows are drawn from each killer to victim in combat_death events
2. Multiple arrows are drawn for multiple killers (2v1 situations)
3. Arrow colors are set based on attacker player color

The tests mock the canvas context and verify that the appropriate
drawing methods (moveTo, lineTo, stroke, fill) are called when
rendering turns with combat_death events.

Closes: bf-4o9fp
2026-05-26 18:39:12 -04:00
..
components fix(web): serve replays from same-origin /data/ static assets, not R2 2026-05-26 16:41:30 -04:00
lib fix(web): serve replays from same-origin /data/ static assets, not R2 2026-05-26 16:41:30 -04:00
pages fix(web): serve replays from same-origin /data/ static assets, not R2 2026-05-26 16:41:30 -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 fix(web): serve replays from same-origin /data/ static assets, not R2 2026-05-26 16:41:30 -04:00
app.ts feat(web): add maps browsing page per plan §14.6 2026-05-26 16:23:59 -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): serve replays from same-origin /data/ static assets, not R2 2026-05-26 16:41:30 -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 fix(web): serve replays from same-origin /data/ static assets, not R2 2026-05-26 16:41:30 -04:00
replay-commentary.ts feat(evolver): complete Phase 7 LLM-driven evolution implementation 2026-04-08 16:38:48 -04:00
replay-viewer.test.ts test(web): add tests for combat_death attack arrow rendering 2026-05-26 18:39:12 -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