strat-gameplay-webapp/frontend-sba/types
Cal Corum 38fb76c849 CLAUDE: Fix resolution phase control and add demo mode
Bug fix: During resolution phase (dice rolling), isMyTurn was false
for both players, preventing anyone from seeing the dice roller.
Now the batting team has control during resolution since they read
their card.

Demo mode: myTeamId now returns whichever team needs to act,
allowing single-player testing of both sides.

Changes:
- Add creator_discord_id to GameState (backend + frontend types)
- Add get_current_user_optional dependency for optional auth
- Update quick-create to capture creator's discord_id
- Fix isMyTurn to give batting team control during resolution
- Demo mode: myTeamId returns active team based on phase

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 23:47:21 -06:00
..
api.ts CLAUDE: Implement game creation and lineup submission workflow 2025-11-20 23:57:03 -06:00
CLAUDE.md CLAUDE: Fix critical game engine issues and refactor CLAUDE.md docs 2025-11-19 16:05:26 -06:00
game.ts CLAUDE: Fix resolution phase control and add demo mode 2026-01-13 23:47:21 -06:00
index.ts CLAUDE: Phase F1 Complete - SBa Frontend Foundation with Nuxt 4 Fixes 2025-11-10 15:42:29 -06:00
player.ts CLAUDE: Fix pitcher/catcher recovery and lineup data format 2025-11-19 16:30:05 -06:00
websocket.ts CLAUDE: Add LineupService and SBA API client for player data integration 2025-11-19 11:55:18 -06:00