Skip to content

Commit

Permalink
feat(ds): Add an alpha badge for DS settings (#81291)
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-auer authored Nov 26, 2024
1 parent 7dbdc76 commit d4f6aab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion static/app/views/settings/dynamicSampling/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {Fragment} from 'react';

import {Alert} from 'sentry/components/alert';
import FeatureBadge from 'sentry/components/badge/featureBadge';
import {LinkButton} from 'sentry/components/button';
import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
import {t} from 'sentry/locale';
Expand All @@ -23,7 +24,12 @@ export default function DynamicSamplingSettings() {
<Fragment>
<SentryDocumentTitle title={t('Dynamic Sampling')} orgSlug={organization.slug} />
<SettingsPageHeader
title={t('Dynamic Sampling')}
title={
<Fragment>
{t('Dynamic Sampling')}
<FeatureBadge type="alpha" />
</Fragment>
}
action={
<LinkButton
external
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ const organizationNavigation: NavigationSection[] = [
path: `${organizationSettingsPathPrefix}/dynamic-sampling/`,
title: t('Dynamic Sampling'),
description: t('Manage your sampling rate'),
badge: () => <FeatureBadge type="alpha" />,
show: ({organization}) =>
!!organization && hasDynamicSamplingCustomFeature(organization),
},
Expand Down

0 comments on commit d4f6aab

Please sign in to comment.