As a tournament admin, I want a Schedule tab to view round matchups #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#7 As a tournament admin, I want a Schedule tab to view round matchups
Original Acceptance Criteria
Expanded Scope (In Progress)
Additional Acceptance Criteria
Technical Plan (Completed)
Deferred (future work)
Related
Expanded Scope (working on this now)
Additional Acceptance Criteria
TournamentRoundandBracketMatchuprecords from existing teamsGET /api/tournaments/[id]/schedulereturns rounds with matchupsPOST /api/tournaments/[id]/schedulegenerates scheduleTechnical Plan
src/lib/schedule-generator.ts— pure round-robin algorithmsrc/app/api/tournaments/[id]/schedule/route.ts— GET/POST APIsrc/app/admin/tournaments/[id]/schedule/page.tsx— schedule viewsrc/components/ScheduleGenerator.tsx— client component for generate buttonsrc/app/admin/tournaments/[id]/page.tsxDeferred (future work)
PR #27 Implementation Update
This issue was partially implemented in PR #27 (
bb6be24).✅ What was completed:
Schedule Tab Infrastructure
/admin/tournaments/[id]/scheduleSchedule Generator Logic (
src/lib/schedule-generator.ts)API Endpoints
GET /api/tournaments/[id]/schedule- returns rounds with matchupsPOST /api/tournaments/[id]/schedule- generates scheduleDatabase Schema Updates
⚠️ Partial Testing:
📋 Remaining Work:
Next Steps:
The basic schedule infrastructure is in place. The remaining work is primarily:
The core round-robin generation works, but needs more testing and the UI needs refinement for production use.