Watchlist page: choose which sports to follow per team, and add whole leagues #84

Closed
opened 2026-11-02 17:45:33 -05:00 by cmoriarty · 1 comment
Owner

Why: the watch list follows teams, and for a college that means every sport it plays. Following North Carolina for men's basketball also followed its women's games, which filled the Games page with "No streams" on 2026-11-02.

Asked for

  1. Pick the sports when adding a team. Type a team name and choose a real team from the autocomplete. If that team plays more than one sport, a dialog offers all of its sports or just the ones to follow.
  2. A Watchlist page. Its own tab next to Games and Admin, replacing the plain text list.
  3. A visually impressive table of followed teams. It shows each team's logo, with an easy way to turn each of its sports on or off, or remove the team altogether.
  4. Add a whole league. The Watchlist page can add all teams from a league, for example all women's college basketball teams, in a few clicks.

What the code does today

  • watchlist.json holds two lists of plain text, teams and leagues. A team entry is matched by name against either side of any game, so it has no idea of a sport.
  • A league entry matches the game's sport label. Men's and women's college basketball share "College Basketball", so today you can't follow only one of them.
  • The team directory (teams.py) already has one record per team per league, with its sport and league, so it can say which sports a team plays. Its records don't carry a logo yet.
  • The list also limits which games get stream checks (prewarm.py), and an empty list follows everything. This change affects what gets checked as well as what is shown.

Open questions

  • Existing entries: proposed that a plain team name keeps meaning all of that team's sports until it's edited, so nobody's list changes on upgrade.
  • "Add a whole league": either follow the league, or copy in today's teams. Proposed: follow the league, so new teams are included, and list it as one row that can be removed in one step.
  • Same team across sports: the directory has separate records, such as North Carolina men's and women's basketball and football. The table should show one row per school. Pro and soccer teams may just have one sport, so no dialog.
  • Exact names and fuzzy matching: a team picked from the autocomplete could be stored by its ESPN identity instead of its text, which would be more exact than today's name matching. Text that matches no team could be refused or kept with a warning.
  • Followed but unavailable: the site doesn't list women's college basketball, so following those teams today only adds failed checks. The page could say so when they're added. Proposed: show it, but don't block it.

Where it touches: backend/app/watchlist.py, backend/app/teams.py, frontend/src/App.tsx (the nav and the current list), a new page, and the watch-list, team-directory and player-page specs. Related: keep to the usual page style: minimal text, help behind icons, one screen.

**Why:** the watch list follows teams, and for a college that means every sport it plays. Following North Carolina for men's basketball also followed its women's games, which filled the Games page with "No streams" on 2026-11-02. **Asked for** 1. **Pick the sports when adding a team.** Type a team name and choose a real team from the autocomplete. If that team plays more than one sport, a dialog offers all of its sports or just the ones to follow. 2. **A Watchlist page.** Its own tab next to Games and Admin, replacing the plain text list. 3. **A visually impressive table of followed teams.** It shows each team's logo, with an easy way to turn each of its sports on or off, or remove the team altogether. 4. **Add a whole league.** The Watchlist page can add all teams from a league, for example all women's college basketball teams, in a few clicks. **What the code does today** - `watchlist.json` holds two lists of plain text, `teams` and `leagues`. A team entry is matched by name against either side of any game, so it has no idea of a sport. - A league entry matches the game's sport label. Men's and women's college basketball share "College Basketball", so today you can't follow only one of them. - The team directory (`teams.py`) already has one record per team per league, with its sport and league, so it can say which sports a team plays. Its records don't carry a logo yet. - The list also limits which games get stream checks (`prewarm.py`), and an empty list follows everything. This change affects what gets checked as well as what is shown. **Open questions** - **Existing entries:** proposed that a plain team name keeps meaning all of that team's sports until it's edited, so nobody's list changes on upgrade. - **"Add a whole league":** either follow the league, or copy in today's teams. Proposed: follow the league, so new teams are included, and list it as one row that can be removed in one step. - **Same team across sports:** the directory has separate records, such as North Carolina men's and women's basketball and football. The table should show one row per school. Pro and soccer teams may just have one sport, so no dialog. - **Exact names and fuzzy matching:** a team picked from the autocomplete could be stored by its ESPN identity instead of its text, which would be more exact than today's name matching. Text that matches no team could be refused or kept with a warning. - **Followed but unavailable:** the site doesn't list women's college basketball, so following those teams today only adds failed checks. The page could say so when they're added. Proposed: show it, but don't block it. **Where it touches:** `backend/app/watchlist.py`, `backend/app/teams.py`, `frontend/src/App.tsx` (the nav and the current list), a new page, and the watch-list, team-directory and player-page specs. Related: keep to the usual page style: minimal text, help behind icons, one screen.
Author
Owner

Merged in PR #85 (6d41d7b), deployed 2026-11-03 08:32Z (container 8c1b8ee2081f). All 48 teams carried over following all their sports, each with a logo.

Decided as proposed: existing entries mean all sports; a league is followed as one row; entries stay names, not ESPN ids; text matching no team is kept and marked; a league the site doesn't list is marked, not blocked.

Known limit: a school whose women's team has another name at ESPN (Georgia Lady Bulldogs) has no women's toggle on the Georgia Bulldogs row; it is its own team to add. The page's changes were tried on a local copy only, not against the live list.

Merged in PR #85 (6d41d7b), deployed 2026-11-03 08:32Z (container 8c1b8ee2081f). All 48 teams carried over following all their sports, each with a logo. Decided as proposed: existing entries mean all sports; a league is followed as one row; entries stay names, not ESPN ids; text matching no team is kept and marked; a league the site doesn't list is marked, not blocked. Known limit: a school whose women's team has another name at ESPN (Georgia Lady Bulldogs) has no women's toggle on the Georgia Bulldogs row; it is its own team to add. The page's changes were tried on a local copy only, not against the live list.
Sign in to join this conversation.
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#84
No description provided.