From 3ba292aba75a5d52678dff1d195fc33d264be2e0 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sat, 7 Feb 2026 08:07:48 -0600 Subject: [PATCH] fix display of custom sublabels in review item chip use "manual" as type so it's not run through translation and normalized, producing "Josh S Car" instead of "Josh's Car" --- web/src/components/player/PreviewThumbnailPlayer.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web/src/components/player/PreviewThumbnailPlayer.tsx b/web/src/components/player/PreviewThumbnailPlayer.tsx index 517a83e7c..42a00b86c 100644 --- a/web/src/components/player/PreviewThumbnailPlayer.tsx +++ b/web/src/components/player/PreviewThumbnailPlayer.tsx @@ -181,6 +181,13 @@ export default function PreviewThumbnailPlayer({ config?.ui?.timezone, ); + const getEventType = (text: string) => { + if (review.data.objects.includes(text)) return "object"; + if (review.data.audio.includes(text)) return "audio"; + if (review.data.sub_labels?.includes(text)) return "manual"; + return "object"; + }; + return (
item !== undefined && !item.includes("-verified"), ) - .map((text) => getTranslatedLabel(text)) + .map((text) => getTranslatedLabel(text, getEventType(text))) .sort() .join(", ")}