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
Owner

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

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>
lq64 added 1 commit 2026-06-28 19:42:37 +02:00
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>
lq64 merged commit 76e0e3db78 into main 2026-06-28 19:43:27 +02:00
lq64 deleted branch fix-watch-page 2026-06-28 19:43:28 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NowChess/NowChess-Frontend#15