Commit Graph
64 Commits
Author SHA1 Message Date
Mohammed Abad 8aca121b10 fix: people details page not working for people that are not in db 2026-04-27 12:33:02 +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
Mohammed Abad 6bff2055b4 fix: season episode dialog, mark season watched, episode 404 handling
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.
2026-04-03 17:49:16 +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 ae67663623 feat(dashboard): add recharts data visualizations
- Install recharts
- Add WatchActivityChart (AreaChart, movies + episodes/month, year filter)
- Add WatchTimeChart (stacked BarChart, hours/month, synced year filter)
- Add RatingsChart (BarChart, user ratings distribution 1–10, color ramp)
- Add TopGenresChart (horizontal BarChart, top 10 genres, type filter)
- Add CouchDayChart (BarChart, watch count by weekday, peak day highlight)
- Add GET /statistics/watch-weekday backend endpoint (DAYOFWEEK aggregation)
- Extend statisticsApi with getYearlyWatchCount, getYearlyWatchTime, getWatchdayDistribution
- Add useYearlyWatchCount, useYearlyWatchTime, useWatchdayDistribution hooks
- Wire all charts into DashboardPage with responsive two-column grid layout
2026-04-01 16:04:43 +01:00
Mohammed Abad 191f4d6aae fix(frontend): calendar thumbnail, episode delete confirm, mark-as-watched dialog
- 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
2026-04-01 00:59:09 +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 f1cd3f9167 Backend: minor fixes + Added people media folder auto creating & mutler upload function 2025-07-11 23:38:00 +01:00
X4Lo b5ea25631d Backend: Added People rouets, controller and service 2025-07-11 23:27:40 +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 31d38d8da9 Add loading page when starting the app + fix electron refresh error 2024-10-21 16:08:27 +01:00
X4Lo 0b1a1d989f Random changes 2024-10-21 16:06:32 +01:00
X4Lo 1e1384d777 Front: fix entry removed from collection not updating UI 2024-10-21 15:55:36 +01:00
X4Lo 625ec3367e Front/Back: add entry settings modal 2024-10-21 15:43:09 +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 4fbbc4b113 add calendar page + backend 2024-09-10 01:24:02 +01:00
X4Lo f73deb4f2d Back: entry service add: entry media routes, refrech collection, get collection on create, sync series route 2024-09-10 01:22:04 +01:00
X4Lo 776506b232 changes + fixes to collections related component + add filter by collection type 2024-09-10 01:15:14 +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 bba03c214a add total watch time (all time & yearly) endpoints 2024-07-05 04:47:12 +01:00
X4Lo a0e6182dde moved statistics related routes to their own endpoint 2024-07-05 04:28:06 +01:00
X4Lo 336519be70 minor fixes/changes 2024-06-23 17:01:31 +01:00
X4Lo 7a21c6ebd8 add table view to library page 2024-06-06 15:07:14 +01:00
X4Lo 34766ba8e9 implemented images maintenance, services + component 2024-06-06 03:41:55 +01:00
X4Lo b872cd0733 fixed electron build + implemented dynamic settings + custom user data folder 2024-06-05 00:14:48 +01:00
X4Lo 29d6e3f503 Add specific episode-seen 2024-05-19 17:03:38 +01:00
X4Lo bffc1227c3 add: update modal for entry seen 2024-05-19 06:55:47 +01:00
X4Lo d6c3a974a1 renamed backend routes files + add fields to entry model 2024-05-18 15:37:02 +01:00
X4Lo 21aaead02a minor changes/fixes 2024-05-18 15:31:20 +01:00
X4Lo 06be888123 add media download service and started using it 2024-05-18 15:28:42 +01:00
X4Lo ec45cd342f add table view for collection info page 2024-05-17 18:09:05 +01:00
X4Lo c9881b5558 fix episodes history not being ordered 2024-05-12 08:48:14 +01:00
X4Lo dde494a11e fixed entry genres not showing up after updating favorit/hidden status 2024-05-11 06:25:52 +01:00
X4Lo 7fc1bdd875 various fixes to the entryRoute... 2024-05-10 09:50:40 +01:00
X4Lo a05fdd44ec dashboard version 1 2024-05-10 09:45:54 +01:00
X4Lo f94ec0ba14 implemented episode seen hook for create/update/delete 2024-05-02 01:20:56 +01:00
X4Lo a5b66b4136 entry seen hook pt2 2024-05-02 01:18:26 +01:00
X4Lo e8c4fba943 implemented UserCollection edit modal + custom collection poster + media access route 2024-05-01 23:44:33 +01:00
X4Lo 1b21d84d0b implemented UserCollectionEntry order update on the backend 2024-04-30 23:53:47 +01:00
X4Lo cea1b207a3 implemented hooks for user-collections & user-collection-entry models to update updatedAt and order fields 2024-04-30 22:21:17 +01:00
X4Lo 36866dabe6 started implementing bulk csv import 2024-04-29 02:25:50 +01:00
X4Lo 299f566b96 add favorit button in entry page 2024-04-28 00:26:07 +01:00
X4Lo a3f1b16376 add edit/delete episode seens in episode seen history 2024-04-24 13:22:56 +01:00
X4Lo dbeb0ee524 add episode seen history in entry page 2024-04-22 17:41:30 +01:00
X4Lo 7bf23432d6 changes to routes + add season route 2024-04-20 15:44:49 +01:00