strat-gameplay-webapp/backend/alembic/versions
Cal Corum e058bc4a6c CLAUDE: RosterLink refactor for bench players with cached player data
- Add player_positions JSONB column to roster_links (migration 006)
- Add player_data JSONB column to cache name/image/headshot (migration 007)
- Add is_pitcher/is_batter computed properties for two-way player support
- Update lineup submission to populate RosterLink with all players + positions
- Update get_bench handler to use cached data (no runtime API calls)
- Add BenchPlayer type to frontend with proper filtering
- Add new Lineup components: InlineSubstitutionPanel, LineupSlotRow,
  PositionSelector, UnifiedLineupTab
- Add integration tests for get_bench_players

Bench players now load instantly without API dependency, and properly
filter batters vs pitchers (including CP closer position).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 22:15:12 -06:00
..
62bd3195c64c_add_schedule_game_id_to_games.py CLAUDE: Add schedule_game_id linking for webapp games to external schedules 2026-01-14 23:55:53 -06:00
001_initial_schema.py CLAUDE: Add Alembic migrations and database session injection 2025-11-28 12:09:09 -06:00
004_create_stat_materialized_views.py CLAUDE: Add Alembic migrations and database session injection 2025-11-28 12:09:09 -06:00
005_add_composite_indexes.py CLAUDE: Add Alembic migrations and database session injection 2025-11-28 12:09:09 -06:00
006_add_player_positions_to_roster_links.py CLAUDE: RosterLink refactor for bench players with cached player data 2026-01-17 22:15:12 -06:00
007_add_player_data_to_roster_links.py CLAUDE: RosterLink refactor for bench players with cached player data 2026-01-17 22:15:12 -06:00