- Fix "rendered more hooks" crash in CollectionDetailsPage by moving all hooks before conditionals
- Persist library search/filters only on back navigation using useNavigationType
- Add resetAll() to useLibraryFiltersStore
- Move sort toolbar to hero bottom-right in CollectionDetailsPage
- Fall back to entry backdrops when collection has none
- Show full cast in TmdbPreviewPage matching EntryDetailsPage layout
- Remove tagline/icons from TmdbPreviewPage to match in-library style
- Lazy load people in local DB mode with infinite scroll
- Move All/Favorite filter to right side in PeoplePage, always visible
- Track dropdownOpen state in EntryCard to fix menu close flash
Co-authored-by: Copilot <copilot@github.com>
- Add credits fetch to GET /entries/tmdb/preview/:type/:tmdbId endpoint
- Map cast/crew to Credit-like shapes in preview response
- Fall back to entry backdrops when collection has no backdrop
- 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>
- Add GET /entries/tmdb/preview/:type/:tmdbId endpoint in entryController.js
- Fetch TMDB data via tmdbService.fetchEntryData() without persisting to DB
- Return normalized preview object with title, poster, genres, rating, season/episode counts
- Create MarkSeasonWatchedDialog replacing two-step EpisodeSeenEditDialog+ConfirmDialog flow
- Add scatter mode to distribute episodes across a date range with preview
- Always show "Mark Season Watched" button on SeasonPage
- Fix credit dedup key to people_id + cast_type (scoped to entry_id)
- Detect aggregate_credits format via Array.isArray(c.roles) instead of is_tvseries flag
- Join multiple roles/jobs with "; " instead of taking only the first
- Add episode_count field to Credit model from total_episode_count
- Increase character and job columns to VARCHAR(500)
- Deselect existing collection posters/backdrops before inserting new upload
- Updated docs-vault
- Updated some agents files
- 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
- Backend: add accuracy field (ENUM: EXACT, ESTIMATED, UNKNOWN) to EntrySeen and EpisodeSeen models
- Backend: add migration in dataInitializer to add accuracy column, set existing to EXACT, set 2021-01-01 entry seens and 2020-01-01 episode seens to UNKNOWN
# 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
- Enhance PeopleController with person credits and TMDB filmography endpoints;
- update episodeService to filter entries by showInCalendar;
- add fetchPersonCombinedCredits function in tmdbService
- Added people manager
- Auto update non fully fetched people
- People media downloader
- Updated media controller to serve peoples profiles
- Config people media folders auto creation