Fix IndyCar standings: correct ESPN stat key, title, and finalized badge #82

Merged
chrisp merged 1 commit from fix/indycar-standings-display into main 2026-06-10 16:23:19 +00:00
Owner

Summary

  • Points showing as 0: ESPN IndyCar API uses `championshipPts` as the points stat name, not `points` — fixes standings sync so real values appear after the next sync
  • Title: Season standings card now shows "2026 Standings" instead of just "2026"
  • Subtext: Removed the always-visible "Current championship standings. Positions calculated from points..." description
  • Finalized badge: Restored the green "Season complete — fantasy points assigned to top 8 finishers" indicator for completed seasons (was inadvertently dropped when removing the subtext); now symmetric with QualifyingPointsStandings
  • Cleanup: `seasonIsFinalized` was computed in the loader and returned as dead data — removed; now derived from `sportsSeason.status` at the component level

Test plan

  • Trigger "Sync Standings" from the admin page for the IndyCar 2026 season — confirm points populate
  • Confirm the standings card title reads "2026 Standings"
  • Confirm no subtext appears below the title for an active season
  • Mark a test season as `completed` and confirm the green "Season complete" badge appears
  • `npm run typecheck` passes
  • `npm run test:run` passes (f1.test.ts fixture updated to use `championshipPts`)

🤖 Generated with Claude Code

## Summary - **Points showing as 0**: ESPN IndyCar API uses \`championshipPts\` as the points stat name, not \`points\` — fixes standings sync so real values appear after the next sync - **Title**: Season standings card now shows "2026 Standings" instead of just "2026" - **Subtext**: Removed the always-visible "Current championship standings. Positions calculated from points..." description - **Finalized badge**: Restored the green "Season complete — fantasy points assigned to top 8 finishers" indicator for completed seasons (was inadvertently dropped when removing the subtext); now symmetric with QualifyingPointsStandings - **Cleanup**: \`seasonIsFinalized\` was computed in the loader and returned as dead data — removed; now derived from \`sportsSeason.status\` at the component level ## Test plan - [ ] Trigger "Sync Standings" from the admin page for the IndyCar 2026 season — confirm points populate - [ ] Confirm the standings card title reads "2026 Standings" - [ ] Confirm no subtext appears below the title for an active season - [ ] Mark a test season as \`completed\` and confirm the green "Season complete" badge appears - [ ] \`npm run typecheck\` passes - [ ] \`npm run test:run\` passes (f1.test.ts fixture updated to use \`championshipPts\`) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chrisp added 1 commit 2026-06-10 16:17:49 +00:00
Fix IndyCar standings: correct ESPN stat key, update title, restore finalized badge
All checks were successful
🚀 Deploy / 🧪 Test (pull_request) Successful in 3m0s
🚀 Deploy / ʦ🔍 Typecheck & Lint (pull_request) Successful in 1m31s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
🚀 Deploy / 🧪 Test (push) Successful in 3m1s
🚀 Deploy / ʦ🔍 Typecheck & Lint (push) Successful in 1m33s
🚀 Deploy / 🐳 Build (push) Successful in 1m20s
🚀 Deploy / 🚀 Deploy (push) Successful in 11s
ea85a21c83
- IndyCar points were showing as 0 because ESPN uses 'championshipPts' not 'points'
  as the stat name; add it as primary key in the fallback chain
- Rename season_standings card title from sportSeasonName to "${name} Standings"
- Remove non-finalized subtext from SeasonStandings CardDescription
- Restore finalized-season badge (season complete / top-8 points locked) which
  was dropped when removing the subtext; derive from sportsSeason.status at the
  component level instead of the loader so the dead seasonIsFinalized field is
  also removed from the loader return

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
chrisp merged commit ea85a21c83 into main 2026-06-10 16:23:19 +00:00
chrisp deleted branch fix/indycar-standings-display 2026-06-10 16:23:19 +00:00
Sign in to join this conversation.
No description provided.