strat-gameplay-webapp/docker-compose.dev.yml
Cal Corum e0c12467b0 CLAUDE: Improve UX with single-click OAuth, enhanced games list, and layout fix
Frontend UX improvements:
- Single-click Discord OAuth from home page (no intermediate /auth page)
- Auto-redirect authenticated users from home to /games
- Fixed Nuxt layout system - app.vue now wraps NuxtPage with NuxtLayout
- Games page now has proper card container with shadow/border styling
- Layout header includes working logout with API cookie clearing

Games list enhancements:
- Display team names (lname) instead of just team IDs
- Show current score for each team
- Show inning indicator (Top/Bot X) for active games
- Responsive header with wrapped buttons on mobile

Backend improvements:
- Added team caching to SbaApiClient (1-hour TTL)
- Enhanced GameListItem with team names, scores, inning data
- Games endpoint now enriches response with SBA API team data

Docker optimizations:
- Optimized Dockerfile using --chown flag on COPY (faster than chown -R)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 16:14:00 -06:00

27 lines
628 B
YAML

# Development overrides - hot-reload enabled
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up
services:
backend:
build:
target: development
environment:
- APP_ENV=development
- DEBUG=true
volumes:
# Mount source code for hot-reload (uvicorn --reload)
- ./backend/app:/app/app
- ./backend/logs:/app/logs
frontend-sba:
build:
target: development
environment:
- NODE_ENV=development
volumes:
# Mount source for Nuxt hot-reload
- ./frontend-sba:/app
- /app/node_modules
- /app/.nuxt
- /app/.output