feat: replace the starring page with a person page
A credit now opens /person/{id}: portrait, name, department, life dates and
birthplace, the biography, and the full filmography ranked by vote count.
One request carries all of it — combined_credits rides along on the person
call — so the discover based starring query and its with_people filter go.
The biography fills whatever height the portrait leaves and fades where it
is cut, with the whole text in a tooltip on hover; a phone has no height to
respect there, so it simply runs on.
Route level and query level skeletons stand in while it loads, built from
the shadcn primitive.
Development server side fetches go over the loopback rather than SITE_URL,
which is a LAN address meant for other devices: once that address moves the
fetch hangs until undici times out, ten seconds per navigation.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6fc41c0901
commit
3dc2ebfe53
22 files changed
+342
-108
No files matched your search
Vendored
+26
-5
@@ -36,13 +36,11 @@ interface TMDBSeriesDetails {
|
||||
status?: string;
|
||||
}
|
||||
|
||||
/** Where a series currently stands — the latest aired episode plus what follows it */
|
||||
interface Airing {
|
||||
season: number;
|
||||
episode: number;
|
||||
seasons: number;
|
||||
ended: boolean;
|
||||
/** air date of the next episode, ISO string, only when TMDB knows one */
|
||||
next?: string;
|
||||
}
|
||||
|
||||
@@ -61,7 +59,6 @@ interface TMDBCountryReleaseDates {
|
||||
|
||||
type AvailabilityState = 'theatre' | 'stream' | 'bluray';
|
||||
|
||||
/** Earliest worldwide release date per window, ISO strings */
|
||||
type Availability = Partial<Record<AvailabilityState, string>>;
|
||||
|
||||
interface Movie {
|
||||
@@ -127,14 +124,12 @@ interface Person {
|
||||
popularity: number;
|
||||
profile_path: string;
|
||||
credit_id: string;
|
||||
// crew members carry neither
|
||||
cast_id?: number;
|
||||
order?: number;
|
||||
}
|
||||
|
||||
interface Crew extends Person {
|
||||
department: string;
|
||||
/** movie credits carry a single job, tv aggregate credits carry one entry per job */
|
||||
job?: string;
|
||||
jobs?: Array<{ credit_id: string; job: string; episode_count: number }>;
|
||||
total_episode_count?: number;
|
||||
@@ -145,6 +140,32 @@ interface Actor extends Person {
|
||||
photoUrl: string;
|
||||
}
|
||||
|
||||
type TMDBPersonCredit = (Movie | Series) & { media_type: Show['type'] };
|
||||
|
||||
interface TMDBPersonDetails {
|
||||
id: number;
|
||||
name: string;
|
||||
biography: string;
|
||||
birthday: string | null;
|
||||
deathday: string | null;
|
||||
place_of_birth: string | null;
|
||||
known_for_department: string;
|
||||
profile_path: string | null;
|
||||
combined_credits?: { cast: TMDBPersonCredit[]; crew: TMDBPersonCredit[] };
|
||||
}
|
||||
|
||||
interface Profile {
|
||||
id: number;
|
||||
name: string;
|
||||
photo: string;
|
||||
biography: string;
|
||||
department: string;
|
||||
birthday?: string;
|
||||
deathday?: string;
|
||||
birthplace?: string;
|
||||
shows: Show[];
|
||||
}
|
||||
|
||||
interface AggregatedActor extends Person {
|
||||
roles: Role[];
|
||||
total_episode_count: number;
|
||||
|
||||
Reference in new issue
Block a user