From 96d5ca086db3fd50d2082a3d10b12b2d38cb46b8 Mon Sep 17 00:00:00 2001 From: Florian Hoech Date: Mon, 27 Oct 2025 23:03:01 +0100 Subject: [PATCH 1/3] feat: add tmdb- and imdb link on person detail page This commit adds links to tmdb and imdb on the person detail page Signed-off-by: Florian Hoech --- src/components/ExternalLinkBlock/index.tsx | 18 ++++++++++++------ src/components/PersonDetails/index.tsx | 15 ++++++++++++--- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/src/components/ExternalLinkBlock/index.tsx b/src/components/ExternalLinkBlock/index.tsx index 9199da7d02..3dbc3ca365 100644 --- a/src/components/ExternalLinkBlock/index.tsx +++ b/src/components/ExternalLinkBlock/index.tsx @@ -12,8 +12,10 @@ import useSettings from '@app/hooks/useSettings'; import { MediaType } from '@server/constants/media'; import { MediaServerType } from '@server/constants/server'; +type ExternalLinkType = 'movie' | 'tv' | 'person'; + interface ExternalLinkBlockProps { - mediaType: 'movie' | 'tv'; + mediaType: ExternalLinkType; tmdbId?: number; tvdbId?: number; imdbId?: string; @@ -31,6 +33,10 @@ const ExternalLinkBlock = ({ }: ExternalLinkBlockProps) => { const settings = useSettings(); const { locale } = useLocale(); + const isMovie = mediaType === MediaType.MOVIE; + const isTv = mediaType === MediaType.TV; + const isPerson = mediaType === 'person'; + const imdbType = isPerson ? 'name' : 'title'; return (
@@ -61,7 +67,7 @@ const ExternalLinkBlock = ({ )} - {tvdbId && mediaType === MediaType.TV && ( + {tvdbId && isTv && ( )} - {tmdbId && ( + {tmdbId && !isPerson && ( )} - {tmdbId && mediaType === MediaType.MOVIE && ( + {tmdbId && isMovie && ( {
)}
{data.profilePath && (
@@ -277,6 +277,15 @@ const PersonDetails = () => { {mediaTypePicker}
+
+
+ +
+
{personAttributes.join(' | ')}
{(data.alsoKnownAs ?? []).length > 0 && ( From c02c48ede398ca1b76cf0b6d6c18d3631c649ccf Mon Sep 17 00:00:00 2001 From: Florian Hoech Date: Tue, 28 Oct 2025 18:28:58 +0100 Subject: [PATCH 2/3] fix: implement feedback from gauthier-th Signed-off-by: Florian Hoech --- src/components/ExternalLinkBlock/index.tsx | 26 +++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/components/ExternalLinkBlock/index.tsx b/src/components/ExternalLinkBlock/index.tsx index 3dbc3ca365..d78b69318d 100644 --- a/src/components/ExternalLinkBlock/index.tsx +++ b/src/components/ExternalLinkBlock/index.tsx @@ -33,10 +33,6 @@ const ExternalLinkBlock = ({ }: ExternalLinkBlockProps) => { const settings = useSettings(); const { locale } = useLocale(); - const isMovie = mediaType === MediaType.MOVIE; - const isTv = mediaType === MediaType.TV; - const isPerson = mediaType === 'person'; - const imdbType = isPerson ? 'name' : 'title'; return (
@@ -67,7 +63,7 @@ const ExternalLinkBlock = ({ )} - {tvdbId && isTv && ( + {tvdbId && mediaType === MediaType.TV && ( )} - {imdbId && ( + {imdbId && mediaType !== 'person' && ( + + + )} + {imdbId && mediaType === 'person' && ( + )} - {tmdbId && !isPerson && ( + {tmdbId && mediaType !== 'person' && ( )} - {tmdbId && isMovie && ( + {tmdbId && mediaType === MediaType.MOVIE && ( Date: Thu, 5 Mar 2026 19:35:39 +0100 Subject: [PATCH 3/3] fix: indentation (back to HEAD) Signed-off-by: Florian Hoech --- src/components/PersonDetails/index.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/PersonDetails/index.tsx b/src/components/PersonDetails/index.tsx index 4e5f9ee277..7929ad4c7b 100644 --- a/src/components/PersonDetails/index.tsx +++ b/src/components/PersonDetails/index.tsx @@ -256,8 +256,9 @@ const PersonDetails = () => {
)}
{data.profilePath && (
@@ -278,7 +279,7 @@ const PersonDetails = () => {
-
+