Commit Graph
375 Commits
Author SHA1 Message Date
Mohammed Abad d28b4caa7e docs(react_frontend): add comprehensive documentation & AGENTS.md
- docs/README.md: overview and table of contents
- docs/tech_stack.md: full dependency inventory and design decisions
- docs/project_structure.md: directory tree with conventions
- docs/architecture.md: data flow, layer responsibilities, key patterns
- docs/routing.md: route table, code splitting, discover categories
- docs/state_management.md: Zustand stores and React Query conventions
- docs/api_layer.md: all API modules with endpoint mappings
- docs/components.md: layout, entries, collections, charts, dialogs, UI primitives
- docs/pages.md: all 16 pages with features and routes
- docs/styling.md: theming, CSS tokens, responsive breakpoints, animations
- AGENTS.md: architecture summary, code conventions, data flow, key files
2026-04-10 02:44:06 +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 984e2c8b50 feat(dashboard): enhance charts with improved data handling and user interaction 2026-04-03 02:48:03 +01:00
Mohammed Abad fac8ba1d19 fixed Library Slider 2026-04-02 03:39:49 +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 d60d142d17 feat(react): add toasts, loading states, skeletons, animations, and mobile responsiveness
- Toast notifications (sonner): success/error toasts on all mutations
- Loading spinners: EntryCard add/remove, ConfirmDialog, EntrySeenDialog, favorite/refresh buttons
- Page skeletons: 13 page-specific Suspense fallbacks replacing generic skeleton
- CSS animations: card-enter (staggered), page-enter, slide-up-fade keyframes
- Mobile layout: hamburger menu with sheet sidebar, responsive entry details
- Mobile controls: separate compact filter/sort popovers for Library and Watchlist
- Desktop sort: popover menu replacing Select dropdown on Library and Watchlist
- Filter ranges: year 1950-2100, rating 0-10
2026-04-02 03:00:49 +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 3648c41cfd fix(frontend): clean up imports and remove unused createEpisodeSeen hook 2026-04-01 01:06:01 +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 3ca24434d7 feat(frontend): Entry details redesign, people filmography, calendar improvements
- 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
2026-04-01 00:25:30 +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 ffe7e52527 Implemented the new react version of the frontend 2026-03-31 01:56:38 +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
Mohammed Abad 35835e9187 Created the react frontend project and added some basic component 2026-03-30 20:56:59 +01:00
Mohammed Abad b3ab69cc22 Backend: Added docs & AGENTS.md 2026-03-30 19:37:08 +01:00
X4Lo b3f2097b8b Frontend: Filter out 'person' media type from fetched entries in TmdbService 2026-03-30 17:26:21 +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 ad58164df4 Backend: fixed Entry model incorrect field credit_fetched name 2026-03-30 17:24:07 +01:00
X4Lo c8141fb87b Backend: minor changes 2025-07-12 15:29:43 +01:00
X4Lo b6c04e765f Frontend: Added cast section to entry page 2025-07-12 15:29:36 +01:00
X4Lo 6c2a437d7b Frontend: Using MediaSelectorPipe for PersonCardComponent & added default-profile.png 2025-07-12 02:57:34 +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 17067a5516 Backend: Created O2M relation between People & Media 2025-07-12 00:42:08 +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 d3dbd7c3e3 Frontend: Added People Module & Routing + Updated Sidebar 2025-07-11 23:36:14 +01:00
X4Lo 095dc91ab2 Frontend: Added PeopleDetails Component 2025-07-11 23:35:39 +01:00
X4Lo 740a51f1e9 Frontend: Added PeoplePage Component 2025-07-11 23:35:26 +01:00
X4Lo c8408f9f53 Frontend: Added PeopleGridComponent 2025-07-11 23:35:03 +01:00
X4Lo 02b4caa6ef Frontend: Added PersonCardComponent 2025-07-11 23:34:49 +01:00
X4Lo 996c445020 Frontend: Added ParagraphPipe 2025-07-11 23:32:16 +01:00
X4Lo 1a18b826de Frontend: Added Person & Credit model + People service 2025-07-11 23:31:54 +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 ef9e1911f9 B: Added People and Credit Models for entry crew and cast 2025-07-11 15:12:07 +01:00
X4Lo 6bf27e5519 Frontend: Entry Media Modal
- Improved filter logic.
- Added toasts.
- Removed MediaUploadModal for better user experience.
- Synced entry media state.
2025-07-11 15:00:05 +01:00
X4Lo 8533076080 F: Added toast to entry-page and other components 2025-04-13 03:54:55 +01:00
X4Lo d01913bb6d F: Re-worked the toast service 2025-04-13 03:53:29 +01:00
X4Lo 2a43e9108e F: Fixed tvseries entry not showing up correctly in library page when adding a seen date to it while it is in watchlist. 2025-04-12 21:05:14 +01:00
X4Lo 6a102f86e8 F: Changed Entry date_first_seen and date_last_seen properties to Date | null, and fixed related issues. 2025-04-12 18:09:06 +01:00
X4Lo b799e1cada F: Fixed movie entry not showing up correctly in library page when adding a seen date to it while it is in watchlist. 2025-04-12 00:56:19 +01:00
X4Lo 0466082fe8 updated gitignore 2025-04-02 00:18:02 +00:00
X4Lo 1d79e07bed added .env files to gitignore 2025-04-01 23:56:52 +00:00
X4Lo 1a39ab23cf Frontend:
- updated season/episodes models
- used mediaSelector in EpisodeDialog and SeasonPage
- added default-still.png
2025-04-01 23:55:22 +00: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 e0f19a0a69 F: Add media selector pipe 2025-02-20 01:33:25 +01:00