Watchlist page: choose a team's sports, add whole leagues #85

Merged
cmoriarty merged 1 commit from watchlist-page into develop 2026-11-03 03:30:11 -05:00
Owner

OpenSpec change: watchlist-page. Closes #84.

What changes

  • Per-team sports. A team entry can follow only some sports; men's and women's college basketball are separate choices. Existing entries mean all sports, so nobody's list changes on upgrade (watchlist.json version 2 adds a sports map; version 1 reads as is).
  • Leagues. A league entry can name one competition ("Premier League") or one college basketball. "College Basketball" and its codes keep matching both.
  • Directory. One record per team and sport choice, with logo and colour. teams.json version 2: an older file counts as stale and refetches on the first pass. New GET /api/teams/leagues.
  • Watchlist page at /watchlist: teams grouped by sport, each logo on a tab of the team's colour, a toggle per sport, remove, suggestions, a sports dialog for a multi-sport team, a league picker.
  • The star on a Games row switches that game's sport for the team, instead of following every sport.
  • Removed: the dock's watch-list panel and its text mode. PUT /api/watchlist stays.

The issue's open questions

Existing entries mean all sports. A league is followed as one row, not copied in as teams. One row per full name; entries stay names, not ESPN ids. Text matching no team is kept and marked. A league the site doesn't list (women's college basketball) is marked, not blocked.

Checks

  • Backend at this commit: 893 passed, 1 skipped, in 70 s. One earlier run of the same commit had 11 failures in 237 s with the Mac under heavy load (load average around 30); their names weren't captured, so they are assumed to be load timeouts, not shown to be.
  • Frontend: 195 passed.
  • On a local server with the real ESPN directory and production's 48-team list: suggestions, the dialog, sport toggles, the league picker and a phone-width layout (no sideways scroll). Following Women's College Basketball counted 41 women's games and 0 men's.

Not covered: the Georgia Bulldogs show no women's toggle because ESPN names that team "Georgia Lady Bulldogs", a separate name; it has to be added by that name.

🤖 Generated with Claude Code

OpenSpec change: `watchlist-page`. Closes #84. ## What changes - **Per-team sports.** A team entry can follow only some sports; men's and women's college basketball are separate choices. Existing entries mean all sports, so nobody's list changes on upgrade (`watchlist.json` version 2 adds a `sports` map; version 1 reads as is). - **Leagues.** A league entry can name one competition ("Premier League") or one college basketball. "College Basketball" and its codes keep matching both. - **Directory.** One record per team and sport choice, with logo and colour. `teams.json` version 2: an older file counts as stale and refetches on the first pass. New `GET /api/teams/leagues`. - **Watchlist page** at `/watchlist`: teams grouped by sport, each logo on a tab of the team's colour, a toggle per sport, remove, suggestions, a sports dialog for a multi-sport team, a league picker. - **The star** on a Games row switches that game's sport for the team, instead of following every sport. - **Removed:** the dock's watch-list panel and its text mode. `PUT /api/watchlist` stays. ## The issue's open questions Existing entries mean all sports. A league is followed as one row, not copied in as teams. One row per full name; entries stay names, not ESPN ids. Text matching no team is kept and marked. A league the site doesn't list (women's college basketball) is marked, not blocked. ## Checks - Backend at this commit: 893 passed, 1 skipped, in 70 s. One earlier run of the same commit had 11 failures in 237 s with the Mac under heavy load (load average around 30); their names weren't captured, so they are assumed to be load timeouts, not shown to be. - Frontend: 195 passed. - On a local server with the real ESPN directory and production's 48-team list: suggestions, the dialog, sport toggles, the league picker and a phone-width layout (no sideways scroll). Following Women's College Basketball counted 41 women's games and 0 men's. **Not covered:** the Georgia Bulldogs show no women's toggle because ESPN names that team "Georgia Lady Bulldogs", a separate name; it has to be added by that name. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Watchlist page: choose a team's sports, add whole leagues
All checks were successful
ci / Unit tests, type check, bundle (pull_request) Successful in 47s
ci / One container, e2e click-to-play inside the image (pull_request) Successful in 1m54s
98a8fbce46
A team entry can now follow only some of its sports, with men's and women's
college basketball as separate choices; a plain entry keeps meaning all of
them. A league entry can name one competition or one college basketball.
The new /watchlist page replaces the dock panel: teams by sport with logos,
a toggle per sport, a dialog when adding a multi-sport team, a league picker.
A row's star on the Games page now switches that game's sport for the team.

Closes #84

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cmoriarty merged commit 6d41d7b9d7 into develop 2026-11-03 03:30:11 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/sports-breaker!85
No description provided.