Skip to content

Commit 6a1d32f

Browse files
roagaandrewshie-sentry
authored andcommitted
chore(seer): UI cleanup for launch (#93057)
To be merged on launch day. - remove beta badge and add seer icon - remove sidebar feedback button (there's already a feedback button on issue details) - remove the beta closing banner <img width="326" alt="Screenshot 2025-06-06 at 12 58 06 PM" src="https://github.com/user-attachments/assets/8a97413c-b03b-42ce-8cad-3865e3e8f562" />
1 parent 8524738 commit 6a1d32f

File tree

4 files changed

+3
-150
lines changed

4 files changed

+3
-150
lines changed

static/app/views/issueDetails/streamline/sidebar/seerNotices.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {LinkButton} from 'sentry/components/core/button/linkButton';
1818
import {useProjectSeerPreferences} from 'sentry/components/events/autofix/preferences/hooks/useProjectSeerPreferences';
1919
import {useAutofixRepos} from 'sentry/components/events/autofix/useAutofix';
2020
import {GuidedSteps} from 'sentry/components/guidedSteps/guidedSteps';
21-
import HookOrDefault from 'sentry/components/hookOrDefault';
2221
import ExternalLink from 'sentry/components/links/externalLink';
2322
import {IconChevron} from 'sentry/icons';
2423
import {t, tct} from 'sentry/locale';
@@ -39,11 +38,6 @@ interface SeerNoticesProps {
3938
hasGithubIntegration?: boolean;
4039
}
4140

42-
const SeerBetaClosingAlert = HookOrDefault({
43-
hookName: 'component:seer-beta-closing-alert',
44-
defaultComponent: () => <div data-test-id="seer-beta-closing-alert" />,
45-
});
46-
4741
export function SeerNotices({groupId, hasGithubIntegration, project}: SeerNoticesProps) {
4842
const organization = useOrganization();
4943
const {repos} = useAutofixRepos(groupId);
@@ -145,7 +139,6 @@ export function SeerNotices({groupId, hasGithubIntegration, project}: SeerNotice
145139

146140
return (
147141
<NoticesContainer>
148-
<SeerBetaClosingAlert />
149142
{/* Collapsed summary */}
150143
{anyStepIncomplete && stepsCollapsed && (
151144
<CollapsedSummaryCard onClick={() => setStepsCollapsed(false)}>

static/app/views/issueDetails/streamline/sidebar/seerSection.tsx

Lines changed: 3 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@ import {useState} from 'react';
22
import {css} from '@emotion/react';
33
import styled from '@emotion/styled';
44

5-
import {FeatureBadge} from 'sentry/components/core/badge/featureBadge';
5+
import {SeerIcon} from 'sentry/components/ai/SeerIcon';
66
import {Button} from 'sentry/components/core/button';
77
import {GroupSummary} from 'sentry/components/group/groupSummary';
88
import {GroupSummaryWithAutofix} from 'sentry/components/group/groupSummaryWithAutofix';
99
import Placeholder from 'sentry/components/placeholder';
10-
import {IconMegaphone} from 'sentry/icons';
11-
import {t, tct} from 'sentry/locale';
10+
import {t} from 'sentry/locale';
1211
import {space} from 'sentry/styles/space';
1312
import type {Event} from 'sentry/types/event';
1413
import type {Group} from 'sentry/types/group';
1514
import type {Project} from 'sentry/types/project';
1615
import {getConfigForIssueType} from 'sentry/utils/issueTypeConfig';
17-
import {useFeedbackForm} from 'sentry/utils/useFeedbackForm';
1816
import {SectionKey} from 'sentry/views/issueDetails/streamline/context';
1917
import {SidebarFoldSection} from 'sentry/views/issueDetails/streamline/foldSection';
2018
import {useAiConfig} from 'sentry/views/issueDetails/streamline/hooks/useAiConfig';
@@ -23,31 +21,6 @@ import {useHasStreamlinedUI} from 'sentry/views/issueDetails/utils';
2321

2422
import {SeerSectionCtaButton} from './seerSectionCtaButton';
2523

26-
function SeerFeedbackButton({hidden}: {hidden: boolean}) {
27-
const openFeedbackForm = useFeedbackForm();
28-
if (hidden) {
29-
return null;
30-
}
31-
const title = t('Give feedback on Seer');
32-
return (
33-
<Button
34-
title={title}
35-
aria-label={title}
36-
icon={<IconMegaphone />}
37-
size="xs"
38-
onClick={() =>
39-
openFeedbackForm?.({
40-
messagePlaceholder: t('How can we make Issue Summary better for you?'),
41-
tags: {
42-
['feedback.source']: 'issue_details_ai_autofix',
43-
['feedback.owner']: 'ml-ai',
44-
},
45-
})
46-
}
47-
/>
48-
);
49-
}
50-
5124
function SeerSectionContent({
5225
group,
5326
project,
@@ -130,34 +103,14 @@ export default function SeerSection({
130103
) : (
131104
<HeaderContainer>
132105
{t('Seer')}
133-
<FeatureBadge
134-
type="beta"
135-
tooltipProps={{
136-
title: tct(
137-
'This feature is in beta. Try it out and let us know your feedback at [email:[email protected]].',
138-
{
139-
email: (
140-
<a
141-
href="mailto:[email protected]"
142-
onClick={clickEvent => {
143-
// Prevent header from collapsing
144-
clickEvent.stopPropagation();
145-
}}
146-
/>
147-
),
148-
}
149-
),
150-
isHoverable: true,
151-
}}
152-
/>
106+
<SeerIcon />
153107
</HeaderContainer>
154108
);
155109

156110
return (
157111
<SidebarFoldSection
158112
title={titleComponent}
159113
sectionKey={SectionKey.SEER}
160-
actions={<SeerFeedbackButton hidden={!aiConfig.hasSummary} />}
161114
preventCollapse={!hasStreamlinedUI}
162115
>
163116
<SeerSectionContainer>

static/gsApp/components/ai/SeerBetaClosingAlert.tsx

Lines changed: 0 additions & 91 deletions
This file was deleted.

static/gsApp/registerHooks.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import HookStore from 'sentry/stores/hookStore';
66
import type {Hooks} from 'sentry/types/hooks';
77

88
import AiSetupDataConsent from 'getsentry/components/ai/AiSetupDataConsent';
9-
import SeerBetaClosingAlert from 'getsentry/components/ai/SeerBetaClosingAlert';
109
import CronsBillingBanner from 'getsentry/components/crons/cronsBillingBanner';
1110
import DashboardBanner from 'getsentry/components/dashboardBanner';
1211
import DataConsentBanner from 'getsentry/components/dataConsentBanner';
@@ -206,7 +205,6 @@ const GETSENTRY_HOOKS: Partial<Hooks> = {
206205
'component:insights-date-range-query-limit-footer': () =>
207206
InsightsDateRangeQueryLimitFooter,
208207
'component:ai-setup-data-consent': () => AiSetupDataConsent,
209-
'component:seer-beta-closing-alert': () => SeerBetaClosingAlert,
210208
'component:codecov-integration-settings-link': () => CodecovSettingsLink,
211209
'component:continuous-profiling-beta-banner': () => ContinuousProfilingBetaAlertBanner,
212210
'component:continuous-profiling-beta-sdk-banner': () =>

0 commit comments

Comments
 (0)