Skip to content

Commit ebcdf20

Browse files
authored
feat(browser-starfish): add resource module flag (#59135)
Move resource module under performance, and hook up the correct flag to enable/disable it in the sidebar.
1 parent 554adec commit ebcdf20

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

static/app/components/sidebar/index.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,15 @@ function Sidebar({location, organization}: Props) {
271271
icon={<SubitemDot collapsed={collapsed} />}
272272
/>
273273
</Feature>
274+
<Feature features={['starfish-browser-resource-module-ui']}>
275+
<SidebarItem
276+
{...sidebarItemProps}
277+
label={<GuideAnchor target="starfish">{t('Resources')}</GuideAnchor>}
278+
to={`/organizations/${organization.slug}/performance/browser/resources`}
279+
id="performance-browser-resources"
280+
icon={<IconFile />}
281+
/>
282+
</Feature>
274283
</SidebarAccordion>
275284
);
276285
}
@@ -318,13 +327,6 @@ function Sidebar({location, organization}: Props) {
318327
id="performance-browser-interactions"
319328
icon={<SubitemDot collapsed={collapsed} />}
320329
/>
321-
<SidebarItem
322-
{...sidebarItemProps}
323-
label={<GuideAnchor target="starfish">{t('Resources')}</GuideAnchor>}
324-
to={`/organizations/${organization.slug}/performance/browser/resources`}
325-
id="performance-browser-resources"
326-
icon={<IconFile />}
327-
/>
328330
<SidebarItem
329331
{...sidebarItemProps}
330332
label={<GuideAnchor target="starfish">{t('Screen Load')}</GuideAnchor>}

0 commit comments

Comments
 (0)