Show bracket on tennis Grand Slam major event pages #113

Merged
chrisp merged 2 commits from feat/tennis-major-bracket-display into main 2026-06-28 04:35:41 +00:00

2 commits

Author SHA1 Message Date
Chris Parsons
b8165cef3e Sort In Contention by ownership then name
All checks were successful
🚀 Deploy / 🧪 Test (pull_request) Successful in 3m13s
🚀 Deploy / ʦ🔍 Typecheck & Lint (pull_request) Successful in 1m30s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
In the bracket "In Contention" table, list players drafted by a manager
first, then alphabetically by player name.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-27 08:49:49 -07:00
Chris Parsons
764d70af3a Show bracket on tennis Grand Slam major event pages
Tennis majors already store the full 128-player draw in playoff_matches
(synced from Wikipedia) and the PlayoffBracket component + tennis_128
template already exist, but the public league event page only rendered a
bracket for eventType === "playoff_game". Tennis majors are major_tournament
events, so they fell through to the QP-only results table and the draw was
never shown.

Add a kind: "tennis" loader branch (gated on isBracketMajor + major_tournament)
that loads the bracket (primary-keyed for shared majors) plus this window's QP
results, and render both via the existing PlayoffBracket and a shared
QpResultsTable extracted from the results block.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-27 08:45:46 -07:00