Fix World Cup group stage display and upcoming events #55

Merged
chrisp merged 2 commits from fix/world-cup-group-stage-display into main 2026-05-27 05:43:08 +00:00

2 commits

Author SHA1 Message Date
Chris Parsons
e6f3c396ae Fix test mocks for group stage upcoming events changes
All checks were successful
🚀 Deploy / 🧪 Test (pull_request) Successful in 1m29s
🚀 Deploy / ʦ TypeScript (pull_request) Successful in 1m19s
🚀 Deploy / 🔍 Lint (pull_request) Successful in 47s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
Add groupStageMatches, tournamentGroups, and seasonParticipants to
the schema mock, add db.select mock for the group stage query, and
wire default empty results into all bracket-path beforeEach hooks.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26 22:34:26 -07:00
Chris Parsons
cce1115a4d Fix World Cup group stage display and upcoming events
Some checks failed
🚀 Deploy / 🧪 Test (pull_request) Failing after 1m29s
🚀 Deploy / ʦ TypeScript (pull_request) Successful in 1m16s
🚀 Deploy / 🔍 Lint (pull_request) Successful in 49s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
- Remove MD 1/2/3 grouping from GroupStageStandings; list matches
  chronologically under date separators (Jun 14, Jun 18, etc.)
- Fix MatchResult layout: show kick-off time below team names instead
  of sandwiching the date between them
- Sort group stage matches by scheduledAt ASC NULLS LAST in the model
  so unscheduled matches always trail scheduled ones
- Add Groups/Bracket toggle to the sports season page when both a group
  stage and knockout bracket exist, mirroring the NBA/AFL standings toggle;
  sports with both standings and group stage now include all three views
- Include group stage matches in getUpcomingEventsForDraftedParticipants
  so World Cup fixtures appear on the home page calendar
- Fix isAllCompete check in UpcomingEventsCard and UpcomingCalendarPanel
  to treat group_stage_match as a bracket-style event (shows team badges,
  not "N of your picks")

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26 22:26:03 -07:00