Repository navigation
feat(sections): show episode context in cards - #18
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (13)
📝 WalkthroughWalkthroughThis PR extends home section generation to support episode-scoped sections with a kind-based abstraction, enriches section responses with fetched episode metadata, and adds frontend episode card labeling for series title and formatted episode codes. ChangesBackend: Generated Sections and Episode Enrichment
Frontend: Episode Card Labeling and Component Updates
🎯 3 (Moderate) | ⏱️ ~25 minutes
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b880c7d. Configure here.
| const displayTitle = | ||
| item.type === "episode" && item.series_title ? item.series_title : item.title; | ||
| const episodeLabels = buildEpisodeCardLabels(item); | ||
| const displayTitle = episodeLabels ? episodeLabels.seriesTitle : item.title; |
There was a problem hiding this comment.
Episode display title regresses when season/episode numbers missing
Low Severity
The old displayTitle logic showed item.series_title for any episode that had one, regardless of whether season_number/episode_number were present. The new logic delegates to buildEpisodeCardLabels, which returns null when season_number or episode_number is missing, causing displayTitle to fall back to item.title. Episodes with a series_title but incomplete season/episode metadata will now display the episode title instead of the series title in the browse grid.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit b880c7d. Configure here.
…ion-labels feat(sections): show episode context in cards
feat(sections): show episode context in cards


Note
Low Risk
Mostly presentation and default-section seeding; section API adds an extra fetch for episodes missing meta, which is a small performance/behavior change on list endpoints.
Overview
This PR improves how episode items appear in section/browse cards and tightens default sections for TV libraries.
Section API: When building home/library section responses, episode rows that lack per-item metadata now get a batched lookup (
FetchEpisodesByContentIDs) so responses includeseries_title,season_number, andepisode_numberwithout overwriting metadata already on the section.Defaults & generated home rows: New and restored defaults are library-type aware. Series libraries use a “Recently Released Episodes” custom-filter query (episodes by
release_date) on the home page and in library defaults, instead of a generic “recently released” row and the old “Recently Released TV Shows” library section (series default count goes from 7 → 6). Generated home sections are keyed by kind (added / released / released episodes), with episode-specific config and title sync when a library is renamed; library creation passesfolder.Typewhen seeding generated home sections.Web UI:
ItemCardandSectionItemCarduse sharedbuildEpisodeCardLabelsso episodes show the series as the primary title, the episode title as a subtitle when distinct, and a zero-padded code (S01E01instead ofS1 E1).Reviewed by Cursor Bugbot for commit b880c7d. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit
Release Notes
New Features
Improvements