File tree Expand file tree Collapse file tree 6 files changed +33
-18
lines changed
secondary/sections/explore Expand file tree Collapse file tree 6 files changed +33
-18
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ const ALL_AVAILABLE_FEATURES = [
35
35
'user-feedback-ui' ,
36
36
'session-replay-ui' ,
37
37
'performance-view' ,
38
- 'performance-trace-explorer' ,
39
38
'profiling' ,
39
+ 'visibility-explore-view' ,
40
40
] ;
41
41
42
42
jest . mock ( 'sentry/utils/demoMode' ) ;
Original file line number Diff line number Diff line change @@ -212,14 +212,19 @@ function Sidebar() {
212
212
) ;
213
213
214
214
const traces = hasOrganization && (
215
- < Feature features = { [ 'performance-trace-explorer' , 'performance-view' ] } >
216
- < SidebarItem
217
- { ...sidebarItemProps }
218
- label = { < GuideAnchor target = "traces" > { t ( 'Traces' ) } </ GuideAnchor > }
219
- to = { `/organizations/${ organization . slug } /traces/` }
220
- id = "performance-trace-explorer"
221
- icon = { < SubitemDot collapsed /> }
222
- />
215
+ < Feature features = { [ 'performance-view' ] } >
216
+ < Feature
217
+ features = { [ 'performance-trace-explorer' , 'visibility-explore-view' ] }
218
+ requireAll = { false }
219
+ >
220
+ < SidebarItem
221
+ { ...sidebarItemProps }
222
+ label = { < GuideAnchor target = "traces" > { t ( 'Traces' ) } </ GuideAnchor > }
223
+ to = { `/organizations/${ organization . slug } /traces/` }
224
+ id = "performance-trace-explorer"
225
+ icon = { < SubitemDot collapsed /> }
226
+ />
227
+ </ Feature >
223
228
</ Feature >
224
229
) ;
225
230
Original file line number Diff line number Diff line change @@ -415,7 +415,10 @@ export function limitMaxPickableDays(organization: Organization): PickableDays {
415
415
}
416
416
417
417
export function getDefaultExploreRoute ( organization : Organization ) {
418
- if ( organization . features . includes ( 'performance-trace-explorer' ) ) {
418
+ if (
419
+ organization . features . includes ( 'performance-trace-explorer' ) ||
420
+ organization . features . includes ( 'visibility-explore-view' )
421
+ ) {
419
422
return 'traces' ;
420
423
}
421
424
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ const ALL_AVAILABLE_FEATURES = [
38
38
'performance-trace-explorer' ,
39
39
'profiling' ,
40
40
'enforce-stacked-navigation' ,
41
+ 'visibility-explore-view' ,
41
42
] ;
42
43
43
44
const mockUsingCustomerDomain = jest . fn ( ) ;
Original file line number Diff line number Diff line change @@ -36,14 +36,19 @@ export function ExploreSecondaryNav() {
36
36
</ SecondaryNav . Header >
37
37
< SecondaryNav . Body >
38
38
< SecondaryNav . Section id = "explore-main" >
39
- < Feature features = { [ 'performance-trace-explorer' , 'performance-view' ] } >
40
- < SecondaryNav . Item
41
- to = { `${ baseUrl } /traces/` }
42
- analyticsItemName = "explore_traces"
43
- isActive = { isLinkActive ( `${ baseUrl } /traces/` , location . pathname ) }
39
+ < Feature features = { [ 'performance-view' ] } >
40
+ < Feature
41
+ features = { [ 'performance-trace-explorer' , 'visibility-explore-view' ] }
42
+ requireAll = { false }
44
43
>
45
- { t ( 'Traces' ) }
46
- </ SecondaryNav . Item >
44
+ < SecondaryNav . Item
45
+ to = { `${ baseUrl } /traces/` }
46
+ analyticsItemName = "explore_traces"
47
+ isActive = { isLinkActive ( `${ baseUrl } /traces/` , location . pathname ) }
48
+ >
49
+ { t ( 'Traces' ) }
50
+ </ SecondaryNav . Item >
51
+ </ Feature >
47
52
</ Feature >
48
53
< Feature features = "ourlogs-enabled" >
49
54
< SecondaryNav . Item
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ export default function TracesPage({children}: Props) {
23
23
24
24
return (
25
25
< Feature
26
- features = { [ 'performance-trace-explorer' ] }
26
+ features = { [ 'performance-trace-explorer' , 'visibility-explore-view' ] }
27
+ requireAll = { false }
27
28
organization = { organization }
28
29
renderDisabled = { NoAccess }
29
30
>
You can’t perform that action at this time.
0 commit comments