brackt/app/models
Chris Parsons 879c09a38d
fix(tests): update surface-elo tests for canonical mirror
getSurfaceEloMap now joins through season_participants and returns
rows keyed by seasonParticipantId (was participantId).

batchUpsertSurfaceElos now performs a second db.select to resolve
canonical links before mirroring writes; tests mock the lookup
explicitly and exercise both the "no canonical link" short-circuit
path and the "mirror to canonical" path.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 22:42:31 +00:00
..
__tests__ fix(tests): update surface-elo tests for canonical mirror 2026-05-01 22:42:31 +00:00
audit-log.ts Migrate auth from Clerk to BetterAuth (#354) 2026-04-29 10:03:50 -07:00
autodraft-settings.ts Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00
canonical-surface-elo.ts feat(models): add canonical tournament, participant, result, surface-elo models 2026-05-01 20:16:53 +00:00
commissioner.ts Migrate authentication from Clerk to BetterAuth (#324) 2026-04-24 22:00:49 -07:00
cs2-major-stage.ts refactor(models): update model layer to use renamed schema exports 2026-05-01 06:37:53 +00:00
draft-pick.ts refactor(models): update model layer to use renamed schema exports 2026-05-01 06:37:53 +00:00
draft-queue.ts feat: proactively prune ineligible queue items after each pick (#59) 2026-03-02 22:07:22 -08:00
draft-slot.ts Simplify team breakdown page layout and fix code quality issues (#155) 2026-03-17 09:20:41 -07:00
draft-timer.ts Fix draft timer creation for teams without existing timers (#26) 2026-02-22 17:27:16 -08:00
draft-utils.ts refactor(models): update model layer to use renamed schema exports 2026-05-01 06:37:53 +00:00
ev-snapshot.ts User/chris/ev f1 framework (#93) 2026-03-09 15:34:31 -07:00
event-result.ts refactor(models): update model layer to use renamed schema exports 2026-05-01 06:37:53 +00:00
golf-skills.ts refactor(models): update model layer to use renamed schema exports 2026-05-01 06:37:53 +00:00
group-stage-match.ts refactor(models): update model layer to use renamed schema exports 2026-05-01 06:37:53 +00:00
index.ts feat(models): add canonical tournament, participant, result, surface-elo models 2026-05-01 20:16:53 +00:00
league.ts Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
participant-expected-value.ts refactor(models): update model layer to use renamed schema exports 2026-05-01 06:37:53 +00:00
participant-result.ts refactor(models): update model layer to use renamed schema exports 2026-05-01 06:37:53 +00:00
participant-season-result.ts Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
participant.ts feat(models): add canonical tournament, participant, result, surface-elo models 2026-05-01 20:16:53 +00:00
pending-standings-mappings.ts Add regular season standings for NBA/NHL (fixes #89) (#192) 2026-03-21 00:12:01 -07:00
playoff-match-game.ts Add playoff match game scheduling and odds management (#135) 2026-03-11 14:17:43 -07:00
playoff-match-odds.ts Add playoff match game scheduling and odds management (#135) 2026-03-11 14:17:43 -07:00
playoff-match.ts Fix bracket scoring logic to prefer template over DB defaults (#298) 2026-04-15 11:27:00 -07:00
qualifying-points.ts refactor(models): update model layer to use renamed schema exports 2026-05-01 06:37:53 +00:00
regular-season-standings.ts Add WNBA playoff simulator with SRS-based Elo ratings, fixes #125 (#231) 2026-03-26 00:34:51 -07:00
scoring-calculator.ts refactor(models): update model layer to use renamed schema exports 2026-05-01 06:37:53 +00:00
scoring-event.ts feat: auto-provision canonical tournaments and participants on create 2026-05-01 22:32:16 +00:00
scoring-rules.ts Add FIFA World Cup 2026 support with group stage display and Monte Carlo simulator (#242) 2026-03-29 10:27:47 -07:00
season-participant.ts feat: auto-provision canonical tournaments and participants on create 2026-05-01 22:32:16 +00:00
season-sport.ts feat: Refactor database connection handling in draft-related functions for improved flexibility 2025-10-26 20:35:55 -07:00
season-template-sport.ts refactor: remove isRequired field from season sports and templates 2025-10-13 15:00:59 -07:00
season-template.ts Improve admin dashboard stats and fix scoring event bugs (#230) 2026-03-25 20:46:54 -07:00
season.ts Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00
sport.ts Improve admin dashboard stats and fix scoring event bugs (#230) 2026-03-25 20:46:54 -07:00
sports-season.ts refactor(models): update model layer to use renamed schema exports 2026-05-01 06:37:53 +00:00
standings.ts Add Storybook stories for new components from staged changes (#321) 2026-04-23 22:09:25 -07:00
surface-elo.ts feat(surface-elo): mirror batchUpsert writes to canonical table 2026-05-01 22:23:44 +00:00
team-score-events.ts refactor(models): update model layer to use renamed schema exports 2026-05-01 06:37:53 +00:00
team.ts Auto-name teams on claim and harden owner-assignment logic (#163) 2026-03-18 00:53:40 -07:00
tournament-group.ts Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
tournament-result.ts feat(models): add canonical tournament, participant, result, surface-elo models 2026-05-01 20:16:53 +00:00
tournament.ts feat(admin): canonical tournament list + result entry routes 2026-05-01 22:03:39 +00:00
user.ts Add overnight pause for draft timers (#335) 2026-04-26 22:31:52 -07:00
watchlist.ts Mobile draft room improvements: watchlist, collapsible picks feed, autodraft controls (#355) 2026-04-29 11:49:26 -07:00