Repository navigation
fix(web): hide collection actions on seasons and episodes - #1755
Conversation
Add to Collection on a season page sent the season's ID, and on an episode page the episode's ID. Collections hold catalog items, and the server checks the item against media_items before adding it. Seasons and episodes are not media_items rows, so every such add failed with "Item not found". The action bar now takes the collection target separately from the page's content ID. Movie and series pages add themselves, and a season page adds its parent series and names it in the picker. Episode pages no longer offer the action, because there is nothing they could add. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ry key Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…able Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe action bar now uses ChangesItem action collection eligibility
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The collection-action controls appear ready to merge after normal checks; no actionable merge-blocking risk remains in the supplied evidence. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The inspected season paths preserve collection ownership and parent-series visibility checks, and unsupported storage rejects season additions before writing. No introduced authorization bypass was established, but concurrency, rollback, and deployment behavior were not fully validated. Retained concerns Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Resolution, HDR, audio, subtitle and bitrate filters join media_files on the row's content ID. Episode files carry the series ID, so season members never matched. Season rows now join through their series key, limited to their own episodes; file sorts use the series' aggregate. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
The Collections acceptance parent #192 currently limits v1 scope to Movies and Series and requires a new criteria revision if that scope changes. This PR adds seasons and materially changes recorded Server/API cases #193 S1, S2, S3, and S6: member reads/counts, accepted add IDs, series-inherited access, and the manual item-order editor. The PR must explain why validated behavior changes and record the scope revision; these cases need re-validation after merge. The #193 S2 evidence on build 1012 also covers the repaired The existing #193 S6 blocker #1616 concerns cross-profile ordering of the collection list; this PR changes member ordering only and does not unblock it. Web #195 and native collection tasks silo-apple #20/#21 and silo-android #5/#6 are Not run, but their member grids use Suggested fix — No diff: record a new Collections acceptance revision in #192 and update the PR line to:
Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
|
Updated the description per the Macroscope check: the validation line now lists the affected cases, and the Problem section notes that adding seasons widens Collections acceptance v1 (#192: movies and series). Recording a new criteria revision there is a maintainer decision, so I haven't touched #192. The failing |
Quick104
left a comment
There was a problem hiding this comment.
Reviewed commit 64d57e817cc680061032f2b3c69c252682e9f5d4.
AI disclosure: gpt-6.1-sol in T3 Code using the Codex provider.
|
Thanks for the thorough work here. The tests, the query-plan check and the write-up of the known gaps are all good. I don't think we should take this direction for 1.0, though. Seasons as collection members cost a lot for a small use case:
The "To Watch" case is already covered by the watchlist at series level, with Continue Watching tracking progress. The simplest fix for the "Item not found" bug is to remove Add to Collection from season and episode pages. Collections hold movies and series, so the button belongs on those pages. Could you rescope this PR to just that? Then #1754 can either close or be retitled to the season-page bug. If people later ask for season- or episode-level collections, we can revisit with a concrete use case. |
|
Silo's pull request guidance changed today (#2016). A PR that changes what a user sees now needs before-and-after evidence in its Evidence section, and a PR with no visible change says Missing here: Before-and-after screenshots of the season page's Add to Collection dialog and a personal collection grid holding a season, and a recording of the add flow. The rules are in Show visible changes, and the PR template shows the Evidence section layout. I've converted this PR to draft for now. Mark it ready for review once the Evidence section is filled in. Generated by Claude Code |
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:
|
|
The current head no longer changes the server collection query or API. Two Web validation paths are touched: #195 W2 is relevant to the item-detail Add to Collection entry point (movie/series actions and the collection editor remain unchanged), and #1252 C8 navigates the season/episode hierarchy, whose detail pages now omit that action. Both cases are currently Not run, so no recorded result is invalidated; validate these UI paths on the merged build. The current validation line omits #1252 C8. Suggested fix — No diff: update the PR body to: Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
|
@Quick104 ready for another look. The three remaining threads came from the withdrawn season-membership revision and are resolved with notes; the current diff is web-only. Evidence is in the description and CI is green. |
…n-members # Conflicts: # web/src/pages/ItemDetail/components/ActionBar.tsx
|
The season and episode overflow-menu changes have before-and-after captures, but the Evidence section does not identify a mobile-width capture. Because these web controls are also visible at phone width, add before-and-after mobile web captures for each menu using the same item data and name the surface and commits. Suggested fix — No diff: add the two mobile before-and-after pairs to the Evidence section. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
Problem
Related issue: #1754
Validation tasks: changes #195 W2; changes #1252 C8
Season and episode detail pages offer Add to Collection even though collections accept movies and series. Clicking it leads to a failing action. Hide that option on these two pages, as requested in the maintainer review.
Approach
Season and episode pages disable the ActionBar collection action. The menu item and dialog stay hidden; an otherwise-empty overflow menu is also omitted. Other actions keep their content IDs. Movies and series retain Add to Collection.
The final diff changes only the web controls and their regression tests. Collection storage, API contracts and supported member types remain unchanged.
Validation
make test-web WEBTEST_ARGS='--maxWorkers=4 --vmMemoryLimit=512MB'. Earlier default runs hit two timing-sensitive failures; their files passed separately. A two-worker run ended with a worker exit; recycling workers completed the full suite.git diff --check: passed. The branch incorporates main and has no unresolved conflicts.Evidence
Before:
7d4b8318e16826928605c921df1a0ccf2136af64(main without this fix). After:b298f58cdb471e8f3c1e8e0f5600fbc682304416. Captured from real web builds in the same browser with identical synthetic items and the Reviewer profile. This verifies presentation; it does not exercise a production collection write.Movie and series menus still offer Add to Collection:
Risks
This removes an unsupported action rather than adding season or episode membership. Issue #1754 remains related because its request to collect individual seasons is broader than this fix. No database migration or backend behavior change.
Checklist
AI Disclosure
gpt-6.1-sol(current revision);claude-opus-5-5[1m](earlier branch, as previously disclosed).