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
This commit is contained in:
Mohammed Abad committed 2026-04-01 00:25:30 +01:00
1 parent 11eab03987
commit 3ca24434d7
16 files changed
+857 -322

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ export const collectionsApi = {
addEntry: (collectionId: number, entryId: number) =>
api
.post(`/collections/${collectionId}/entries`, { entry_id: entryId })
.post(`/collections/${collectionId}/entries/${entryId}`, {})
.then((r) => r.data),
removeEntry: (collectionId: number, entryId: number) =>
+3 -2
View File
@@ -13,17 +13,18 @@ export const entriesApi = {
api.post<Entry>('/entries', { tmdb_id, is_tvserie }).then((r) => normalizeEntry(r.data)),
update: (id: number, data: Partial<Entry>) =>
api.put<Entry>(`/entries/${id}`, data).then((r) => normalizeEntry(r.data)),
api.put<Entry>(`/entries/${id}`, { entryData: data }).then((r) => normalizeEntry(r.data)),
updateRatings: (
id: number,
ratings: {
id?: number;
user_rating?: number | null;
tmdb_rating?: number | null;
imdb_rating?: number | null;
rotten_tomatoes_rating?: number | null;
}
) => api.put(`/entries/${id}/ratings`, ratings).then((r) => r.data),
) => api.put(`/entries/${id}/ratings`, { entryRatings: ratings }).then((r) => r.data),
updateIds: (
id: number,
+29 -1
View File
@@ -1,9 +1,37 @@
import { api } from '@/lib/api';
import type { People } from '@/types';
import type { People, Credit } from '@/types';
export interface TmdbFilmographyItem {
id: number;
title?: string;
name?: string;
poster_path: string | null;
release_date?: string;
first_air_date?: string;
media_type: 'movie' | 'tv';
character?: string;
job?: string;
department?: string;
credit_id?: string;
}
export interface TmdbFilmographyResponse {
cast: TmdbFilmographyItem[];
crew: TmdbFilmographyItem[];
}
export const peopleApi = {
getAll: () => api.get<People[]>('/people').then((r) => r.data),
getById: (id: number) =>
api.get<People>(`/people/${id}`).then((r) => r.data),
getCredits: (id: number) =>
api.get<Credit[]>(`/people/${id}/credits`).then((r) => r.data),
getTmdbFilmography: (id: number) =>
api.get<TmdbFilmographyResponse>(`/people/${id}/tmdb-filmography`).then((r) => r.data),
fetchByTmdbId: (tmdb_id: number) =>
api.post<People>('/people/fetch', { tmdb_id }).then((r) => r.data),
};