Commit graph

3 commits

Author SHA1 Message Date
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
Chris Parsons
3c4ed67946
Add upcoming events pages and fix timezone filtering, fixes #213 (#235)
- Fix UTC midnight rollover bug: server now queries from yesterday UTC
  as a buffer; UpcomingCalendarPanel filters to local-today client-side
  via useEffect + Intl.DateTimeFormat, removing the need for any
  cookie or server-side timezone detection
- Cap homepage and league page panels at 6 events with a "View all" link
- Add /upcoming-events page (60-day view across all leagues)
- Add /leagues/:leagueId/upcoming-events page (60-day per-league view)
- Add emptyMessage prop to UpcomingCalendarPanel for context-specific copy
- Change getUpcomingEventsForDraftedParticipants to accept pre-computed
  date strings instead of Date objects

fixes #213

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-27 00:49:16 -07:00
Chris Parsons
4fe76b6845
Display upcoming matches (#141) 2026-03-12 10:12:38 -07:00