File tree 2 files changed +27
-38
lines changed
components/group/inboxBadges
2 files changed +27
-38
lines changed Original file line number Diff line number Diff line change @@ -18,30 +18,37 @@ export function getBadgeProperties(
18
18
return {
19
19
tagType : 'highlight' ,
20
20
status : t ( 'Resolved' ) ,
21
+ tooltip : t ( 'This issue was marked as fixed.' ) ,
21
22
} ;
22
23
}
23
24
if ( status === 'unresolved' ) {
24
25
if ( substatus === GroupSubstatus . REGRESSED ) {
25
26
return {
26
27
tagType : 'highlight' ,
27
28
status : t ( 'Regressed' ) ,
29
+ tooltip : t ( 'This issue was resolved then occurred again.' ) ,
28
30
} ;
29
31
}
30
32
if ( substatus === GroupSubstatus . ESCALATING ) {
31
33
return {
32
34
tagType : 'error' ,
33
35
status : t ( 'Escalating' ) ,
36
+ tooltip : t ( 'This issue has exceeded its forecasted event volume.' ) ,
34
37
} ;
35
38
}
36
39
if ( substatus === GroupSubstatus . NEW ) {
37
40
return {
38
41
tagType : 'warning' ,
39
42
status : t ( 'New' ) ,
43
+ tooltip : t ( 'This issue first occurred in the last 7 days.' ) ,
40
44
} ;
41
45
}
42
46
return {
43
47
tagType : 'default' ,
44
48
status : t ( 'Ongoing' ) ,
49
+ tooltip : t (
50
+ 'This issue was created more than 7 days ago or has manually been marked as reviewed.'
51
+ ) ,
45
52
} ;
46
53
}
47
54
if ( status === 'ignored' ) {
@@ -50,10 +57,10 @@ export function getBadgeProperties(
50
57
status : t ( 'Archived' ) ,
51
58
tooltip :
52
59
substatus === GroupSubstatus . ARCHIVED_FOREVER
53
- ? t ( 'Archived forever' )
60
+ ? t ( 'Archived forever. ' )
54
61
: substatus === GroupSubstatus . ARCHIVED_UNTIL_ESCALATING
55
- ? t ( 'Archived until escalating' )
56
- : t ( 'Archived until condition met' ) ,
62
+ ? t ( 'Archived until escalating. ' )
63
+ : t ( 'Archived until condition met. ' ) ,
57
64
} ;
58
65
}
59
66
return undefined ;
Original file line number Diff line number Diff line change @@ -157,19 +157,12 @@ export default function StreamlinedGroupHeader({
157
157
</ StatLink >
158
158
) ) }
159
159
</ StatTitle >
160
- < Tooltip
161
- title = { t (
162
- 'The main message summarizing the event. Typically the error message or log string that triggered this issue.'
163
- ) }
164
- isHoverable
165
- >
166
- < EventMessage
167
- data = { group }
168
- level = { group . level }
169
- message = { secondaryTitle }
170
- type = { group . type }
171
- />
172
- </ Tooltip >
160
+ < EventMessage
161
+ data = { group }
162
+ level = { group . level }
163
+ message = { secondaryTitle }
164
+ type = { group . type }
165
+ />
173
166
{ issueTypeConfig . eventAndUserCounts . enabled && (
174
167
< Fragment >
175
168
< StatCount value = { eventCount } aria-label = { t ( 'Event count' ) } />
@@ -185,35 +178,24 @@ export default function StreamlinedGroupHeader({
185
178
) }
186
179
{ statusProps ?. status ? (
187
180
< Fragment >
188
- < Tooltip title = { statusProps ?. tooltip } >
189
- < Subtext >
190
- < Tooltip
191
- isHoverable
192
- title = { tct ( 'The status of the issue. [link:Learn more]' , {
193
- link : (
194
- < ExternalLink href = "https://docs.sentry.io/product/issues/states-triage/" />
195
- ) ,
196
- } ) }
197
- >
198
- { statusProps ?. status }
199
- </ Tooltip >
200
- </ Subtext >
181
+ < Tooltip
182
+ isHoverable
183
+ title = { tct ( '[tooltip] [link:Learn more]' , {
184
+ tooltip : statusProps ?. tooltip ?? '' ,
185
+ link : (
186
+ < ExternalLink href = "https://docs.sentry.io/product/issues/states-triage/" />
187
+ ) ,
188
+ } ) }
189
+ >
190
+ < Subtext > { statusProps ?. status } </ Subtext >
201
191
</ Tooltip >
202
192
</ Fragment >
203
193
) : null }
204
194
{ subtitle && (
205
195
< Fragment >
206
196
< Divider />
207
197
< Subtitle title = { subtitle } isHoverable showOnlyOnOverflow delay = { 1000 } >
208
- < Subtext >
209
- < Tooltip
210
- title = {
211
- 'Some extra context (function, route, query, etc.) to help you spot where the error happened.'
212
- }
213
- >
214
- { subtitle }
215
- </ Tooltip >
216
- </ Subtext >
198
+ < Subtext > { subtitle } </ Subtext >
217
199
</ Subtitle >
218
200
</ Fragment >
219
201
) }
You can’t perform that action at this time.
0 commit comments