brackt/app
Chris Parsons 97dbd135d1 Remove sports_season_tournaments junction table — derive from scoring_events
The junction table was a redundant second source of truth: syncTournamentResults
already fans out by querying scoring_events.tournamentId directly, so the table
only served the admin UI and could drift out of sync (causing orphaned events).

- Drop sports_season_tournaments table and all link/unlink admin actions
- Add getTournamentsBySportsSeason / getSportsSeasonsByTournament helpers that
  derive the same information from scoring_events.tournamentId
- Add "Add Existing Tournament" dropdown to the events admin page (qualifying_points
  seasons only) — selecting a tournament creates the scoring event in one step
- Fix clone: scoring events now carry tournamentId, fixing a latent check-constraint
  violation when cloning qualifying_points seasons
- Tournament admin page "Linked Sports Seasons" is now a read-only derived view

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 22:00:40 -07:00
..
components Canonical tournament layer: 2026-05-01 21:04:48 -07:00
contexts feat: implement middleware and context provider for Express integration 2025-10-11 20:56:00 -07:00
hooks Show "Syncing Draft State..." overlay during draft reconnection (#361) 2026-04-30 20:33:00 -07:00
lib Canonical tournament layer: 2026-05-01 21:04:48 -07:00
models Remove sports_season_tournaments junction table — derive from scoring_events 2026-05-02 22:00:40 -07:00
routes Remove sports_season_tournaments junction table — derive from scoring_events 2026-05-02 22:00:40 -07:00
services Add sports season ↔ tournament linking with admin UI (#372) 2026-05-02 12:45:53 -07:00
test Migrate auth from Clerk to BetterAuth (#354) 2026-04-29 10:03:50 -07:00
types Redesign standings page with sortable table, 7-day change, and chart repositioned (#205) 2026-03-22 11:05:13 -07:00
utils Canonical tournament layer: schema + backfill (1/2) (#365) 2026-05-01 20:13:18 -07:00
welcome Redesign to dark-mode-only with navy palette and accent colors (#13) 2026-02-20 19:26:11 -08:00
app.css Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00
entry.client.tsx Filter unnecessary sentry css and js errors. 2026-03-15 10:24:57 -07:00
entry.server.tsx Replace console.* with structured logger, fix no-inferrable-types (closes #98) (#199) 2026-03-21 13:41:39 -07:00
root.tsx Fix admin navbar link: use isUserAdmin DB call instead of session.user.isAdmin 2026-04-24 23:10:03 -07:00
routes.ts Canonical tournament layer: 2026-05-01 21:04:48 -07:00