Choose which leagues appear: a selection on the Watchlist tab that the Games tab follows #152

Closed
opened 2026-11-10 11:04:25 -05:00 by cmoriarty · 4 comments
Owner

Each sport added under this milestone makes the Games tab longer. It listed 147 games on a Tuesday morning (2026-11-10) with eight sports; cricket, volleyball and tennis would add dozens a day that the owner will never click.

Decided with the owner (2026-11-10)

  • The app keeps fetching every schedule, as it does now. ESPN's feeds are one small request each, and thetvapp and watchsports are one page for all sports. The filter is applied on the app's side.
  • Leagues are selected and deselected on the Watchlist tab.
  • A deselected league's games do not appear on the Games tab.
  • A game in a deselected league still appears when the owner follows a side in it, or follows its event (#151): following the World Series while MLB is deselected must still show the World Series.
  • The Games tab's own sport buttons stay in step with the selection.
  • A sport added from now on starts deselected.

How it is today

  • The Games tab has a row of sport buttons: College Football, NFL, NBA, WNBA, College Basketball, MLB, NHL, Soccer. The list is fixed in the page (SPORT_LABELS in frontend/src/logic.ts, mirroring games.SPORT_LABELS). A button hides that sport for this browser only; the choice lives in the page's address (?hide=), not on the server.
  • The watch list already has a finer vocabulary: a team's sport choices split college basketball into men's and women's (games.sport_choice), and it can follow a league (47 soccer competitions are separate leagues there, one "Soccer" button on the Games tab).
  • Stream checks already go only to followed games, so this is about the list and the guide, not about check time.

Work

  • One list of leagues, served by the app. The page's fixed sport list goes; the Games tab and the Watchlist tab both read the leagues from the server, grouped by sport (Soccer > Premier League, College Basketball > Men's, Women's).
  • A selection kept on the server (beside the watch list and the settings), so it holds across browsers and the media-server guide can use it. Selecting a sport selects its leagues; a league can be switched on its own.
  • The Games tab's buttons show only selected sports. A button for a deselected sport is not shown, so the two cannot disagree. The existing buttons stay what they are: a quick, per-browser narrowing within what is selected.
  • The exception for followed games: a followed side's or event's game is listed whatever its league's switch says, under a button of its own sport if that sport has no other game showing. Decide how that looks (a button that appears only while such a game is listed, or the game shown under "Following" only).
  • Filter before the name matching. The merge compares every feed game with every site row, and it has saturated the app before (2026-11-07). Games of deselected leagues that nothing followed needs should skip it.
  • The guide and the media servers' channel list follow the same selection. They carry Ready games, which are followed ones, so this should change nothing in practice; make it explicit.
  • Migration: every league the app carries today starts selected, so nothing disappears on the day this ships.

Not part of this

  • The hub's section pages are read through the Cloudflare solver, one per sport section, every 5 minutes while one lists a live game and every 30 otherwise. That is the one schedule cost that is not trivial. The owner chose to keep fetching everything; skipping the section of a sport that is deselected and has nothing followed is a possible follow-up if the solver gets busy.

To decide

  • Whether a deselected league hides its teams from the Watchlist tab's search as well, or only its games from the Games tab.
  • What the Games tab says when a search matches a game in a deselected league (nothing, or "1 game in a hidden league").

Done when a league deselected on the Watchlist tab is gone from the Games tab and its buttons on every browser, a followed game in it still shows, and a newly added sport appears nowhere until it is selected.

Each sport added under this milestone makes the Games tab longer. It listed 147 games on a Tuesday morning (2026-11-10) with eight sports; cricket, volleyball and tennis would add dozens a day that the owner will never click. **Decided with the owner (2026-11-10)** - The app keeps fetching every schedule, as it does now. ESPN's feeds are one small request each, and thetvapp and watchsports are one page for all sports. The filter is applied on the app's side. - Leagues are selected and deselected on the Watchlist tab. - A deselected league's games do not appear on the Games tab. - A game in a deselected league still appears when the owner follows a side in it, or follows its event (#151): following the World Series while MLB is deselected must still show the World Series. - The Games tab's own sport buttons stay in step with the selection. - A sport added from now on starts deselected. **How it is today** - The Games tab has a row of sport buttons: College Football, NFL, NBA, WNBA, College Basketball, MLB, NHL, Soccer. The list is fixed in the page (`SPORT_LABELS` in `frontend/src/logic.ts`, mirroring `games.SPORT_LABELS`). A button hides that sport for this browser only; the choice lives in the page's address (`?hide=`), not on the server. - The watch list already has a finer vocabulary: a team's sport choices split college basketball into men's and women's (`games.sport_choice`), and it can follow a league (47 soccer competitions are separate leagues there, one "Soccer" button on the Games tab). - Stream checks already go only to followed games, so this is about the list and the guide, not about check time. **Work** - **One list of leagues, served by the app.** The page's fixed sport list goes; the Games tab and the Watchlist tab both read the leagues from the server, grouped by sport (Soccer > Premier League, College Basketball > Men's, Women's). - **A selection kept on the server** (beside the watch list and the settings), so it holds across browsers and the media-server guide can use it. Selecting a sport selects its leagues; a league can be switched on its own. - **The Games tab's buttons show only selected sports.** A button for a deselected sport is not shown, so the two cannot disagree. The existing buttons stay what they are: a quick, per-browser narrowing within what is selected. - **The exception for followed games:** a followed side's or event's game is listed whatever its league's switch says, under a button of its own sport if that sport has no other game showing. Decide how that looks (a button that appears only while such a game is listed, or the game shown under "Following" only). - **Filter before the name matching.** The merge compares every feed game with every site row, and it has saturated the app before (2026-11-07). Games of deselected leagues that nothing followed needs should skip it. - **The guide and the media servers' channel list** follow the same selection. They carry Ready games, which are followed ones, so this should change nothing in practice; make it explicit. - **Migration:** every league the app carries today starts selected, so nothing disappears on the day this ships. **Not part of this** - The hub's section pages are read through the Cloudflare solver, one per sport section, every 5 minutes while one lists a live game and every 30 otherwise. That is the one schedule cost that is not trivial. The owner chose to keep fetching everything; skipping the section of a sport that is deselected and has nothing followed is a possible follow-up if the solver gets busy. **To decide** - Whether a deselected league hides its teams from the Watchlist tab's search as well, or only its games from the Games tab. - What the Games tab says when a search matches a game in a deselected league (nothing, or "1 game in a hidden league"). **Done when** a league deselected on the Watchlist tab is gone from the Games tab and its buttons on every browser, a followed game in it still shows, and a newly added sport appears nowhere until it is selected.
cmoriarty added this to the More sports milestone 2026-11-10 11:04:25 -05:00
Author
Owner

From the owner, 2026-11-10

  1. Order: this ticket is built before any sport or league is added under the milestone.
  2. Sports and leagues are two levels, and the panel has to handle both well. The top level is the sport (Basketball). Selecting it selects every league under it. The leagues under it (NBA, WNBA, Men's College, Women's College) can also be selected one by one. Soccer is the case that matters most: it has 47 leagues.

What that changes in the design above

  • A sport level the app does not have yet. Today NBA, WNBA and College Basketball are three separate top-level entries on the Games tab, and men's and women's college basketball share one. The league list the app serves needs a real tree: Basketball > NBA, WNBA, Men's College, Women's College; Football > NFL, College Football; Baseball > MLB; Hockey > NHL; Soccer > its 47 competitions. New sports slot in the same way (Cricket > its series, Volleyball > Women's College, Men's College).
  • Three states for a sport, not two: all, some, none. A sport's control shows which (checked, partly checked, unchecked), and one click on it goes to all or to none.
  • "All" means all, including leagues added later. A sport set to all picks up a new league under it by itself (Basketball on all would show the G League the day it is added). A sport set to some keeps exactly the leagues picked, and a new league under it starts off. A new sport starts at none. This replaces "a sport added from now on starts deselected" above, which only said the last part.
  • Soccer needs more than a list of 47 checkboxes: the leagues grouped (by country or by kind: domestic leagues, cups, European, the Americas), a search box over them, and "all" and "none" for a group. The sport's row should say how many are on ("12 of 47") without being opened.
  • The Games tab's buttons are the selected sports. Whether a sport with several leagues on gets one button (Basketball) or one per league (NBA, WNBA) is a design choice to settle in a mockup: one per sport is tidier, one per league is what the tab has today for NBA and WNBA.
  • In keeping with the page's style: few words, the state shown by the control itself, and the whole panel usable without scrolling past the watch list.

Suggested first step: a mockup of the panel and of the Games tab's buttons, for the owner to choose from, before any code.

**From the owner, 2026-11-10** 1. **Order:** this ticket is built before any sport or league is added under the milestone. 2. **Sports and leagues are two levels, and the panel has to handle both well.** The top level is the sport (Basketball). Selecting it selects every league under it. The leagues under it (NBA, WNBA, Men's College, Women's College) can also be selected one by one. Soccer is the case that matters most: it has 47 leagues. **What that changes in the design above** - **A sport level the app does not have yet.** Today NBA, WNBA and College Basketball are three separate top-level entries on the Games tab, and men's and women's college basketball share one. The league list the app serves needs a real tree: Basketball > NBA, WNBA, Men's College, Women's College; Football > NFL, College Football; Baseball > MLB; Hockey > NHL; Soccer > its 47 competitions. New sports slot in the same way (Cricket > its series, Volleyball > Women's College, Men's College). - **Three states for a sport, not two:** all, some, none. A sport's control shows which (checked, partly checked, unchecked), and one click on it goes to all or to none. - **"All" means all, including leagues added later.** A sport set to all picks up a new league under it by itself (Basketball on all would show the G League the day it is added). A sport set to some keeps exactly the leagues picked, and a new league under it starts off. A new sport starts at none. This replaces "a sport added from now on starts deselected" above, which only said the last part. - **Soccer needs more than a list of 47 checkboxes:** the leagues grouped (by country or by kind: domestic leagues, cups, European, the Americas), a search box over them, and "all" and "none" for a group. The sport's row should say how many are on ("12 of 47") without being opened. - **The Games tab's buttons** are the selected sports. Whether a sport with several leagues on gets one button (Basketball) or one per league (NBA, WNBA) is a design choice to settle in a mockup: one per sport is tidier, one per league is what the tab has today for NBA and WNBA. - In keeping with the page's style: few words, the state shown by the control itself, and the whole panel usable without scrolling past the watch list. **Suggested first step:** a mockup of the panel and of the Games tab's buttons, for the owner to choose from, before any code.
Author
Owner

Added by the owner, 2026-11-10: drop the "no" symbol from the Watchlist tab

The Watchlist tab marks women's college basketball with a "no" symbol (Unlisted in frontend/src/WatchlistPage.tsx, tooltip "Few of these games get streams: most are not on the stream sites"). The owner read it as "not supported", which the sport now is (thetvapp and watchsports.su since #128).

  • Remove the symbol from the sport chips, the league rows and the sports dialog, with nothing in its place. The app does not say "limited coverage" anywhere.
  • Remove what feeds it: the listed field of /api/teams' leagues (backend/app/teams.py), which is hard-coded to whether the hub lists the league (config.sportsurge_lists) and ignores the other two sites. config.sportsurge_lists itself stays: the resolver uses it.
  • Say it in the documentation instead: which leagues have few streams and why. Women's college basketball got a stream on 2 of 21 checks on 2026-11-09 and 10; most of its games air on ESPN+ and conference channels that none of the sites carry. The same will be true of lacrosse, softball and college volleyball when they are added.

The new league panel in this ticket should not carry such a mark either.

**Added by the owner, 2026-11-10: drop the "no" symbol from the Watchlist tab** The Watchlist tab marks women's college basketball with a "no" symbol (`Unlisted` in `frontend/src/WatchlistPage.tsx`, tooltip "Few of these games get streams: most are not on the stream sites"). The owner read it as "not supported", which the sport now is (thetvapp and watchsports.su since #128). - **Remove the symbol** from the sport chips, the league rows and the sports dialog, with nothing in its place. The app does not say "limited coverage" anywhere. - **Remove what feeds it:** the `listed` field of `/api/teams`' leagues (`backend/app/teams.py`), which is hard-coded to whether the hub lists the league (`config.sportsurge_lists`) and ignores the other two sites. `config.sportsurge_lists` itself stays: the resolver uses it. - **Say it in the documentation instead:** which leagues have few streams and why. Women's college basketball got a stream on 2 of 21 checks on 2026-11-09 and 10; most of its games air on ESPN+ and conference channels that none of the sites carry. The same will be true of lacrosse, softball and college volleyball when they are added. The new league panel in this ticket should not carry such a mark either.
Author
Owner

Chosen by the owner from a mockup, 2026-11-10

  • League panel: A, rows that open. One row per sport: a three-state box (all, some, none), the sport's glyph and name, a count of its leagues that are on ("6 of 47"), and a chevron. A sport with more than one league opens to show them as chips, grouped where there are many (soccer: England, Europe, Spain, the Americas, and so on). Clicking the box switches every league of the sport; clicking a chip switches that league. A sport with one league (MLB, NHL) has no chevron and no count.
  • Games tab buttons: 3, one per sport that opens. One button per selected sport with its game count. Pressing a sport that has more than one selected league opens it in place into those leagues' buttons, to narrow to one (Basketball > NBA). A deselected sport or league has no button.

Still to design while building

  • Soccer's opened row: the search box and "all / none" per group.
  • How a followed game in a deselected league shows on the Games tab.
  • The two questions in the description (hiding a deselected league's teams from the Watchlist search; what a search says about a match in a hidden league).
**Chosen by the owner from a mockup, 2026-11-10** - **League panel: A, rows that open.** One row per sport: a three-state box (all, some, none), the sport's glyph and name, a count of its leagues that are on ("6 of 47"), and a chevron. A sport with more than one league opens to show them as chips, grouped where there are many (soccer: England, Europe, Spain, the Americas, and so on). Clicking the box switches every league of the sport; clicking a chip switches that league. A sport with one league (MLB, NHL) has no chevron and no count. - **Games tab buttons: 3, one per sport that opens.** One button per selected sport with its game count. Pressing a sport that has more than one selected league opens it in place into those leagues' buttons, to narrow to one (Basketball > NBA). A deselected sport or league has no button. **Still to design while building** - Soccer's opened row: the search box and "all / none" per group. - How a followed game in a deselected league shows on the Games tab. - The two questions in the description (hiding a deselected league's teams from the Watchlist search; what a search says about a match in a hidden league).
Author
Owner

Merged in PR #153 (67b2668), deployed 2026-11-10 17:23Z, archived in b97caa6 (specs tidied in 3e88f2a).

Seen in production after the deploy: the panel on the Watchlist tab with every sport on (Football 2 of 2, Basketball 4 of 4, Soccer 50 of 50), the Games tab's five sport buttons, all 144 games still listed, and no "no" symbol on the women's chips. Switching a sport off was tried on a local run with the production watch list, not in production.

Decisions taken while building, for the owner to reverse if he wants:

  • a deselected league's teams stay searchable in the add box;
  • picking every league of a sport one by one makes the sport "all";
  • a followed game in a league that is off counts under its sport's button when the sport has one;
  • an opened sport's league buttons push the other sports to the right, and the row scrolls sideways.

Left out: the list's merge still runs over every league.

A new sport is added in backend/app/leagues.py (_FIXED, with default_on=False) beside its feed in games.py.

Merged in PR #153 (67b2668), deployed 2026-11-10 17:23Z, archived in b97caa6 (specs tidied in 3e88f2a). Seen in production after the deploy: the panel on the Watchlist tab with every sport on (Football 2 of 2, Basketball 4 of 4, Soccer 50 of 50), the Games tab's five sport buttons, all 144 games still listed, and no "no" symbol on the women's chips. Switching a sport off was tried on a local run with the production watch list, not in production. Decisions taken while building, for the owner to reverse if he wants: - a deselected league's teams stay searchable in the add box; - picking every league of a sport one by one makes the sport "all"; - a followed game in a league that is off counts under its sport's button when the sport has one; - an opened sport's league buttons push the other sports to the right, and the row scrolls sideways. Left out: the list's merge still runs over every league. A new sport is added in `backend/app/leagues.py` (`_FIXED`, with `default_on=False`) beside its feed in `games.py`.
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#152
No description provided.