Skip to content

fix(web): stop offering favourites and the watchlist on episode cards - #2433

Merged
Quick104 merged 1 commit into
Silo-Server:mainfrom
blurbery:fix/2137-episode-list-actions
Oct 14, 2026
Merged

Quick104 merged 1 commit into
Silo-Server:mainfrom
blurbery:fix/2137-episode-list-actions

Conversation

@blurbery

@blurbery blurbery commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

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/query with source=favorites or source=watchlist, and that personal-source query joins media_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

buildMediaItemMenuModel now decides by item type instead of relying on each card to pass showCollectionActions={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 renders MediaItemMenu. 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

  • Web unit tests (vitest, the two changed files): the 6 new tests fail on 6144c45 and pass on this branch. They cover episodes and seasons not offering Add, an episode already on a list keeping Remove without a heart, and the menu of a Next Up episode card.
  • Every web test file that renders MediaItemMenu or 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.
  • Manual check on a local build (backend 6144c45, Vite dev server, test library): the Continue Watching episode card's menu at desktop width and its long-press sheet at 390 px, a movie card's menu, and the episode page.
  • The full gate runs in CI. No Go files changed.

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 main 6144c45; 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

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

AI-assisted with Claude Opus. I directed the task and designed the work.

  • Harness: Claude Code in the Claude desktop app
  • Tool(s): Claude Code, with subagents for code search and review
  • Model(s): claude-opus-5-5 for the main session; the subagents used Claude Code's default subagent models
  • Involvement: AI-assisted
  • Adversarial review: a separate Claude Code subagent, working from the diff without the session's context, checked for missed add paths, regressions for other item types, the Remove-only behaviour and test quality. It found no correctness problems. I fixed its other notes: two comments that overstated which items the lists hold, and an existing test that no longer exercised the prop it names.

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

silo-kody Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 03b7d9a0-1a1b-4ca5-aedc-8f55a33dbf0f
📥 Commits

Reviewing files that changed from the base of the PR and between 6144c45 and 4832859.

📒 Files selected for processing: 3
  • web/src/components/ContinueWatchingCard.test.tsx
  • web/src/components/MediaItemMenu.test.tsx
  • web/src/components/MediaItemMenu.tsx

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

📝 Walkthrough

The media menu no longer offers favorite or watchlist add actions for episodes and seasons. Items already on either list retain the corresponding removal action. The poster favorite shortcut is hidden for these media types.

Changes: Episode and season personal-list actions

Layer / File(s) Summary
Restrict episode and season list actions
web/src/components/MediaItemMenu.tsx, web/src/components/MediaItemMenu.test.tsx, web/src/components/ContinueWatchingCard.test.tsx
The menu hides favorite and watchlist add actions for episodes and seasons, and hides the poster favorite shortcut. Existing list entries retain their removal action. Tests cover the menu model, component menu, and a Next Up episode.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: quick104

Merge Risk: ⚪ Minimal · up to 48328

Episode and season cards no longer offer Add to Favorites or Add to Watchlist, which avoids actions that appeared to succeed but never showed up in the lists. Episodes already on a list keep their Remove option. No merge-blocking risk is evident.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Linked Issues check Passed Issue #2137 requires the web UI to stop offering Favorites and Watchlist add actions for episodes and limit these actions to the show level. The change restricts canAddToPersonalLists for episodes a…
Out of Scope Changes check Passed The changes stay within the linked issue scope. The implementation changes the shared web menu behavior and adds focused tests for affected cards and menu states. It does not change the API or the per…
Title check Passed The title clearly and concisely describes the main change: it stops offering Favorites and Watchlist actions on episode cards. The change also covers season cards, but this omission does not make the …
Description check Passed The description is directly related to the changeset. It explains the episode and season list behavior, the implementation, preserved removal actions, tests, validation, and scope.
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@silo-triage silo-triage Bot added bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish labels Oct 14, 2026
@Quick104
Quick104 merged commit 9d649fb into Silo-Server:main Oct 14, 2026
20 checks passed
Quick104 added a commit to blurbery/silo-server that referenced this pull request Oct 15, 2026
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]>
@blurbery
blurbery deleted the fix/2137-episode-list-actions branch November 6, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Favorite and Watchlist buttons on episodes appear to work, but added episodes never show up

2 participants