choose which leagues appear (#152) #153

Merged
cmoriarty merged 1 commit from feature/league-selection into main 2026-11-10 12:19:50 -05:00
Owner

Closes #152. Built before any sport is added under "More sports", as the owner asked.

What it does

  • A sport and league tree served by the app (GET /api/leagues): Football, Basketball, Baseball, Hockey and Soccer with their leagues, soccer's 50 grouped by region.
  • A selection kept on the server (leagues.json, PUT /api/leagues). A sport is all, some or none. "All" takes in a league added later; a picked list does not; a new sport starts off. Every sport carried today starts on, so nothing leaves the list when this ships.
  • Watchlist tab: the panel chosen from the mockup (A). One row per sport with a three-state box and a count ("35 of 50"); a row opens to its leagues; soccer's are grouped, each group with its own box, with a search box.
  • Games tab: the buttons chosen from the mockup (3). One per sport that has a league on, opening in place into its leagues. A search says how many of its matches are in hidden leagues.
  • Following wins over hiding: a game in a league that is off is still listed when the watch list names one of its sides or its league.
  • Removed: the "no" symbol on women's college basketball and the listed field behind it. The README now says which leagues get few streams.

Unchanged on purpose

  • Schedules are still fetched for every league, and stream checks still go only to followed games. With no watch list, a league that is off gets no checks.
  • The list's merge still compares every feed game with every site row. Skipping a league there would turn its site rows into separate entries.

Decisions taken while building (say if any should change)

  • A deselected league's teams stay searchable in the Watchlist tab's add box.
  • A followed game in a league that is off counts under its sport's button when the sport has one, and gets no button otherwise.
  • Picking every league of a sport one by one makes the sport "all".

Checked: 1250 backend, 261 frontend, e2e; and both tabs used in a browser against a local run with the production watch list.

Not merged: waiting for the owner's look.

🤖 Generated with Claude Code

Closes #152. Built before any sport is added under "More sports", as the owner asked. **What it does** - **A sport and league tree** served by the app (`GET /api/leagues`): Football, Basketball, Baseball, Hockey and Soccer with their leagues, soccer's 50 grouped by region. - **A selection kept on the server** (`leagues.json`, `PUT /api/leagues`). A sport is all, some or none. "All" takes in a league added later; a picked list does not; a new sport starts off. Every sport carried today starts on, so nothing leaves the list when this ships. - **Watchlist tab:** the panel chosen from the mockup (A). One row per sport with a three-state box and a count ("35 of 50"); a row opens to its leagues; soccer's are grouped, each group with its own box, with a search box. - **Games tab:** the buttons chosen from the mockup (3). One per sport that has a league on, opening in place into its leagues. A search says how many of its matches are in hidden leagues. - **Following wins over hiding:** a game in a league that is off is still listed when the watch list names one of its sides or its league. - **Removed:** the "no" symbol on women's college basketball and the `listed` field behind it. The README now says which leagues get few streams. **Unchanged on purpose** - Schedules are still fetched for every league, and stream checks still go only to followed games. With no watch list, a league that is off gets no checks. - The list's merge still compares every feed game with every site row. Skipping a league there would turn its site rows into separate entries. **Decisions taken while building** (say if any should change) - A deselected league's teams stay searchable in the Watchlist tab's add box. - A followed game in a league that is off counts under its sport's button when the sport has one, and gets no button otherwise. - Picking every league of a sport one by one makes the sport "all". **Checked:** 1250 backend, 261 frontend, e2e; and both tabs used in a browser against a local run with the production watch list. **Not merged:** waiting for the owner's look. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Each sport added makes the Games tab longer, so the owner asked for this
before any is: a way to choose which sports and leagues are listed.

- leagues.py: the sports and their leagues as a tree (soccer grouped by
  region), a selection kept in leagues.json, and GET / PUT /api/leagues.
  A sport is all, some or none; "all" takes in a league added later, a
  picked list does not, a new sport starts off, and every sport carried
  today starts on.
- The schedules are still fetched for every league. /api/games says each
  game's league and whether it is shown: its league is on, or the watch
  list names a side or its league.
- Watchlist tab: a panel of one row per sport with a three-state box and
  a count; a row opens to its leagues, grouped and searchable for soccer.
- Games tab: the buttons are the sports with a league on, and one opens
  in place into its leagues. A search says how many of its matches are in
  hidden leagues.
- The "no" symbol on women's college basketball is gone, with the
  `listed` field behind it; the README says which leagues get few streams.

Co-Authored-By: Claude <noreply@anthropic.com>
cmoriarty deleted branch feature/league-selection 2026-11-10 12:19:50 -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!153
No description provided.