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