david
912a1cd268
feat: add team generation API endpoints
...
Add API endpoints for team management:
- POST /api/tournaments/[id]/teams/generate: Generate teams based on configuration
- DELETE /api/tournaments/[id]/teams: Delete all teams
- GET /api/tournaments/[id]/teams: Fetch teams and configuration
Supports multiple generation strategies:
- Random pairing
- ELO-based pairing
- Even matches
- Minimize repeat partnerships
Refs #22
2026-04-26 16:44:47 -07:00
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
1f9f708f19
fix: handle empty playerId string in user edit API
2026-03-31 16:44:26 -07:00
david
a22c801f0c
feat: add match management admin panel with delete functionality
2026-03-31 16:16:13 -07:00
david
222fb0bdc3
feat: add delete player functionality to admin panel
2026-03-31 16:16:10 -07:00
david
2062188cb3
fix: update API routes to handle Next.js 15+ params as Promise
2026-03-31 10:44:39 -07:00
david
2ed86dafe9
feat: add user management panel for superusers
2026-03-31 10:24:35 -07:00
david
ef5d8404c2
feat: update recalculate-elo API to support multiple rating systems
2026-03-31 03:38:39 -07:00
david
af20a5d9ec
feat: update match API to calculate all rating systems
2026-03-31 03:38:19 -07:00
david
141ca7c93e
feat: add manual match entry form and match detail pages with diagram
2026-03-31 02:01:35 -07:00
david
e0d159ad8d
fix: remove logging from prisma client and fix users API routes
2026-03-31 01:15:57 -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
b0aaffbecf
chore: fix linting errors in tests and api routes
2026-03-30 22:58:33 -07:00
david
6f83080fca
feat: update POST /api/matches to handle eventId and tournament match stats
2026-03-30 22:58:25 -07:00
david
d6a53f8912
feat: add targetScore and allowTies fields to tournament API routes
2026-03-30 22:58:01 -07:00
david
5d1755f082
chore: add variant scoring fields, fix tie handling, and fix test files for normalizedName
2026-03-30 22:48:31 -07:00
david
fb04a6c3f1
fix: delete elo snapshots before deleting duplicate players during merge
2026-03-30 22:20:18 -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
fa7a422ce3
feat: add player merge functionality with automatic Elo recalculation
2026-03-30 22:04:31 -07:00
david
db782ff504
feat: add player name editing functionality in admin UI and fix site_admin access to admin dashboard
2026-03-30 21:58:30 -07:00
david
07804b5f8f
feat: add site_admin role, casual match support, and tournament deletion
2026-03-30 21:49:43 -07:00
david
0cf346f16a
feat: add user profile API endpoint
2026-03-30 21:32:00 -07:00
david
78b4c84eb8
feat: implement player deduplication in match upload
2026-03-30 21:30:58 -07:00
david
3a78f354ad
feat: add recalculateAllElo function for idempotent ELO recalculation
2026-03-30 21:28:09 -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
bcb967017f
feat: add Docker support with PostgreSQL and health check endpoint
2026-03-29 20:38:56 -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