File tree 3 files changed +22
-6
lines changed
components/group/inboxBadges
3 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ describe('GroupStatusBadge', () => {
12
12
/>
13
13
) ;
14
14
await userEvent . hover ( screen . getByText ( 'Archived' ) ) ;
15
- expect ( await screen . findByText ( 'Archived until escalating' ) ) . toBeInTheDocument ( ) ;
15
+ expect ( await screen . findByText ( 'Archived until escalating. ' ) ) . toBeInTheDocument ( ) ;
16
16
} ) ;
17
17
it ( 'should display new' , ( ) => {
18
18
render (
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 is occurring significantly more often it used to.' ) ,
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 @@ -12,11 +12,12 @@ import ErrorBoundary from 'sentry/components/errorBoundary';
12
12
import EventMessage from 'sentry/components/events/eventMessage' ;
13
13
import { getBadgeProperties } from 'sentry/components/group/inboxBadges/statusBadge' ;
14
14
import UnhandledTag from 'sentry/components/group/inboxBadges/unhandledTag' ;
15
+ import ExternalLink from 'sentry/components/links/externalLink' ;
15
16
import Link from 'sentry/components/links/link' ;
16
17
import { TourElement } from 'sentry/components/tours/components' ;
17
18
import { MAX_PICKABLE_DAYS } from 'sentry/constants' ;
18
19
import { IconInfo } from 'sentry/icons' ;
19
- import { t } from 'sentry/locale' ;
20
+ import { t , tct } from 'sentry/locale' ;
20
21
import HookStore from 'sentry/stores/hookStore' ;
21
22
import { space } from 'sentry/styles/space' ;
22
23
import type { Event } from 'sentry/types/event' ;
@@ -177,7 +178,15 @@ export default function StreamlinedGroupHeader({
177
178
) }
178
179
{ statusProps ?. status ? (
179
180
< Fragment >
180
- < Tooltip title = { statusProps ?. tooltip } >
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
+ >
181
190
< Subtext > { statusProps ?. status } </ Subtext >
182
191
</ Tooltip >
183
192
</ Fragment >
You can’t perform that action at this time.
0 commit comments