@@ -6,12 +6,19 @@ import {navigateTo} from 'sentry/actionCreators/navigation';
6
6
import ExternalLink from 'sentry/components/links/externalLink' ;
7
7
import { t , tct } from 'sentry/locale' ;
8
8
import { space } from 'sentry/styles/space' ;
9
+ import { useLocation } from 'sentry/utils/useLocation' ;
9
10
import useOrganization from 'sentry/utils/useOrganization' ;
10
11
import useRouter from 'sentry/utils/useRouter' ;
11
12
12
13
function NoIssuesMatched ( ) {
13
14
const organization = useOrganization ( ) ;
14
15
const router = useRouter ( ) ;
16
+
17
+ const location = useLocation ( ) ;
18
+ const onBreachedMetricsView = location . pathname . endsWith ( '/issues/breached-metrics/' ) ;
19
+ const onWarningsView = location . pathname . endsWith ( '/issues/warnings/' ) ;
20
+ const onErrorsAndOutagesView = location . pathname . endsWith ( '/issues/errors-outages/' ) ;
21
+
15
22
return (
16
23
< Wrapper data-test-id = "empty-state" className = "empty-state" >
17
24
< img src = { campingImg } alt = "Camping spot illustration" height = { 200 } />
@@ -48,6 +55,28 @@ function NoIssuesMatched() {
48
55
}
49
56
) }
50
57
</ li >
58
+ { ( onBreachedMetricsView || onWarningsView ) && (
59
+ < li >
60
+ { tct ( 'Make sure tracing is set up in your project. [link]' , {
61
+ link : (
62
+ < ExternalLink href = "https://docs.sentry.io/platform-redirect/?next=%2Ftracing%2F" >
63
+ { t ( 'Learn more' ) }
64
+ </ ExternalLink >
65
+ ) ,
66
+ } ) }
67
+ </ li >
68
+ ) }
69
+ { onErrorsAndOutagesView && (
70
+ < li >
71
+ { tct ( 'Make sure uptime monitoring is set up in your project. [link]' , {
72
+ link : (
73
+ < ExternalLink href = "https://docs.sentry.io/product/alerts/uptime-monitoring/" >
74
+ { t ( 'Learn more' ) }
75
+ </ ExternalLink >
76
+ ) ,
77
+ } ) }
78
+ </ li >
79
+ ) }
51
80
</ Tips >
52
81
</ MessageContainer >
53
82
</ Wrapper >
0 commit comments