@@ -2,19 +2,17 @@ import {useState} from 'react';
2
2
import { css } from '@emotion/react' ;
3
3
import styled from '@emotion/styled' ;
4
4
5
- import { FeatureBadge } from 'sentry/components/core/badge/featureBadge ' ;
5
+ import { SeerIcon } from 'sentry/components/ai/SeerIcon ' ;
6
6
import { Button } from 'sentry/components/core/button' ;
7
7
import { GroupSummary } from 'sentry/components/group/groupSummary' ;
8
8
import { GroupSummaryWithAutofix } from 'sentry/components/group/groupSummaryWithAutofix' ;
9
9
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' ;
12
11
import { space } from 'sentry/styles/space' ;
13
12
import type { Event } from 'sentry/types/event' ;
14
13
import type { Group } from 'sentry/types/group' ;
15
14
import type { Project } from 'sentry/types/project' ;
16
15
import { getConfigForIssueType } from 'sentry/utils/issueTypeConfig' ;
17
- import { useFeedbackForm } from 'sentry/utils/useFeedbackForm' ;
18
16
import { SectionKey } from 'sentry/views/issueDetails/streamline/context' ;
19
17
import { SidebarFoldSection } from 'sentry/views/issueDetails/streamline/foldSection' ;
20
18
import { useAiConfig } from 'sentry/views/issueDetails/streamline/hooks/useAiConfig' ;
@@ -23,31 +21,6 @@ import {useHasStreamlinedUI} from 'sentry/views/issueDetails/utils';
23
21
24
22
import { SeerSectionCtaButton } from './seerSectionCtaButton' ;
25
23
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
-
51
24
function SeerSectionContent ( {
52
25
group,
53
26
project,
@@ -130,34 +103,14 @@ export default function SeerSection({
130
103
) : (
131
104
< HeaderContainer >
132
105
{ 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
-
142
- onClick = { clickEvent => {
143
- // Prevent header from collapsing
144
- clickEvent . stopPropagation ( ) ;
145
- } }
146
- />
147
- ) ,
148
- }
149
- ) ,
150
- isHoverable : true ,
151
- } }
152
- />
106
+ < SeerIcon />
153
107
</ HeaderContainer >
154
108
) ;
155
109
156
110
return (
157
111
< SidebarFoldSection
158
112
title = { titleComponent }
159
113
sectionKey = { SectionKey . SEER }
160
- actions = { < SeerFeedbackButton hidden = { ! aiConfig . hasSummary } /> }
161
114
preventCollapse = { ! hasStreamlinedUI }
162
115
>
163
116
< SeerSectionContainer >
0 commit comments