Commit Graph

5 Commits

Author SHA1 Message Date
1b3d43cfea perf: Optimize SSE communication between browser and container
All checks were successful
build-and-deploy / deploy (push) Successful in 9s
build-and-deploy / build (push) Successful in 8s
build-and-deploy / filter (push) Successful in 2s
- Add anti-buffering headers (X-Accel-Buffering, Content-Encoding)
- Reduce polling interval from 500ms to 250ms for faster updates
- Add heartbeat mechanism to keep connection alive
- Implement auto-reconnection on client side
- Disable Express response buffering for SSE endpoints
- Skip empty heartbeat messages on client
- Improve error handling and logging
2025-07-05 17:02:19 -06:00
7de915166f debug: Add detailed logging for SSE connection debugging
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 10s
- Add timing logs for fetch requests to game server
- Track SSE connection count and lifecycle
- Add client-side logging for received messages
- Log fetch response times and errors
- Monitor connection establishment and closure
2025-07-05 16:55:30 -06:00
5b6b05f840 fix: Configure admin service URLs dynamically based on environment
All checks were successful
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 11s
build-and-deploy / filter (push) Successful in 2s
- Update adminService to fetch server URL from /api/config endpoint
- Initialize server URL before making any API calls
- Make connect() method async to handle URL initialization
- Update Vue component to await adminService.connect()
- Resolves hardcoded localhost URLs in production environment
2025-07-05 16:51:11 -06:00
f555f54d10 feat: Add auto-generated type files to repository for Docker builds
Some checks failed
build-and-deploy / filter (push) Successful in 3s
build-and-deploy / build (push) Failing after 8s
build-and-deploy / deploy (push) Has been skipped
- Force add generated Player.ts, GameState.ts, TokenInventory.ts, TradeOffer.ts
- These files were gitignored but are needed for Docker builds
- Types are available in containers without requiring schema-codegen
2025-07-05 15:11:31 -06:00
eb6d19906b feat: Complete Admin Dashboard with game control and player management (v0.0.8-alpha)
## Major Features Added
  - **🎛️ Complete Admin Dashboard**: Real-time player monitoring with detailed stats
  - **👥 Player Management**: Individual and mass player kicking with proper notifications
  - **🎯 Global Round Control**: Advance/retreat rounds across all rooms simultaneously
  - **⏸️ Game Control**: Pause/resume games from admin interface
  - **🔔 Client Notifications**: Players receive alerts for kicks and round changes

  ## Technical Improvements
  - **🏗️ Official Colyseus API**: Replaced global variable hacks with `matchMaker.query()` and `matchMaker.remoteRoomCall()`
  - **📡 Proper Client Communication**: Implemented broadcast messages for `adminKicked`, `gamePaused`, `gameResumed`, `roundChanged`
  - **🎮 Enhanced GameRoom Methods**: Added `pauseGame()`, `resumeGame()`, `advanceRound()`, `previousRound()`, `_forceClientDisconnect()`, `_forceDisconnectAllClients()`, `getInspectData()`

  ## UI/UX Enhancements
  - **📊 Detailed Player Info**: Name, room, role, producer type, and current tokens (🦃🌽)
  - **🚫 Proper Kick Notifications**: Clients auto-redirect to home with clear messaging
  - **🎨 Improved Admin Interface**: Better organized controls for non-technical commentators
  - **📱 Responsive Design**: Works well on different screen sizes

  ## Bug Fixes
  - **🔧 Fixed Admin Service URLs**: Now correctly calls Colyseus server (port 2567) instead of admin server (port 3001)
  - ** Mass Kick Notifications**: All players receive proper notifications when expelled en masse
  - **🔄 Auto-redirect**: Kicked clients properly return to home screen

  ## Architecture
  - **🏗️ Clean API Design**: All admin endpoints use official Colyseus patterns
  - **🔒 Type Safety**: Maintained TypeScript sync between server and clients
  - **📦 Microservices Ready**: Separated concerns between game server and admin interface

  **Breaking Changes:** None - fully backward compatible
  **Migration:** No migration needed
2025-07-04 17:43:28 -06:00