Browse Source

feat(ds): Add an alpha badge for DS settings (#81291)

Jan Michael Auer 3 months ago
parent
commit
d4f6aab1c3

+ 7 - 1
static/app/views/settings/dynamicSampling/index.tsx

@@ -1,6 +1,7 @@
 import {Fragment} from 'react';
 import {Fragment} from 'react';
 
 
 import {Alert} from 'sentry/components/alert';
 import {Alert} from 'sentry/components/alert';
+import FeatureBadge from 'sentry/components/badge/featureBadge';
 import {LinkButton} from 'sentry/components/button';
 import {LinkButton} from 'sentry/components/button';
 import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
 import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
 import {t} from 'sentry/locale';
 import {t} from 'sentry/locale';
@@ -23,7 +24,12 @@ export default function DynamicSamplingSettings() {
     <Fragment>
     <Fragment>
       <SentryDocumentTitle title={t('Dynamic Sampling')} orgSlug={organization.slug} />
       <SentryDocumentTitle title={t('Dynamic Sampling')} orgSlug={organization.slug} />
       <SettingsPageHeader
       <SettingsPageHeader
-        title={t('Dynamic Sampling')}
+        title={
+          <Fragment>
+            {t('Dynamic Sampling')}
+            <FeatureBadge type="alpha" />
+          </Fragment>
+        }
         action={
         action={
           <LinkButton
           <LinkButton
             external
             external

+ 1 - 0
static/app/views/settings/organization/navigationConfiguration.tsx

@@ -114,6 +114,7 @@ const organizationNavigation: NavigationSection[] = [
         path: `${organizationSettingsPathPrefix}/dynamic-sampling/`,
         path: `${organizationSettingsPathPrefix}/dynamic-sampling/`,
         title: t('Dynamic Sampling'),
         title: t('Dynamic Sampling'),
         description: t('Manage your sampling rate'),
         description: t('Manage your sampling rate'),
+        badge: () => <FeatureBadge type="alpha" />,
         show: ({organization}) =>
         show: ({organization}) =>
           !!organization && hasDynamicSamplingCustomFeature(organization),
           !!organization && hasDynamicSamplingCustomFeature(organization),
       },
       },