- Entry details page now also renders entries not in the library, using
the TMDB preview mapped to the same entry shape; remove TmdbPreviewPage
- Preview endpoint returns an entry-shaped object, TMDB seasons and
directors
- Artwork section: TMDB posters, backdrops and logos merged with the media
table, with in-library badges, language filter and add-to-library
- Record tmdb_path on downloaded media so TMDB images can be matched
- Recommendations by TMDB id for entries not in the library
Backend
- Route all TMDB requests through a rate limiter (20 req/s, 8 concurrent)
with 429/5xx retries; stop logging the API key
- Fetch external ids, certification, keywords, videos, watch providers and
alternative titles in the entry details request
- Shared entry mapper used by create, refresh, season refresh and importer
- New columns on entries, ids, ratings, seasons, episodes and people, with
an idempotent startup migration (adds missing columns, widens types)
- Fix TV IMDb ids, network country/logo, episode tmdb_id on refresh, and
genre/network removal on refresh
- Add stale-entries maintenance job (count, start, cancel) and live
recommendations endpoint
Frontend
- Entry page: certification, tagline, creators, in-app trailer, vote count,
TV/movie details, network logos, external links, keywords, where to
watch, and recommendations
- Episode page: directors, writers and guest stars
- Settings: TMDB refresh card with live progress
Let users upload videos, tag them with one or more entries, and watch
them from a new Discovery Videos page.
Backend:
- Add Video and VideoEntry models and relations
- Add video controller and /video routes
- Add video thumbnail generation service (ffmpeg-static)
- Add video upload storage location and config
Frontend:
- Add DiscoveryVideosPage with sidebar link and route
- Add AddVideoDialog, VideoDropzone, EntryMultiSelect, VideoCard
and VideoPlayerDialog components
- Add discoveryVideos API client and useDiscoveryVideos hook
- Add format helpers, video types and normalizers
- Add skeleton for the page
Docs:
- Document the feature in docs-vault
Backend: Added PUT /seasons/:id/refresh endpoint that fetches updated
TMDB data for a single season.
Frontend:
- New SeasonRatingDialog for rating seasons via StarRating
- useRefreshSeason and useUpdateSeason hooks with query invalidation
- SeasonPage now shows inline season rating (user + TMDB)
- Mark Watched, Rate, and Refresh actions moved under a dropdown menu
- Backend: fixImpossibleSeenDates scan/fix in maintenanceService
detects movies with EntrySeen date before release_date, adds
them to a "Movies with impossible seen date" collection
- Frontend: ImpossibleSeenDatesSection in SettingsPage with
Scan and Fix buttons
- Updated API docs (Clients + Reference), cleaned up removed
migrateSeenWith references
- Created WatchBuddy model
- M:N junctions to EntrySeen/EpisodeSeen
and Media relation for profile pictures
- Full CRUD + search + profile picture upload
- WatchBuddySelect multi-select with search and inline create, replaced
all seen_with text inputs
- WatchBuddiesPage (grid) and WatchBuddyProfilePage (edit form,
icon-based contacts, poster-grid watch history, monthly timeline)
Added watch_status column to Entry model (plan_to_watch/watching/completed/
on_hold/dropped). Status pill on entry details page opens selection dialog.
Set Status in quick actions menu and EntryCard dropdown (TV only).
Status filter in Library filter popover. Maintenance auto-fix endpoint
that sets statuses based on watched episodes (excl. season 0).
Backend: Added director column to Entry model, set during creation and
refresh. Maintenance endpoint to scan/fix missing directors. Reverted
expensive credit JOIN in getAllEntries.
Frontend: @director: search prefix for Library and Watchlist. Director
rendered on EntryDetailsPage via useEntryCredits. Fixed home page cards
to link directly to EntryDetailsPage when entry is in library. Added
TmdbCastsPage for TMDB cast browsing. Persisted collection sort order
and gray-out-unseen toggle. Tooltip component now theme-aware.
- Display all seen dates inline (comma-separated) on episode cards in SeasonPage; remove unused Tooltip imports
- Propagate episode_count in normalizeCredit so TV series cast shows X ep.
- Add entriesApi.getCredits(id) API method and useEntryCredits(id) hook
- Load all credits in EntryCastsPage via useEntryCredits (no more 10-cast limit)
- Replace full-list render with IntersectionObserver lazy loader (24 per chunk)
- Fix Sort/Filter Select trigger to show human-readable label instead of raw key
- PersonDetailsPage (TMDB mode) redirects to /people/:localId when local_id is present
- "Add to Library" button only shown for people not in local DB
- Shows skeleton during redirect to avoid flash of preview content
Co-authored-by: Copilot <copilot@github.com>
- Merge PersonDetailsPage and PersonTmdbRedirectPage into one component
- /people/:id fetches from local DB with favorite toggle
- /people/tmdb/:tmdbId fetches from TMDB with "Add to Library" button
- Add TMDB external link in person metadata
- Fix CastList links for TMDB preview cast (use /people/tmdb/:tmdbId)
- Replace 11MB getAll() with server-side paginated infinite scroll
- Add useLocalPeopleInfinite hook and PaginatedPeopleResponse type
- Add TmdbPreviewPage showing TMDB details without adding to library
- Display backdrop, poster, title, tagline, genres, rating, storyline
- Show season/episode count for TV series
- Add "Add to Library" button that creates entry then redirects to details page
- Show "Already in Library — View" if entry exists in DB
- Add /entry/tmdb/:type/:tmdbId route in router.tsx
- Add TmdbPreview type, entriesApi.previewTmdb(), and useTmdbPreview() hook
- Update EntryCard to navigate to preview page instead of auto-adding
Co-authored-by: Copilot <copilot@github.com>
- EntrySeenDialog: native date input, merged date+accuracy row
- EpisodeSeenEditDialog: merged date+accuracy row
- LibraryGrowthChart: use createdAt only, include all entries
- SeasonPage/EpisodePage: max-w-4xl, improved breadcrumbs ("Title / Season x / Episode x"), fixed season number display
- SettingsPage: added Cleanup section for orphan files/media records
- Added maintenance API client
- Updated docs-vault and project documentation
- SeasonPage: add back navigation link to entry details page
- EpisodePage: add breadcrumb navigation back to entry and season pages
- EntryCard: non-library entries now open a details dialog on click with overview, rating, and add-to-library button
- EntryDetailsPage: move favorite and mark-watched buttons into grouped dropdown menu with separators
- EntryDetailsPage: add favorite badge (heart icon) on top-left of poster
- EntryDetailsPage: add "mark as watched" clickable text next to runtime for unwatched movies
- EntryDetailsPage: genre pills are now clickable links that navigate to library page with genre filter
- EntryDetailsPage: hide status pill for movies; show status as text next to release date for TV series
- EntryDetailsPage: add delete entry option in dropdown menu with confirmation dialog and redirect to library
- EntryDetailsPage: add TMDB and IMDb external links under poster using entry.entryIds
- EntryDetailsPage: group all dropdown actions by relevance (Watch/Rate, Organize, Manage, Danger) with separators
- RatingDialog: support half-star ratings (0.5 increments) with left/right click zones per star
- RatingDialog: fix clear rating button by syncing state on dialog open and using dedicated handleClear function
- LibraryGrowthChart: add "All" option to year selector (default) showing cumulative growth across all years
- Frontend: add SeenAccuracy type to types/index.ts, update API layers and hooks to support accuracy
- EntrySeenDialog: add Date Accuracy selector (Exact/Estimated/Unknown) with EXACT default
- EpisodeSeenEditDialog: add Date Accuracy selector, updated overrideSubmit signature
- SeasonPage: pass accuracy through bulk mark-all-watched flow
# Phase 1: Feature Implementation
- Add "Create new..." option in `AddEntryToCollectionDialog` for inline collection creation with auto-select
- Implement lazy loading pagination with IntersectionObserver for Watchlist, Collections, and Media pages
- Add reusable useDebounce hook (300-400ms) and apply to all search inputs across pages
- Reset scroll position to top when switching between sidebar navigation pages via useLocation()
- Reorganize MediaPage with horizontal control layout, add Media Type filter (All/Audio/Video), and Custom Media filter (Show All/Official Only/Custom Only)
- Add three-dot menu (MoreHorizontal icon) to collection cards with Edit/Delete options and "Get all parts" feature
- Replace numeric rating input with interactive star rating component in EditCollectionDialog (0-10 stars with half-star support)
- Display entry type badges ("Movie" / "TV Series") on home page trending/popular sections and search results
- Create PeopleSearchResult component with profile images; integrate useTmdbSearchPeople hook linking to `/people/tmdb/:tmdbId`
- Add TMDB Rating and User Rating filters to Library page with range sliders (0-10, step 1) and state persistence in useLibraryStore
- Add All/Movies/TV Series type filter to Watchlist page with filtered count display
- Improve People Details page mobile UI: optimize header, info section sizing, and filmography card layouts for touch
# Phase 2: Architecture Refactoring & Bug Fixes
- Fix scroll-to-top on sidebar navigation by constraining AppLayout root to `h-screen overflow-hidden` so `<main>` becomes proper scroll container
- Extract search from HomePage into dedicated SearchPage component with `/search` route, debounced input, and URL query sync via SearchParams
- Add Search nav item with icon to sidebar for easy search access
- HomePage search input now navigates to `/search?q=...` instead of handling inline, separating concerns and enabling search bookmarking
- Entry type pill badges now conditionally render via `showTypeBadge` prop on EntryCard—only SearchPage passes this to prevent display on home/discover pages
- Fix people ID bug: people search results now link to `/people/tmdb/:tmdbId` (TMDB redirect route) instead of `/people/:id`, correctly mapping TMDB IDs to local database IDs through PersonTmdbRedirectPage
- Enhance People Details filmography sorting: "Not in Library" section now detects self roles (self/themselves/himself/herself) and sorts non-self by release date (new→old) with all self roles pushed to end of list
# Summary
- Created new files: SearchPage.tsx, useDebounce.ts
Seasons Page:
- Episode watch button now opens EpisodeSeenEditDialog instead of
directly marking as watched, allowing date/seen-with input
- Added "Mark Season as Watched" button that sequentially marks all
unwatched episodes in the season
Episode Page:
- Fixed UI not updating after deleting the last episode seen record;
the backend returns 404 when no records exist for an episode, which
caused the query to error instead of resolving to an empty array.
The API layer now catches 404 and returns [] gracefully.
Library:
- Exclude hidden entries from all/movies/tv/favorites tabs (only show in hidden tab)
Entry Details:
- Move favorite, mark watched, and more actions to top-right as icon-only buttons with tooltips
- Fix season card play button — marks next unwatched episode as seen
Seasons Page:
- Fix episode watch button (was a TODO stub, now calls createEpisodeSeen)
Episode Page:
- Fix UI not updating after deleting the last watch record — invalidate season episodes query on delete
Dashboard:
- Fix Top Genres 404 — was calling non-existent GET /statistics, now uses /statistics/watch-time
- Fix TopGenresChart genre counting (Genre objects were wrongly cast as strings)
- Add LibraryGrowthChart (cumulative titles added over time)
- Add MediaTypeChart (Movies vs TV Series donut chart)
Home Page:
- Add TrendingSlider hero at top of page with auto-advance, dots, and prev/next nav
- Fix slider prev/next buttons (stable callbacks via ref, plain buttons, reactive library state)
- Add debounce (400ms) to search input
- Add Top Rated section (movies & TV)
- Add Upcoming section (movies)
- Replace inline "More" expand with link to /discover/:category
Discover Page (new):
- Full-page TMDB browser per category (trending/popular/top-rated/upcoming)
- Movie/TV tab toggle
- IntersectionObserver infinite scroll
Calendar:
- Fix large season numbers — use season.season_number instead of season_id (DB primary key)
Backend:
- Add fetchTopRated() and fetchUpcoming() to tmdbService
- Add GET /entries/tmdb/top-rated/:type and /entries/tmdb/upcoming/movie routes
- CalendarPage: restore poster/still thumbnail (h-8 w-5) in episode items;
add getTmdbPosterUrl import; extend EpisodeWithEntry type with poster_path
- EpisodeSeenEditDialog: add mode 'create'|'edit' support; record prop is now
optional; create mode uses useCreateEpisodeSeen with today as default date
- EpisodePage: Mark as Watched button now opens EpisodeSeenEditDialog (create
mode) instead of firing mutation directly; delete shows ConfirmDialog before
deleting; remove unused useCreateEpisodeSeen import
- EntryDetailsPage: sticky poster layout, centered max-w-4xl, director by-line
with link, rating pills (IMDb/TMDB/You), quick actions under poster, RatingDialog
with star UI, In Collections section using backdrops, EntrySettingsDialog with
show_in_calendar / auto_sync / rating options
- RatingDialog: new component with 10-star interactive rating
- AddEntryToCollectionDialog: optimistic cache updates so checkbox state reflects
immediately and In Collections section on entry details page refreshes
- PersonDetailsPage: filmography section showing library vs. non-library entries
via person.roles, TMDB combined credits for non-library titles
- PersonTmdbRedirectPage: new redirect page for TMDB person IDs to local person ID
- PeoplePage: fix person card links to use /people/tmdb/:tmdbId
- CalendarPage: full-height layout, larger episode thumbnails, episode items
clickable, improved tooltip, show_in_calendar backend filter
- Fix useUpdateEntry to also invalidate entryKeys.all (favorite button reactivity)
- Fix updateRatings API body wrapping
- Add useUpdateEntryRatings, usePersonCredits, useFetchPersonByTmdbId hooks
- Add getCollectionBackdropUrl to media-utils
- Types: show_in_calendar, auto_sync on Entry; id on EntryRatings; roles on People
- Backend: fix fetchPersonData alias in peopleService; remove duplicate
getPersonCredits; add show_in_calendar filter to episodeService