From 868e78b5ae2685a985c8d8cd0ff41364be880df5 Mon Sep 17 00:00:00 2001 From: Malachi Willey Date: Tue, 11 Nov 2025 11:31:26 -0800 Subject: [PATCH] fix(issue-details): Do not show since first seen when config is disabled --- .../views/issueDetails/streamline/eventDetailsHeader.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/static/app/views/issueDetails/streamline/eventDetailsHeader.tsx b/static/app/views/issueDetails/streamline/eventDetailsHeader.tsx index 95ea59876c0662..b4e2901a363910 100644 --- a/static/app/views/issueDetails/streamline/eventDetailsHeader.tsx +++ b/static/app/views/issueDetails/streamline/eventDetailsHeader.tsx @@ -61,6 +61,7 @@ export function EventDetailsHeader({group, event, project}: EventDetailsHeaderPr const hasSetStatsPeriod = location.query.statsPeriod || location.query.start || location.query.end; const defaultStatsPeriod = useGroupDefaultStatsPeriod(group, project); + const shouldShowSinceFirstSeenOption = issueTypeConfig.defaultTimePeriod.sinceFirstSeen; const period = hasSetStatsPeriod ? getPeriod({ start: location.query.start as string, @@ -132,7 +133,8 @@ export function EventDetailsHeader({group, event, project}: EventDetailsHeaderPr return { ...props.arbitraryOptions, // Always display arbitrary issue open period - ...(defaultStatsPeriod?.statsPeriod + ...(defaultStatsPeriod?.statsPeriod && + shouldShowSinceFirstSeenOption ? { [defaultStatsPeriod.statsPeriod]: t( '%s (since first seen)', @@ -162,7 +164,8 @@ export function EventDetailsHeader({group, event, project}: EventDetailsHeaderPr triggerProps={{ children: period === defaultStatsPeriod && - !defaultStatsPeriod.isMaxRetention + !defaultStatsPeriod.isMaxRetention && + shouldShowSinceFirstSeenOption ? t('Since First Seen') : undefined, style: {