Commit Graph

5 Commits

Author SHA1 Message Date
david 4d685558aa fix: support partial updates in tournament PUT endpoint
- Change PUT endpoint to only include fields present in the request
- Add support for team configuration fields (teamDurability, partnerRotation, allowByes)
- Fix contradictory test that expected resetting allowTies when not provided
- When a field is not in the request, it is preserved (not modified)

Fixes issue where Save Configuration button would fail with
'Tournament name is required' error.
2026-04-03 19:56:58 -07:00
david c3b0466092 feat: add tournament type and team support to tournament APIs
Update tournament APIs to support:
- tournamentType field (individual/team)
- Team creation for team tournaments
- Even number validation for team tournaments
- Automatic pairing of consecutive players into teams
2026-04-03 19:27:31 -07:00
david b8d90897a4 fix: await params in Next.js 16 routes and pages for TypeScript compatibility 2026-03-31 00:50:56 -07:00
david d6a53f8912 feat: add targetScore and allowTies fields to tournament API routes 2026-03-30 22:58:01 -07:00
david a7d94e9fee fix: add tournament update API endpoint and consolidate delete into main tournaments API 2026-03-30 22:17:44 -07:00