Skip to content

Conversation

@tembo
Copy link
Contributor

@tembo tembo bot commented Sep 15, 2025

Description

Investigate and fix issues with the game page functionality to ensure proper rendering and interaction.

Changes

  • Fixed type mismatches in various components
  • Improved WebSocket connection handling
  • Added error handling and navigation for authentication
  • Resolved linting and TypeScript compilation errors
  • Improved dependency management in React hooks

Want me to make any changes? Add a review or comment with @tembo and i'll get back to work!

tembo.io

tembo bot and others added 3 commits September 15, 2025 17:09
- Fixed newGame action payload mismatch in messageHandler by adding missing fields (player1TimeLeft, player2TimeLeft, gameTurn)
- Improved useSocket hook to handle authentication properly with redirect to auth page when no token
- Fixed TypeScript compilation errors including dispatch typo and type casting issues
- Removed unused variables and parameters to pass linting
- Added proper error handling for WebSocket connections

The game page should now work correctly with proper state management and authentication flow.
@tembo tembo bot requested a review from LShaViR September 15, 2025 19:31
@tembo
Copy link
Contributor Author

tembo bot commented Sep 15, 2025

Requesting review from @LShaViR who has experience with the following files modified in this PR:

  • frontend/src/hooks/useSocket.ts
  • frontend/src/utils/chess/fenToBoard.ts
  • frontend/src/utils/chessboard/helper.ts
  • frontend/src/component/chessboard/Piece.tsx
  • frontend/src/component/chessboard/Pieces.tsx
  • frontend/src/features/game/component/GameBoard.tsx
  • frontend/src/features/game/utils/messageHandler.ts
  • frontend/src/features/game/component/leftGameSection.tsx

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.

2 participants