brackt/app/components/sport-season
Chris Parsons ed57c67b93 Fix standings table bugs and polish across all three scoring patterns
- Fix isLastBeforePointsLine/PlayoffLine: was incorrectly suppressing the
  bottom border on the last row of a section when no divider followed
  (nextStanding === undefined case). Now correctly requires nextStanding
  to exist and exceed the cutoff rank.
- Fix totalCols colSpan overcounting: hidden sm:table-cell columns
  (Drafted By / Mgr) don't occupy column slots on mobile, so counting
  them caused the divider rows to span one too many. Replaced with
  colSpan={100} (browser caps to actual column count).
- Move pointsLinePushed mutation out of render in SeasonStandings and
  QualifyingPointsStandings: replaced let+mutation+array-push pattern
  with pre-computed firstOver8Idx and React.Fragment per row.
- Replace array-returning .map() with keyed React.Fragment in both files.
- Remove unused description prop from SeasonStandingsProps.
- Use useId() for Switch id props in all three components to prevent
  id collisions when mounted multiple times.
- Fix formatQP NaN fallback from "0" to "—".
- Add comment noting canFinalize guards the admin-only finalize UI.
- Drop dead description prop pass-through in SportSeasonDisplay.

Fixes #408

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 10:14:20 -07:00
..
__tests__ Fix MLB streak doubling bug, hide empty standings columns, improve mobile layout (#413) 2026-05-12 08:14:34 -07:00
EventSchedule.tsx Add oxlint linting setup with zero errors (#194) 2026-03-21 09:44:05 -07:00
GroupStageStandings.tsx Add FIFA World Cup 2026 support with group stage display and Monte Carlo simulator (#242) 2026-03-29 10:27:47 -07:00
RegularSeasonStandings.tsx Fix standings table bugs and polish across all three scoring patterns 2026-05-12 10:14:20 -07:00
UpcomingCalendarPanel.tsx Add upcoming events pages and fix timezone filtering, fixes #213 (#235) 2026-03-27 00:49:16 -07:00
UpcomingEventsCard.stories.tsx New design (#309) 2026-04-23 13:14:55 -07:00
UpcomingEventsCard.tsx New design (#309) 2026-04-23 13:14:55 -07:00
UpcomingEventsCardFull.stories.tsx New design (#309) 2026-04-23 13:14:55 -07:00