- 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
2.5 KiB
2.5 KiB
Milestone 001
Backend Changes
- Added
WHERE accuracy = 'EXACT'filter togetWatchdayDistributioninstatisticsController.jsfor both EpisodeSeen and EntrySeen queries, so CouchDay chart only reflects exact-date data
Frontend Changes
- EntrySeenDialog: Replaced Calendar popover with native
<input type="date">for easier year selection; merged date + accuracy into a single row; removed unuseddatestate - EpisodeSeenEditDialog: Merged date input and accuracy select into one flex row
- LibraryGrowthChart: Changed
getEntryDateto use onlycreatedAt(removeddate_first_seenfallback); removed watchlist filter so all entries are included - SeasonPage: Added
max-w-4xlwidth constraint; changed breadcrumb from "Back to entry" to "Title / Season x" with link to entry - EpisodePage: Added
max-w-4xlwidth constraint; changed breadcrumb from generic "Entry / Season" to "Title / Season x / Episode x"; fixed S## display to useseason.season_numberinstead ofseasonId(DB id) - SettingsPage: Added "Cleanup" card section with Scan/Delete buttons for orphan files and orphan media records, using existing maintenance API endpoints
- Created
api/maintenance.tsAPI client for maintenance endpoints
Milestone 001.1
Backend Changes
- Fixed credit duplicate bug: changed unique key from
people_id + cast_type + tmdb_credit_idtopeople_id + cast_type(scoped to entry_id) so TV series credits aren't re-inserted on every refresh - Fixed TV series character/job extraction: now detects aggregate_credits format via
Array.isArray(c.roles)instead of relying onis_tvseriesflag; joins all roles/jobs with"; "instead of only taking the first - Added
episode_countfield to Credit model, populated fromtotal_episode_countin aggregate_credits response, tracked in change detection andupdateOnDuplicate - Increased
characterandjobcolumn size from VARCHAR(100) to VARCHAR(500) to accommodate multiple roles joined by"; " - Fixed collection media upload: now deselects existing posters/backdrops (
isSelected = false) before inserting new custom upload
Frontend Changes
- Created
MarkSeasonWatchedDialog— dedicated dialog for marking a season as watched, replacing the old two-step EpisodeSeenEditDialog+ConfirmDialog flow - Added Scatter Mode toggle: distributes episodes across a date range (start → end) with an even spread, shows preview of days and max episodes/day
- "Mark Season Watched" button is now always visible (not hidden when all episodes are watched)