Skip to content

Commit 6ba85d8

Browse files
committed
ref(issueDetails): remove new issue experience button
1 parent 3a3cefc commit 6ba85d8

File tree

3 files changed

+2
-337
lines changed

3 files changed

+2
-337
lines changed

static/app/views/issueDetails/actions/newIssueExperienceButton.spec.tsx

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

static/app/views/issueDetails/actions/newIssueExperienceButton.tsx

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

static/app/views/issueDetails/streamline/header/header.tsx

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import styled from '@emotion/styled';
44
import color from 'color';
55

66
import {FeatureBadge, Tag} from '@sentry/scraps/badge';
7-
import {LinkButton} from '@sentry/scraps/button';
87
import {Flex, Grid} from '@sentry/scraps/layout';
98
import {ExternalLink, Link} from '@sentry/scraps/link';
109
import {Tooltip} from '@sentry/scraps/tooltip';
@@ -19,21 +18,17 @@ import {getBadgeProperties} from 'sentry/components/group/inboxBadges/statusBadg
1918
import {UnhandledTag} from 'sentry/components/group/inboxBadges/unhandledTag';
2019
import {TourElement} from 'sentry/components/tours/components';
2120
import {MAX_PICKABLE_DAYS} from 'sentry/constants';
22-
import {IconInfo} from 'sentry/icons';
2321
import {t, tct} from 'sentry/locale';
2422
import {HookStore} from 'sentry/stores/hookStore';
2523
import type {Event} from 'sentry/types/event';
2624
import type {Group} from 'sentry/types/group';
2725
import {AI_DETECTED_ISSUE_TYPES, IssueType} from 'sentry/types/group';
2826
import type {Project} from 'sentry/types/project';
29-
import {defined} from 'sentry/utils';
3027
import {getMessage, getTitle} from 'sentry/utils/events';
3128
import {getConfigForIssueType} from 'sentry/utils/issueTypeConfig';
32-
import {useLocalStorageState} from 'sentry/utils/useLocalStorageState';
3329
import {useLocation} from 'sentry/utils/useLocation';
3430
import {useOrganization} from 'sentry/utils/useOrganization';
3531
import {GroupActions} from 'sentry/views/issueDetails/actions/index';
36-
import {NewIssueExperienceButton} from 'sentry/views/issueDetails/actions/newIssueExperienceButton';
3732
import {Divider} from 'sentry/views/issueDetails/divider';
3833
import {GroupPriority} from 'sentry/views/issueDetails/groupPriority';
3934
import {
@@ -262,15 +257,9 @@ function MaybeTopBarSlot({
262257
}
263258

264259
function HeaderActions({group}: {group: Group}) {
265-
const organization = useOrganization();
266260
const hasPageFrameFeature = useHasPageFrameFeature();
267261
const {feedback} = useFeedbackSDKIntegration();
268-
const [showLearnMore, setShowLearnMore] = useLocalStorageState(
269-
'issue-details-learn-more',
270-
true
271-
);
272262

273-
const hasOnlyOneUIOption = defined(organization.streamlineOnly);
274263
const isAIDetectedIssue = AI_DETECTED_ISSUE_TYPES.has(group.issueType);
275264
const hasFeedbackForm =
276265
group.issueType === IssueType.QUERY_INJECTION_VULNERABILITY ||
@@ -287,27 +276,6 @@ function HeaderActions({group}: {group: Group}) {
287276
tags: {['feedback.source']: feedbackSource},
288277
};
289278

290-
if (!hasOnlyOneUIOption && !hasFeedbackForm) {
291-
return (
292-
<MaybeTopBarSlot name="actions">
293-
<LinkButton
294-
size={hasPageFrameFeature ? undefined : 'xs'}
295-
external
296-
tooltipProps={{title: t('Learn more about the new UI')}}
297-
href="https://docs.sentry.io/product/issues/issue-details/"
298-
aria-label={t('Learn more about the new UI')}
299-
icon={<IconInfo />}
300-
analyticsEventKey="issue_details.streamline_ui_learn_more"
301-
analyticsEventName="Issue Details: Streamline UI Learn More"
302-
analyticsParams={{show_learn_more: showLearnMore}}
303-
onClick={() => setShowLearnMore(false)}
304-
>
305-
{showLearnMore ? t("See What's New") : null}
306-
</LinkButton>
307-
</MaybeTopBarSlot>
308-
);
309-
}
310-
311279
if (hasFeedbackForm && feedback) {
312280
return (
313281
<MaybeTopBarSlot name="feedback">
@@ -316,17 +284,13 @@ function HeaderActions({group}: {group: Group}) {
316284
size={hasPageFrameFeature ? undefined : 'xs'}
317285
feedbackOptions={feedbackOptions}
318286
>
319-
{null}
287+
{hasPageFrameFeature ? null : t('Give Feedback')}
320288
</FeedbackButton>
321289
</MaybeTopBarSlot>
322290
);
323291
}
324292

325-
return (
326-
<MaybeTopBarSlot name="actions">
327-
<NewIssueExperienceButton />
328-
</MaybeTopBarSlot>
329-
);
293+
return null;
330294
}
331295

332296
const Header = styled('header')`

0 commit comments

Comments
 (0)