brackt/app/lib
Chris Parsons 81d063faa1
All checks were successful
🚀 Deploy / 🧪 Test (pull_request) Successful in 3m13s
🚀 Deploy / ʦ🔍 Typecheck & Lint (pull_request) Successful in 1m23s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
Auto-populate & auto-score tennis Grand Slam brackets from Wikipedia
Add a per-event "Sync Draw" that pulls a tennis major's full 128-player
draw from its Wikipedia article, auto-creates/links participants (and
propagates them to every linked sibling season), builds the bracket, and
runs the qualifying-points scorer. Re-running advances the bracket and
scoring as matches complete.

Core
- match-sync: WikipediaTennisAdapter + wikitext bracket parser, DrawSync
  DTOs, syncTennisDraw orchestrator, pure draw->rows mapping
- playoff-match: populateBracketFromDraw (idempotent upsert on externalMatchId)
- scoring_events.externalSourceKey column (Wikipedia article; migration 0123)
- admin bracket "Sync Draw" card (accepts URL or title) + cron pass

Scoring fix
- deriveBracketQualifyingStates only floors players who have reached the
  scoring stage; for deep brackets (tennis_128) early-round losers earn 0 QP
  instead of a phantom 9th-place floor. CS2/simple_8 behavior preserved
  (gated on rounds[0].isScoring). Re-sync reconciles stale QP rows in a
  transaction.

Matching & parsing
- accent-folding in normalizeTeamName; strip Wikipedia "(tennis)"
  disambiguators; treat Bye/TBD/Qualifier as TBD; extract wikilink before
  template-stripping so {{nowrap}}-wrapped players parse

Admin UX
- dry-run preview (matched / will-create / possible duplicates / unfilled
  slots) with inline "rename existing" / "create as new" resolution via
  fetcher (no full reload)

Tests: parser vs real 2025 Wimbledon fixture, draw mapping, tennis_128
scoring, accent/disambiguator/nowrap parsing, URL parsing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 21:48:00 -07:00
..
__tests__ Auto-populate & auto-score tennis Grand Slam brackets from Wikipedia 2026-06-26 21:48:00 -07:00
audit-log-display.ts Add Brackt as a league-private meta-sport (#200) (#377) 2026-05-04 20:31:44 -07:00
auth-client.ts Migrate authentication from Clerk to BetterAuth (#324) 2026-04-24 22:00:49 -07:00
auth.server.ts Add branded dark-themed HTML email template (#402) 2026-05-10 11:18:57 -07:00
auth.ts Migrate authentication from Clerk to BetterAuth (#324) 2026-04-24 22:00:49 -07:00
avatar-colors.ts
avatar-data.ts Add Cloudinary-backed avatar system (#385) 2026-05-06 14:47:37 -07:00
bracket-templates.ts Unify majors: score once, fan out across windows + tennis bracket EV 2026-06-22 20:32:22 -07:00
brand.ts
cloudinary-url.ts Add Cloudinary-backed avatar system (#385) 2026-05-06 14:47:37 -07:00
cloudinary.server.ts Add Cloudinary sports icon uploads (#393) 2026-05-07 16:07:34 -07:00
color-hash.ts
corona-states.ts
cron-auth.ts Debug sync-and-simulate cron job: surface curl output and log auth failures 2026-06-10 16:50:30 +00:00
date-utils.ts claude/practical-newton-4v041g (#98) 2026-06-18 02:33:05 +00:00
draft-eligibility.ts Show why a participant is ineligible to draft (#378) 2026-05-04 21:54:14 -07:00
draft-order.ts Fix draft order initialization for teams added mid-season (#449) 2026-05-19 18:22:47 -07:00
draft-timer.ts Fix draft pause clock: use Math.ceil consistently via shared msToSeconds helper 2026-06-06 16:39:53 -07:00
email.server.ts Add branded dark-themed HTML email template (#402) 2026-05-10 11:18:57 -07:00
event-utils.ts claude/funny-maxwell-vcyb19 (#91) 2026-06-15 22:05:25 +00:00
fifa-2026-bracket.ts Reflect group stage in World Cup sim; seed R32 from real 2026 bracket 2026-06-23 12:15:45 -07:00
fifa-2026-third-place-allocation.ts Reflect group stage in World Cup sim; seed R32 from real 2026 bracket 2026-06-23 12:15:45 -07:00
flag-generator.ts Add Cloudinary-backed avatar system (#385) 2026-05-06 14:47:37 -07:00
flag-types.ts Add Cloudinary-backed avatar system (#385) 2026-05-06 14:47:37 -07:00
fuzzy-match.ts
landing-data.ts
logger.ts
normalize-team-name.ts Auto-populate & auto-score tennis Grand Slam brackets from Wikipedia 2026-06-26 21:48:00 -07:00
overnight-pause.ts Add overnight pause for draft timers (#335) 2026-04-26 22:31:52 -07:00
owner-map.ts Migrate authentication from Clerk to BetterAuth (#324) 2026-04-24 22:00:49 -07:00
parse-results-text.ts
scoring-types.ts
season-helpers.server.ts
sport-icon-cleanup.server.ts Harden sport icon cleanup (#397) 2026-05-08 21:19:09 -07:00
sport-icon-url.ts Add Cloudinary sports icon uploads (#393) 2026-05-07 16:07:34 -07:00
standings-display.ts
tournament-identity.ts Canonical tournament layer: 2026-05-01 21:04:48 -07:00
unmatched-team-reconciliation.ts Improve unmatched team reconciliation UX (#425) 2026-05-14 16:45:02 -07:00
utils.ts
wizard-state.ts Add auto-start draft at scheduled time (#437) (#438) 2026-05-16 23:37:29 -07:00