From d5d20a61251e99b1e1e9ffb858bd8ab12b17d2bb Mon Sep 17 00:00:00 2001 From: Rohan Agarwal Date: Fri, 16 May 2025 17:52:41 -0700 Subject: [PATCH] Fix extra divided showing in issue stream --- static/app/components/eventOrGroupExtraDetails.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/static/app/components/eventOrGroupExtraDetails.tsx b/static/app/components/eventOrGroupExtraDetails.tsx index ba45b980abac58..0b601123624fd2 100644 --- a/static/app/components/eventOrGroupExtraDetails.tsx +++ b/static/app/components/eventOrGroupExtraDetails.tsx @@ -1,6 +1,10 @@ import {Fragment} from 'react'; import styled from '@emotion/styled'; +import { + getAutofixRunExists, + isIssueQuickFixable, +} from 'sentry/components/events/autofix/utils'; import EventAnnotation from 'sentry/components/events/eventAnnotation'; import GlobalSelectionLink from 'sentry/components/globalSelectionLink'; import ShortId from 'sentry/components/group/inboxBadges/shortId'; @@ -76,6 +80,13 @@ function EventOrGroupExtraDetails({data, showAssignee, showLifetime = true}: Pro data.issueCategory && !!getReplayCountForIssue(data.id, data.issueCategory); + const autofixRunExists = getAutofixRunExists(data as Group); + const seerFixable = isIssueQuickFixable(data as Group); + const showSeer = + organization.features.includes('gen-ai-features') && + !organization.hideAiFeatures && + (autofixRunExists || seerFixable); + const {subtitle} = getTitle(data); const items = [ @@ -108,7 +119,7 @@ function EventOrGroupExtraDetails({data, showAssignee, showLifetime = true}: Pro ) : null, showReplayCount ? : null, - , + showSeer ? : null, logger ? (