Commit Graph

8 Commits

Author SHA1 Message Date
david df4d6fff7c feat: add schedule API endpoints
GET returns rounds with matchups for a tournament.
POST generates a round-robin schedule from registered teams.
DELETE removes all rounds and matchups.

All endpoints enforce tournament admin permissions via canManageTournament.
2026-04-26 16:44:47 -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 a1fb0e25a7 fix: validate ID parsing in API routes and player pages for Prisma v7 2026-03-31 00:21:02 -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
david c9415d490e fix: improve error handling and type safety
- Replaced 'any' types with proper TypeScript types
- Improved error handling with instanceof checks
- Removed unused imports (calculateExpectedTeamScore)
- Updated error messages to be more descriptive
- Removed deprecated eslint.config.mjs file
2026-03-29 21:20:40 -07:00
david 54fd6abb5e feat: add tournament creation wizard with participant management and bulk game entry 2026-03-29 19:58:15 -07:00
david 123df671f5 nextjs-rewrite (#5)
Reviewed-on: #5
Co-authored-by: David Gwilliam <dhgwilliam@gmail.com>
Co-committed-by: David Gwilliam <dhgwilliam@gmail.com>
2026-03-30 02:30:13 +00:00