Skip to content

Commit 8215061

Browse files
authored
fix(seer): Fix extra divider showing in issue stream (#91852)
Even if we hid seer badges, there was an extra divider because of how the logic of that area worked. This fixes it
1 parent daf122e commit 8215061

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

static/app/components/eventOrGroupExtraDetails.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import {Fragment} from 'react';
22
import styled from '@emotion/styled';
33

4+
import {
5+
getAutofixRunExists,
6+
isIssueQuickFixable,
7+
} from 'sentry/components/events/autofix/utils';
48
import EventAnnotation from 'sentry/components/events/eventAnnotation';
59
import GlobalSelectionLink from 'sentry/components/globalSelectionLink';
610
import ShortId from 'sentry/components/group/inboxBadges/shortId';
@@ -76,6 +80,13 @@ function EventOrGroupExtraDetails({data, showAssignee, showLifetime = true}: Pro
7680
data.issueCategory &&
7781
!!getReplayCountForIssue(data.id, data.issueCategory);
7882

83+
const autofixRunExists = getAutofixRunExists(data as Group);
84+
const seerFixable = isIssueQuickFixable(data as Group);
85+
const showSeer =
86+
organization.features.includes('gen-ai-features') &&
87+
!organization.hideAiFeatures &&
88+
(autofixRunExists || seerFixable);
89+
7990
const {subtitle} = getTitle(data);
8091

8192
const items = [
@@ -108,7 +119,7 @@ function EventOrGroupExtraDetails({data, showAssignee, showLifetime = true}: Pro
108119
</CommentsLink>
109120
) : null,
110121
showReplayCount ? <IssueReplayCount group={data as Group} /> : null,
111-
<IssueSeerBadge group={data as Group} key="issue-seer-badge" />,
122+
showSeer ? <IssueSeerBadge group={data as Group} key="issue-seer-badge" /> : null,
112123
logger ? (
113124
<LoggerAnnotation>
114125
<GlobalSelectionLink

0 commit comments

Comments
 (0)