Phase 5: Team Placement
Goal: Assign players to teams with coaches. Admin draft board. Coaches see only their team.
Owner: Dev agent
Repo:
forgejo_admin/basketball-api, forgejo_admin/westside-appDepends on: phase-wkq-2-keycloak-auth
Scope
- Team model: name, division, age_group, coach_id FK. team_id on Player.
- 10 REST endpoints: CRUD, assignment, overview, coach
/mine - Admin
/admin/teams: draft board — team CRUD, player assignment - Coach page filtered to their team via
/api/teams/mine - Public
/teamsoverview - Integration bugs fixed: migration CrashLoopBackOff (PR #86), missing auth header (PR #19), secureCookie mismatch (PR #21), tenant_id contract (PR #88)
Deliverables
- PRs: #82, #86, #88 (basketball-api), #17, #19, #21 (westside-app). Issues: #81, #85, #87, #16, #18, #20 closed.
- 35 team tests, 216 total passing at merge time
Provenance
Phases 10a–c and 10d-1 from original tryout prep plan.