Commit Graph
66 Commits
Author SHA1 Message Date
X4Lo a5659cf4c8 Normalize to double quotes across all files with Prettier 2026-06-21 22:28:08 +01:00
X4Lo 3c089ee110 Add duplicate credits maintenance and fix dedup logic 2026-06-18 22:08:46 +01:00
X4Lo 5a0328a17f Director field, search, and collection improvements
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.
2026-06-18 20:09:11 +01:00
Mohammed Abad 22d111ef71 fix(backend): include EpisodeSeen in season episodes and add entry credits endpoint
- Add getEntryCredits service method returning all cast + crew with People, ordered by cast_type, order, episode_count
- Add getEntryCredits controller method
- Add GET /entries/:id/credits route in entry.routes.js
- Include EpisodeSeen association in getSeasonEpisodes so seen dates are returned to frontend
2026-04-29 16:04:10 +01:00
Mohammed AbadandCopilot 6d676d803c feat(people): add pagination support to getAllPeople endpoint
Support optional page, limit, and search query params.
Returns { data, total, page, totalPages } when paginated,
plain array for backward compatibility.

Co-authored-by: Copilot <copilot@github.com>
2026-04-27 13:29:16 +01:00
Mohammed Abad 0329808562 Small fixes 2026-04-27 12:07:39 +01:00
X4Lo 23bce5a681 Merge branch 'react-frontend' of https://github.com/X4Lo/Showy into react-frontend 2026-04-27 04:03:39 +01:00
Mohammed Abad 25b645a16f feat(backend): add TMDB preview endpoint for non-library entries
- 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
2026-04-27 04:03:02 +01:00
X4Lo e9bc8886d4 Minor changes
- Updated frontend credit type
- Updated sorting of entry credits in `getEntryById()`
2026-04-23 22:23:10 +01:00
Mohammed Abad ce01dc34fa feat(backend): fix credit duplicates, support multi-role TV credits, fix collection upload
- 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
2026-04-23 16:51:18 +01:00
X4Lo 72fd77ee01 Backend: Updated tmdb services endpoint to get tv series credits 2026-04-22 13:54:23 +01:00
Mohammed Abad ab20a5e64f feat: multi-page improvements, bug fixes, and new features
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
2026-04-02 03:29:54 +01:00
Mohammed Abad 11eab03987 Backend:
- Enhance PeopleController with person credits and TMDB filmography endpoints;
- update episodeService to filter entries by showInCalendar;
- add fetchPersonCombinedCredits function in tmdbService
2026-04-01 00:07:41 +01:00
Mohammed Abad 236e6e06fb Backend: Add TMDB proxy routes and service methods for trending, popular, and search functionalities 2026-03-30 23:33:29 +01:00
X4Lo 4a1d2bc614 Backend: Implement async error handling wrapper and refactor entry and media controllers to use it 2026-03-30 17:25:46 +01:00
X4Lo c8141fb87b Backend: minor changes 2025-07-12 15:29:43 +01:00
X4Lo 9d8f2899d4 Backend: People & Media
- 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
2025-07-12 02:54:18 +01:00
X4Lo 367c9899a0 Backend: Added auto entry refrech each 24h 2025-07-12 02:50:44 +01:00
X4Lo 1224d48c5c Backend: Optimized entry credits creation on create and refrech 2025-07-12 00:11:59 +01:00
X4Lo f1cd3f9167 Backend: minor fixes + Added people media folder auto creating & mutler upload function 2025-07-11 23:38:00 +01:00
X4Lo 381f921df7 Backend: Implemented people fetching on entry create/refrech 2025-07-11 23:28:37 +01:00
X4Lo b5ea25631d Backend: Added People rouets, controller and service 2025-07-11 23:27:40 +01:00
X4Lo 032d92994d B: Added tmdb fetch function for entry credits and people details 2025-07-11 15:13:58 +01:00
X4Lo 4e20c5320b Backend:
- add download of episode media function
- serving of episodes/seasons files
- pulling seasons/episodes media on entry create
- maintenance for seasons/episodes media
2025-04-01 23:53:25 +00:00
X4Lo 534572775f B: add download of season media + maintenance 2025-02-20 01:34:42 +01:00
X4Lo d799ef2368 B: add storage service 2025-02-20 01:33:54 +01:00
X4Lo 59f5d70f09 F: season page, addd more episodes view modes + various fixes 2025-02-19 14:31:39 +01:00
X4Lo 387686ad0f Add Season Page 2025-02-18 17:54:45 +01:00
X4Lo cc1d1cdadf B: switched to using config service in tmdb service 2025-02-18 17:52:51 +01:00
X4Lo 5dc5a023b8 add networks + random changes 2025-02-15 23:40:34 +01:00
X4Lo dbb00fdb61 Major Backend SI Update part 2: added controllers 2025-02-15 22:42:57 +01:00
X4Lo 3bb0935db9 changed folder structure and added readme file 2025-01-25 06:13:29 +01:00
X4Lo cbdffb21e3 Major Backend Single Responsibility Update part 1 2025-01-25 04:29:42 +01:00
X4Lo 0b1a1d989f Random changes 2024-10-21 16:06:32 +01:00
X4Lo 7160669468 Front/Back: add tv-series auto sync when vising the calendar 2024-10-21 15:59:04 +01:00
X4Lo f7cb2bed53 Major rework of media handelling, and collections 2024-09-13 21:27:01 +01:00
X4Lo b42e055691 Back: reworked the media/entry relation 2024-09-10 21:32:46 +01:00
X4Lo d06a21097f random changes 2024-09-10 19:07:43 +01:00
X4Lo 5008940c59 Back: add episode service for calendar 2024-09-10 19:07:12 +01:00
X4Lo 9b8ff730c3 Back: tmdb service: add fetch collection 2024-09-10 19:06:47 +01:00
X4Lo f683e7d00e Back: renamed some services 2024-09-10 19:06:05 +01:00
X4Lo eba9721a3c add media page + backend + minor changes to media related stuff & sidebar 2024-09-10 00:43:39 +01:00
X4Lo c46309e458 add entry media upload menu 2024-08-30 14:25:58 +01:00
X4Lo 336519be70 minor fixes/changes 2024-06-23 17:01:31 +01:00
X4Lo 252f15ffd9 add: more settings options 2024-06-23 17:01:18 +01:00
X4Lo f50cf0ae31 fix: maintenance service preview files bug 2024-06-20 23:17:40 +01:00
X4Lo 34766ba8e9 implemented images maintenance, services + component 2024-06-06 03:41:55 +01:00
X4Lo ba96f540ca refactored the media service 2024-06-06 03:40:46 +01:00
X4Lo 710ebcc934 Merge branch 'master' of https://github.com/X4Lo/Showy 2024-06-05 16:53:14 +01:00
X4Lo 95e08acc8f updated import service 2024-06-05 16:52:44 +01:00