Skip to content

Commit b4fc129

Browse files
authored
feat(nav): Move up stats & usage item in settings (#87208)
1 parent 7755b0d commit b4fc129

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

static/app/views/settings/organization/userOrgNavigationConfiguration.tsx

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {FeatureBadge} from 'sentry/components/core/badge/featureBadge';
22
import {t} from 'sentry/locale';
3-
import ConfigStore from 'sentry/stores/configStore';
43
import HookStore from 'sentry/stores/hookStore';
54
import type {Organization} from 'sentry/types/organization';
65
import {hasDynamicSamplingCustomFeature} from 'sentry/utils/dynamicSampling/features';
@@ -80,6 +79,12 @@ export function getUserOrgNavigationConfiguration({
8079
description: t('Configure general settings for an organization'),
8180
id: 'general',
8281
},
82+
{
83+
path: `${organizationSettingsPathPrefix}/stats/`,
84+
title: t('Stats & Usage'),
85+
description: t('View organization stats and usage'),
86+
id: 'stats',
87+
},
8388
{
8489
path: `${organizationSettingsPathPrefix}/projects/`,
8590
title: t('Projects'),
@@ -178,13 +183,6 @@ export function getUserOrgNavigationConfiguration({
178183
show: ({organization}) =>
179184
!!organization && organization.features.includes('feature-flag-ui'),
180185
},
181-
{
182-
path: `${organizationSettingsPathPrefix}/stats/`,
183-
title: t('Stats & Usage'),
184-
description: t('View organization stats and usage'),
185-
id: 'stats',
186-
show: () => ConfigStore.get('user')?.options?.prefersStackedNavigation ?? false,
187-
},
188186
],
189187
},
190188
{

0 commit comments

Comments
 (0)