fix: show actual bot names on watch page instead of Black/White fallbacks #15

Merged
lq64 merged 1 commits from fix-watch-page into main 2026-06-28 19:43:27 +02:00

1 Commits

Author SHA1 Message Date
LQ63 ff484ef693 fix: show actual bot names on watch page instead of Black/White fallbacks
The gameState stream event does not carry player names, so snapshot.white/black
were always undefined and the UI fell back to the literal strings "Black" and
"White". Fix by fetching the full game object (GET /api/tournament/{id}/game/{gameId})
on page load, which includes BotRef with real names, and storing them in
dedicated whiteName/blackName fields.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 19:11:29 +02:00