brackt/app/utils
Claude 5cea6fd9b5
Convert season templates from season-based to sport-based for evergreen use
Templates previously referenced specific sports seasons (e.g. "NFL 2026"), requiring
admins to create a new template every year. Templates now reference sports directly
(e.g. "NFL") and resolve to the currently-draftable season at league-creation time.

- Remove `year` field from season_templates table
- Replace `sportsSeasonId` FK with `sportId` FK in season_template_sports
- applySportsFromTemplate now resolves each sport to its active draftable season
- Admin template UI updated to manage sports (not specific seasons)
- sports-data-sync export/import updated to the new sport-centric format

https://claude.ai/code/session_01CoRLHERakMncbPs877izvw
2026-06-04 17:54:16 +00:00
..
__tests__ Add public sports overview page (#451) 2026-05-19 23:02:58 -07:00
sports-data-sync.server.ts Convert season templates from season-based to sport-based for evergreen use 2026-06-04 17:54:16 +00:00
team-names.ts Migrate auth from Clerk to BetterAuth (#354) 2026-04-29 10:03:50 -07:00