Repository navigation
fix(web): stop offering favourites and the watchlist on episode cards - #2433
Conversation
Episode cards in Continue Watching, Next Up, Home rows and catalog grids offered Add to Favorites and Add to Watchlist. The write succeeded, but the default view of the Favorites and Watchlist pages, and their Home rows, list media items only, so the episode never showed up there. The episode and season pages already left these actions out, as did the episode cards on episode, season and series pages. The card menu now decides this by item type: seasons and episodes no longer offer to be added to either list, and the poster heart is hidden for them. An episode that is already on a list keeps its Remove entry so it can still be taken off. Closes Silo-Server#2137
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Conflicts: - internal/api/handlers/items.go: keep the lookup and expansion split and carry Silo-Server#2465's played parameter, so series and season unwatch still skip the episode listing. - internal/contractledger/ledger_test.go: keep the clearResumePosition row and Silo-Server#2425's watchlist-title wording. - internal/recommendations/taste_signals_test.go: Silo-Server#1966's stale-abandonment rule gives a recent low-progress row no weight, so the cleared-position case moves into its table test. - web/src/components/MediaItemMenu.tsx: keep Reset Progress ahead of Silo-Server#2433's personal-list entries. Main also changed two things the reset used without a textual conflict: - Silo-Server#1966 replaced triggerProfileRefresh with notifySignalsChanged, so ClearResumePosition now calls the new notifier. - Silo-Server#2425 made viewerNoContentMutation naturally idempotent for favorites and watchlist writes. clearResumePosition registers its operation directly so it stays non_retryable, as unmarkWatched does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Problem
Closes #2137
Related issue: #1182
Validation tasks: none. #1184 C1 and C2 passed for movies and series, and this leaves their toggles and the list pages as they are.
Episode cards in the web app offer Add to Favorites and Add to Watchlist. Both show a success toast, but the episode is missing from the Favorites and Watchlist pages and their Home rows, so it looks as if it was never saved. This change stops offering those two actions on episode and season cards, which keeps both lists at the title level, as the report asks.
I reproduced it on current
main(6144c45) with a local build. From the Continue Watching card's menu, both actions stored the row and showed "Added to favorites" and "Added to watchlist", and both pages then showed 0 results.The write works; the pages leave the row out. They read
POST /api/v2/catalog/querywithsource=favoritesorsource=watchlist, and that personal-source query joinsmedia_items, which has no episode rows. Episodes are missing from the default All Media view and from the Home rows, and only show up if you pick the Episodes type filter. The episode and season detail pages, and the episode cards on them (EpisodeCarousel,SeasonEpisodeGrid), already leave both actions out. The generic cards (ItemCard,SectionItemCard,ContinueWatchingCard) didn't, so episodes in Continue Watching, Next Up, Home rows and catalog grids still offered them.Approach
buildMediaItemMenuModelnow decides by item type instead of relying on each card to passshowCollectionActions={false}. Seasons and episodes don't offer Add to Favorites or Add to Watchlist, and the poster heart is hidden for them. That covers the dropdown, the long-press sheet on touch screens and the heart, on every card that rendersMediaItemMenu. Movies, series and the other types are unchanged.An episode that's already on a list keeps its Remove entry. Episode favourites also come from history import, Jellyfin clients and the Apple and Android apps, and they still count toward the show's new-episode notifications, so people need a way to take them off. Seasons follow the same rule, although no web card shows a season menu today and the server rejects season writes with a 404.
This is web-only. The API still accepts episode writes, and the favourites and watchlist write path, which #2425 is changing, is untouched.
The other way to fix this is to show episodes in the lists. The Apple app already offers per-episode favourite and watchlist actions and lists saved episodes under TV Shows, because it reads
GET /api/v2/favorites, which resolves episodes. I've raised that on #2137 for a maintainer to decide. Follow-ups for the native apps, which offer these actions on episodes too: Silo-Server/silo-apple#788 and Silo-Server/silo-android#569.Validation
MediaItemMenuor one of the cards (19 files, 202 tests): pass.tsc -p tsconfig.app.json --noEmit, Prettier and ESLint on the changed files: clean. ESLint reports two existing warnings in untouched code.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-2433/
Surface and build: web app at desktop (1440 × 900) and phone (390 × 844, touch) widths, Home Continue Watching row, an episode page, a movie card and the Favorites and Watchlist pages. Before is
main6144c45; after is this branch (4832859). Both ran against the same local backend and test library, with the same profile and data.Risks
None identified. Existing episode rows stay in the database and keep their current effects, and they can still be removed from any episode card that shows them as saved.
Checklist
AI Disclosure
AI-assisted with Claude Opus. I directed the task and designed the work.