Skip to content

v0.1.15 — Sports On Later: 7 days of upcoming games

Choose a tag to compare

@NebulaSleuth NebulaSleuth released this 23 Apr 01:12
· 252 commits to main since this release

Sports On Later now shows the next 7 days

The shelf now surfaces a full week of upcoming games per followed league instead of only the next 24 hours. Fixes two adjacent bugs in one pass:

  1. Late-tomorrow games getting cut off. A 10 PM Western-conference playoff game is ~26 hours out when checked at 8 PM the night before, which fell outside the old 24h cap.
  2. No visibility into the week. Users couldn't glance at the shelf to see their team's Sunday game on a Friday evening.

Changes

  • GET /sports/later default window: 24h → 168h (7 days). Query param still honored.
  • fetchFollowedEvents scales the ESPN date fetches with the requested horizon (one fetch per day plus buffer), per-date cached for 10 min so subsequent shelf hits are free.
  • getEvent scans the same 8-day window so a card tapped for a game several days out resolves on the detail screen.
  • Matching mobile defaults updated: api.getSportsLater() → 168h, Home + Sports tab queries request 168h.

Verified

Smoke test with Avalanche-only prefs (teamIds: ['17']): returned all 3 upcoming COL playoff games (Thu 4/23 @ LAK, Sun 4/26 @ LAK, Tue 4/28 vs LAK) with correct broadcast pills.

Backend-only fix; mobile defaults changed for parity but the app will function against older backends too. No mobile rebuild strictly required if you're happy with 24h on the app side, but the app bumps to 168h as of this release.