- 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
4.5 KiB
4.5 KiB
title, tags
| title | tags | ||
|---|---|---|---|
| Changelog |
|
Changelog
All project milestones. See also changes.md in project root.
Milestone 001
Backend
- Added accuracy filter (
WHERE accuracy = 'EXACT') to Statistics watchday distribution queries instatisticsController.js
Frontend
- Replaced Calendar popover with native
<input type="date">in Watch Tracking and Watch Tracking for easier year selection - Merged date + accuracy into a single row in both seen dialogs
- Statistics: uses
createdAtonly (removeddate_first_seen), includes all entries (watchlist + library) - Pages and Pages: added
max-w-4xlwidth constraint - Navigation now show "Title / Season x / Episode x" instead of generic labels
- Fixed EpisodePage using
seasonId(DB id) instead ofseason.season_numberfor display - Added cleanup section to Settings Page for orphan files/media records
- Created API Clients API client
Milestone 001.1
Backend
- Fixed People duplicate bug: changed dedup key from
people_id + cast_type + tmdb_credit_idtopeople_id + cast_type— TV series credits no longer re-inserted on every refresh - Fixed TV series character/job extraction: detects
aggregate_creditsformat viaArray.isArray(c.roles)instead ofis_tvseriesflag; joins all roles/jobs with"; " - Added
episode_countfield to Models#Credit model (from TMDBtotal_episode_count) - Increased
characterandjobcolumns fromVARCHAR(100)toVARCHAR(500)for multiple roles - Fixed Collections media upload: deselects existing posters/backdrops before inserting new custom upload
Frontend
- Created Components#Dialogs — dedicated dialog replacing the old two-step EpisodeSeenEditDialog + ConfirmDialog flow
- Added Scatter Mode: distributes episodes across a date range with even spread and live preview
- "Mark Season Watched" button on Pages#SeasonPage is now always visible
Milestone 002
Backend
- Added
favoriteandpinnedboolean fields to Models#People model - Added
entry_sync_statusfield to Models#Entry model - Added
searchPeoplemethod to Services for local DB search by name fetchAndSavePersonByTmdbIdnow acceptsoptions.pinnedfor manual person adds- Added orphan people cleanup to Services: finds people with no credits and not pinned
- Added
GET /maintenance/orphan-peopleandDELETE /maintenance/orphan-peopleroutes - Added
markEntriesRequireCreditsSync()to dataInitializer — marks entries needing credit sync
Frontend
- Pages#SeasonPage: Seen button always clickable (supports multiple seen records); shows seen dates with tooltip; improved mobile responsive layout
- Components: Quick actions dropdown menu (Favorite, Hide, Delete, Remove from collection); non-library entries now add to library + navigate instead of opening dialog
- Collections: Remove entry from collection via quick actions menu
- People: Error handling for missing persons; favorite toggle button
- People: Debounced search, Local DB toggle, All/Favorite filter
- Library: Persistent filter/search/sort state via Zustand store (
useLibraryFiltersStore) - Added
useUpdatePerson,useSearchLocalPeople,useRemoveEntryFromCollectionHooks - Added
update,searchmethods to API Clients - Added orphan people endpoints to API Clients
- Components: Moved quick actions to top-right icon button; added all Entry Details page actions (Mark watched, Rate, Watch History, Add to collection, Refresh, Manage media, Settings) with lazy-loaded dialogs
- Collections: Added sort toolbar (Order, Year, Title, Rating) with asc/desc toggle
- Backend: Added
GET /entries/tmdb/preview/:type/:tmdbId— TMDB preview endpoint (no library save) - Created Pages#TmdbPreviewPage — shows TMDB entry details with "Add to Library" button; TV series shows season/episode count
- Components: Non-library entries now navigate to TMDB preview page instead of auto-adding to library
- Added
TmdbPreviewtype,previewTmdbAPI method,useTmdbPreviewHooks