From 0dbf648b3de92af4c7894dfe2aa916a112334e21 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 17 Nov 2025 18:20:47 -0600 Subject: [PATCH] improve display of in-progress events in explore tracking details --- .../overlay/detail/TrackingDetails.tsx | 44 +++++++++++-------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/web/src/components/overlay/detail/TrackingDetails.tsx b/web/src/components/overlay/detail/TrackingDetails.tsx index 39ffaf4c8..ceb426b8a 100644 --- a/web/src/components/overlay/detail/TrackingDetails.tsx +++ b/web/src/components/overlay/detail/TrackingDetails.tsx @@ -177,21 +177,22 @@ export function TrackingDetails({ }) : ""; - const formattedEnd = config - ? formatUnixTimestampToDateTime(event.end_time ?? 0, { - timezone: config.ui.timezone, - date_format: - config.ui.time_format == "24hour" - ? t("time.formattedTimestamp.24hour", { - ns: "common", - }) - : t("time.formattedTimestamp.12hour", { - ns: "common", - }), - time_style: "medium", - date_style: "medium", - }) - : ""; + const formattedEnd = + config && event.end_time != null + ? formatUnixTimestampToDateTime(event.end_time, { + timezone: config.ui.timezone, + date_format: + config.ui.time_format == "24hour" + ? t("time.formattedTimestamp.24hour", { + ns: "common", + }) + : t("time.formattedTimestamp.12hour", { + ns: "common", + }), + time_style: "medium", + date_style: "medium", + }) + : ""; useEffect(() => { if (!eventSequence || eventSequence.length === 0) return; @@ -525,9 +526,16 @@ export function TrackingDetails({