brackt/app/components/sport-season
Claude 4bede9013a
All checks were successful
🚀 Deploy / 🧪 Test (pull_request) Successful in 3m41s
🚀 Deploy / ʦ🔍 Typecheck & Lint (pull_request) Successful in 1m24s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
Fix four code review findings in group stage view
1. Stable byDay map key: use UTC date string (scheduledAt.slice(0,10))
   instead of toLocaleDateString so server and client always produce the
   same Map structure, eliminating the key={day} hydration tree mismatch.

2. Correct time localization: render UTC time as the stable SSR value,
   then replace with the user's local time in useEffect after hydration.
   Removes suppressHydrationWarning from both elements.

3. Fix groups vs visibleGroups: the JSX was iterating the unfiltered
   groups array, making the showEmpty filter a no-op. Now uses
   visibleGroups.map so groups with no activity are properly hidden.

4. Sync view after revalidation: add useEffect that advances the tab
   from "groups" to "playoffs" when bracketHasTeams flips true during
   an active session, without overriding a deliberate manual selection.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Bo6Rsmg8FosYcDJsg14tX
2026-06-17 03:25:32 +00:00
..
__tests__ Fix standings table bugs and polish across all three scoring patterns (#415) 2026-05-12 10:39:25 -07:00
EventSchedule.tsx claude/beautiful-hawking-a72ilq (#92) 2026-06-16 14:11:51 +00:00
GroupStageStandings.tsx Fix four code review findings in group stage view 2026-06-17 03:25:32 +00:00
RegularSeasonStandings.tsx Fix standings table bugs and polish across all three scoring patterns (#415) 2026-05-12 10:39:25 -07:00
UpcomingCalendarPanel.tsx claude/beautiful-hawking-a72ilq (#92) 2026-06-16 14:11:51 +00:00
UpcomingEventsCard.stories.tsx New design (#309) 2026-04-23 13:14:55 -07:00
UpcomingEventsCard.tsx claude/funny-maxwell-vcyb19 (#91) 2026-06-15 22:05:25 +00:00
UpcomingEventsCardFull.stories.tsx New design (#309) 2026-04-23 13:14:55 -07:00