feat: Implement game restart, battlefield styling with art crops and tapped stacks, and initial draw fixes.
Some checks failed
Build and Deploy / build (push) Failing after 1m10s

This commit is contained in:
2025-12-18 20:26:42 +01:00
parent ca7b5bf7fa
commit bc5eda5e2a
35 changed files with 1337 additions and 634 deletions

View File

@@ -0,0 +1,14 @@
# Dev Environment Reliability Fixes
**Status:** Completed
**Date:** 2025-12-18
**Description:**
Addressed an issue where game actions (such as "Restart Game") would fail after a server restart (e.g., via `make dev` hot-reloading) because the client socket would reconnect without re-identifying the player to the server.
**Technical Changes:**
- **Frontend (`LobbyManager.tsx`)**: Implemented an automated `rejoin_room` emission upon socket `connect` event if an active session exists. This ensures the server's ephemeral socket-to-player mapping is restored immediately after a reconnection.
- **Backend (`GameManager.ts`)**: Added comprehensive logging to `handleAction` to assist in future debugging of failed actions.
- **Backend (`GameManager.ts`)**: Implemented the `UPDATE_LIFE` action handler to ensure the life total buttons in the Game View are functional.
**Result:**
The development workflow is now more robust. Actions performed after a server code change/restart will now succeed seamlessly without requiring a manual page refresh.