Skip to content

Live game viewer: update outcome and player online status during polling#589

Draft
benckx with Copilot wants to merge 4 commits into
masterfrom
copilot/update-live-game-viewer-outcome
Draft

Live game viewer: update outcome and player online status during polling#589
benckx with Copilot wants to merge 4 commits into
masterfrom
copilot/update-live-game-viewer-outcome

Conversation

Copilot AI commented May 13, 2026

Copy link
Copy Markdown
Contributor
  • Extend LatestGamesUpdateResponse.Entry Kotlin DTO with outcome, isRedOnline, isBlackOnline fields
  • Extend fetchCurrentStatusAndFen in PlayerVsPlayerGameDaoService to also fetch GAME.OUTCOME, GAME.INVITER, GAME.INVITEE, GAME.INVITER_COLOR
  • Extend fetchCurrentStatusAndFen in PlayerVsBotGameDaoService to also fetch BOT_GAME.OUTCOME, BOT_GAME.USER_ID, BOT_GAME.USER_COLOR
  • Update fetchLatestGamesUpdate in GameDataService to compute and include outcome and online status
  • Update LobbyClient.fetchLatestGamesUpdate (JS) to include outcome, isRedOnline, isBlackOnline in update objects
  • Update GameThumb.refresh() (JS) to update the outcome (blue star) and online status indicators
  • Merge master and resolve conflict in GameDataService (switch to userService.areOnline() pattern consistent with master)

Copilot AI and others added 2 commits May 13, 2026 07:18
…online status

- Extend LatestGamesUpdateResponse.Entry with outcome, isRedOnline, isBlackOnline
- Fetch OUTCOME, INVITER, INVITEE, INVITER_COLOR for PvP games in fetchCurrentStatusAndFen
- Fetch OUTCOME, USER_ID, USER_COLOR for PvB games in fetchCurrentStatusAndFen
- Compute online status in fetchLatestGamesUpdate service method
- Update LobbyClient.fetchLatestGamesUpdate JS to pass new fields
- Update GameThumb.refresh() to update outcome (blue star) and player online indicators

Agent-Logs-Url: https://github.com/benckx/elephantchess/sessions/e74c01a0-a636-4a7a-bbb9-b5ca38fdf6cd

Co-authored-by: benckx <8626080+benckx@users.noreply.github.com>
Copilot AI changed the title [WIP] Update live game viewer to show outcome and player status Live game viewer: update outcome and player online status during polling May 13, 2026
Copilot finished work on behalf of benckx May 13, 2026 07:21
Copilot AI requested a review from benckx May 13, 2026 07:21
@benckx

benckx commented May 20, 2026

Copy link
Copy Markdown
Owner

@copilot resolve the merge conflicts in this pull request

Resolve conflict in GameDataService: switch fetchLatestGamesUpdate from
userDaoService.fetchLastOnline() to userService.areOnline() to align
with the approach used in the rest of the service after master was
updated. Also removes the now-unused ONLINE_STATUS_THRESHOLD_SECONDS
constant.

Agent-Logs-Url: https://github.com/benckx/elephantchess/sessions/0727fae2-2a15-47f7-9e69-77289df8fb37

Co-authored-by: benckx <8626080+benckx@users.noreply.github.com>

Copilot AI commented May 20, 2026

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

Merged master (commit 4d05aa7). The only real conflict was in GameDataService — master had refactored online-status lookups from userDaoService.fetchLastOnline() + timestamp comparison to userService.areOnline(). The fetchLatestGamesUpdate method has been updated to use the same userService.areOnline() pattern, and the now-unused ONLINE_STATUS_THRESHOLD_SECONDS constant was removed.

Copilot finished work on behalf of benckx May 20, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

live game viewer should also update the outcome (the blue star) and whether players are still online

2 participants