Skip to content

Feat/auto round transition#9

Open
Bot-Rakshit wants to merge 70 commits intoChess-broadcasting-tools:mainfrom
Bot-Rakshit:feat/auto-round-transition
Open

Feat/auto round transition#9
Bot-Rakshit wants to merge 70 commits intoChess-broadcasting-tools:mainfrom
Bot-Rakshit:feat/auto-round-transition

Conversation

@Bot-Rakshit
Copy link
Collaborator

No description provided.

Bot-Rakshit and others added 30 commits September 22, 2024 15:06
feat: add move number and turn indicator
fix: error when there are no clocks
change backend route
update api endpoint
free link
- When viewing a broadcast via a unique URL, the application now periodically checks if the current round has ended.
- If the current round has ended and a subsequent round for the same tournament is ongoing, the application automatically transitions to the new round.
- This includes updating the PGN stream, clearing old game data, and updating the browser URL to reflect the new round ID.
- The tournament ID is now included in the unique URL's state to facilitate finding the correct tournament's subsequent rounds.
- Previously, when an automatic round transition occurred, the eval bars would disappear as `links` were cleared but not repopulated for the new round.
- This commit introduces a fix where, after a successful automatic round transition and when new game data becomes available for the new round, all available games are automatically added to the `links` state, causing their eval bars to be displayed.
- This is achieved using an `isTransitioningRound` state flag and a `useEffect` hook that monitors `availableGames` to trigger the population of `links`.
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.

3 participants