@@ -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,36 @@ function NoIssuesMatched() {
48
55
}
49
56
) }
50
57
</ li >
58
+ { ( onBreachedMetricsView || onWarningsView ) && (
59
+ < li >
60
+ { tct ( 'Make sure [link] is set up in your project.' , {
61
+ link : (
62
+ < ExternalLink href = "https://docs.sentry.io/platform-redirect/?next=%2Ftracing%2F" >
63
+ { t ( 'tracing' ) }
64
+ </ ExternalLink >
65
+ ) ,
66
+ } ) }
67
+ </ li >
68
+ ) }
69
+ { onErrorsAndOutagesView && (
70
+ < li >
71
+ { tct (
72
+ 'Make sure [uptimeLink] and [cronsLink] monitoring is set up in your project.' ,
73
+ {
74
+ uptimeLink : (
75
+ < ExternalLink href = "https://docs.sentry.io/product/alerts/uptime-monitoring/" >
76
+ { t ( 'uptime' ) }
77
+ </ ExternalLink >
78
+ ) ,
79
+ cronsLink : (
80
+ < ExternalLink href = "https://docs.sentry.io/platform-redirect/?next=%2Fcrons%2F" >
81
+ { t ( 'cron' ) }
82
+ </ ExternalLink >
83
+ ) ,
84
+ }
85
+ ) }
86
+ </ li >
87
+ ) }
51
88
</ Tips >
52
89
</ MessageContainer >
53
90
</ Wrapper >
0 commit comments