Skip to content

chore(seer): UI cleanup for launch #93057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {LinkButton} from 'sentry/components/core/button/linkButton';
import {useProjectSeerPreferences} from 'sentry/components/events/autofix/preferences/hooks/useProjectSeerPreferences';
import {useAutofixRepos} from 'sentry/components/events/autofix/useAutofix';
import {GuidedSteps} from 'sentry/components/guidedSteps/guidedSteps';
import HookOrDefault from 'sentry/components/hookOrDefault';
import ExternalLink from 'sentry/components/links/externalLink';
import {IconChevron} from 'sentry/icons';
import {t, tct} from 'sentry/locale';
Expand All @@ -39,11 +38,6 @@ interface SeerNoticesProps {
hasGithubIntegration?: boolean;
}

const SeerBetaClosingAlert = HookOrDefault({
hookName: 'component:seer-beta-closing-alert',
defaultComponent: () => <div data-test-id="seer-beta-closing-alert" />,
});

export function SeerNotices({groupId, hasGithubIntegration, project}: SeerNoticesProps) {
const organization = useOrganization();
const {repos} = useAutofixRepos(groupId);
Expand Down Expand Up @@ -143,7 +137,6 @@ export function SeerNotices({groupId, hasGithubIntegration, project}: SeerNotice

return (
<NoticesContainer>
<SeerBetaClosingAlert />
{/* Collapsed summary */}
{anyStepIncomplete && stepsCollapsed && (
<CollapsedSummaryCard onClick={() => setStepsCollapsed(false)}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@ import {useState} from 'react';
import {css} from '@emotion/react';
import styled from '@emotion/styled';

import {FeatureBadge} from 'sentry/components/core/badge/featureBadge';
import {SeerIcon} from 'sentry/components/ai/SeerIcon';
import {Button} from 'sentry/components/core/button';
import {GroupSummary} from 'sentry/components/group/groupSummary';
import {GroupSummaryWithAutofix} from 'sentry/components/group/groupSummaryWithAutofix';
import Placeholder from 'sentry/components/placeholder';
import {IconMegaphone} from 'sentry/icons';
import {t, tct} from 'sentry/locale';
import {t} from 'sentry/locale';
import {space} from 'sentry/styles/space';
import type {Event} from 'sentry/types/event';
import type {Group} from 'sentry/types/group';
import type {Project} from 'sentry/types/project';
import {getConfigForIssueType} from 'sentry/utils/issueTypeConfig';
import {useFeedbackForm} from 'sentry/utils/useFeedbackForm';
import {SectionKey} from 'sentry/views/issueDetails/streamline/context';
import {SidebarFoldSection} from 'sentry/views/issueDetails/streamline/foldSection';
import {useAiConfig} from 'sentry/views/issueDetails/streamline/hooks/useAiConfig';
Expand All @@ -23,31 +21,6 @@ import {useHasStreamlinedUI} from 'sentry/views/issueDetails/utils';

import {SeerSectionCtaButton} from './seerSectionCtaButton';

function SeerFeedbackButton({hidden}: {hidden: boolean}) {
const openFeedbackForm = useFeedbackForm();
if (hidden) {
return null;
}
const title = t('Give feedback on Seer');
return (
<Button
title={title}
aria-label={title}
icon={<IconMegaphone />}
size="xs"
onClick={() =>
openFeedbackForm?.({
messagePlaceholder: t('How can we make Issue Summary better for you?'),
tags: {
['feedback.source']: 'issue_details_ai_autofix',
['feedback.owner']: 'ml-ai',
},
})
}
/>
);
}

function SeerSectionContent({
group,
project,
Expand Down Expand Up @@ -130,34 +103,14 @@ export default function SeerSection({
) : (
<HeaderContainer>
{t('Seer')}
<FeatureBadge
type="beta"
tooltipProps={{
title: tct(
'This feature is in beta. Try it out and let us know your feedback at [email:[email protected]].',
{
email: (
<a
href="mailto:[email protected]"
onClick={clickEvent => {
// Prevent header from collapsing
clickEvent.stopPropagation();
}}
/>
),
}
),
isHoverable: true,
}}
/>
<SeerIcon />
</HeaderContainer>
);

return (
<SidebarFoldSection
title={titleComponent}
sectionKey={SectionKey.SEER}
actions={<SeerFeedbackButton hidden={!aiConfig.hasSummary} />}
preventCollapse={!hasStreamlinedUI}
>
<SeerSectionContainer>
Expand Down
91 changes: 0 additions & 91 deletions static/gsApp/components/ai/SeerBetaClosingAlert.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions static/gsApp/registerHooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import HookStore from 'sentry/stores/hookStore';
import type {Hooks} from 'sentry/types/hooks';

import AiSetupDataConsent from 'getsentry/components/ai/AiSetupDataConsent';
import SeerBetaClosingAlert from 'getsentry/components/ai/SeerBetaClosingAlert';
import CronsBillingBanner from 'getsentry/components/crons/cronsBillingBanner';
import DashboardBanner from 'getsentry/components/dashboardBanner';
import DataConsentBanner from 'getsentry/components/dataConsentBanner';
Expand Down Expand Up @@ -205,7 +204,6 @@ const GETSENTRY_HOOKS: Partial<Hooks> = {
'component:insights-date-range-query-limit-footer': () =>
InsightsDateRangeQueryLimitFooter,
'component:ai-setup-data-consent': () => AiSetupDataConsent,
'component:seer-beta-closing-alert': () => SeerBetaClosingAlert,
'component:codecov-integration-settings-link': () => CodecovSettingsLink,
'component:continuous-profiling-beta-banner': () => ContinuousProfilingBetaAlertBanner,
'component:continuous-profiling-beta-sdk-banner': () =>
Expand Down
Loading