Commit Graph

70 Commits

Author SHA1 Message Date
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 9201b2c437 feat: add admin player management page 2026-03-30 21:51:26 -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 e061e1e9f7 feat: add tournaments participated and recent matches to player profile 2026-03-30 21:31:06 -07:00
david 78b4c84eb8 feat: implement player deduplication in match upload 2026-03-30 21:30:58 -07:00
david 6feada4fd8 refactor: use permission system instead of direct session checks in admin pages 2026-03-30 21:30:50 -07:00
david 5748e416be fix: remove duplicate tournament variable definitions in admin pages 2026-03-30 21:30:41 -07:00
david 3a78f354ad feat: add recalculateAllElo function for idempotent ELO recalculation 2026-03-30 21:28:09 -07:00
david 4cd744f10c fix: resolve Prisma Event type conflict with global DOM Event
- Renamed Event import to EventModel to avoid conflict with global DOM Event interface
- Updated type assertion to use EventModel[]
2026-03-29 21:26:16 -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 576dfda619 fix: resolve remaining TypeScript and linting errors
- Fixed unused variables in unit tests (elo.test.ts, permissions.test.ts)
- Fixed unused variables in E2E tests (account-acceptance.test.ts, elo-ratings.test.ts, epic1-auth-registration.test.ts, global.setup.ts)
- Fixed 'any' type usage in EditTournamentForm.test.tsx and auth-simple.test.ts
- Fixed unescaped quotes and apostrophes in React components
- Fixed TypeScript type errors in Navigation.tsx, test-api/page.tsx, and matches/upload/page.tsx
- Fixed missing useEffect dependency in tournaments/[id]/entry/page.tsx
- Updated eslint config to exclude test-api directory
- All tests now pass linting and build successfully
2026-03-29 21:20:20 -07:00
david bc99dee421 fix: add type annotation to recentTournaments and fix ESLint configuration 2026-03-29 21:02:56 -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