As a tournament admin, I want to configure team creation options for round robin tournaments #22

Closed
opened 2026-04-04 02:13:28 +00:00 by david · 1 comment
Owner

Requirements

Team Configuration Options

For round robin tournaments, the teams tab should offer configuration options:

  1. Team Durability

    • Permanent Teams: Teams are fixed for the entire tournament (current behavior)
    • Variable Teams: Teams are generated per round based on configuration
  2. Variable Team Options (when teams are not permanent)

    • Partner Rotation: Minimize repeat partnerships
    • Maximize Even Matches: Balance skill levels across matches
    • Allow Byes: Handle odd number of players
  3. Team Generation Algorithm

    • Input: List of registered players
    • Output: Teams for each round
    • Constraints: Respect configuration options

Acceptance Criteria

  • Teams tab shows team configuration options
  • Can select team durability type (permanent vs variable)
  • Variable teams show partner rotation options
  • Can generate teams from registered participants
  • Schedule generation works with generated teams
  • UI clearly indicates which configuration is active

Technical Details

  • Add fields to Event model for team configuration
  • Create team generation API endpoint
  • Update teams tab UI with configuration options
  • Integrate with schedule generation

Related

  • Depends on Issue #7 (Schedule tab)
  • Part of tournament management features
## Requirements ### Team Configuration Options For round robin tournaments, the teams tab should offer configuration options: 1. **Team Durability** - Permanent Teams: Teams are fixed for the entire tournament (current behavior) - Variable Teams: Teams are generated per round based on configuration 2. **Variable Team Options** (when teams are not permanent) - Partner Rotation: Minimize repeat partnerships - Maximize Even Matches: Balance skill levels across matches - Allow Byes: Handle odd number of players 3. **Team Generation Algorithm** - Input: List of registered players - Output: Teams for each round - Constraints: Respect configuration options ### Acceptance Criteria - [ ] Teams tab shows team configuration options - [ ] Can select team durability type (permanent vs variable) - [ ] Variable teams show partner rotation options - [ ] Can generate teams from registered participants - [ ] Schedule generation works with generated teams - [ ] UI clearly indicates which configuration is active ### Technical Details - Add fields to Event model for team configuration - Create team generation API endpoint - Update teams tab UI with configuration options - Integrate with schedule generation ### Related - Depends on Issue #7 (Schedule tab) - Part of tournament management features
david added the featureepic:tournament-managementui labels 2026-04-04 02:13:28 +00:00
david closed this issue 2026-04-27 02:56:48 +00:00
Author
Owner

Closed - Fully Implemented

Team configuration options for round robin tournaments are fully implemented:

  • src/app/admin/tournaments/new/page.tsx - Tournament creation form with:
    • teamDurability options: permanent, variable, per_round
    • partnerRotation options: none, minimize_repeat, maximize_even, elo_based
    • Conditional UI that shows partner rotation when variable/per_round selected
  • prisma/schema.prisma - Tournament model has teamDurability, partnerRotation, teamConfiguration fields
  • src/lib/team-generator.ts - Team generation logic supporting all configurations

Merged via PR #27 (bb6be24).

✅ **Closed - Fully Implemented** Team configuration options for round robin tournaments are fully implemented: - `src/app/admin/tournaments/new/page.tsx` - Tournament creation form with: - `teamDurability` options: permanent, variable, per_round - `partnerRotation` options: none, minimize_repeat, maximize_even, elo_based - Conditional UI that shows partner rotation when variable/per_round selected - `prisma/schema.prisma` - Tournament model has `teamDurability`, `partnerRotation`, `teamConfiguration` fields - `src/lib/team-generator.ts` - Team generation logic supporting all configurations Merged via PR #27 (bb6be24).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: david/euchre_camp#22