Browse Source

feat(alerts): add spend allocation notification select (#39994)

Cathy Teng 2 years ago
parent
commit
c53f34710d
1 changed files with 15 additions and 0 deletions
  1. 15 0
      static/app/views/settings/account/notifications/fields2.tsx

+ 15 - 0
static/app/views/settings/account/notifications/fields2.tsx

@@ -3,6 +3,7 @@ import {Fragment} from 'react';
 import FeatureBadge from 'sentry/components/featureBadge';
 import {Field} from 'sentry/components/forms/types';
 import ExternalLink from 'sentry/components/links/externalLink';
+import QuestionTooltip from 'sentry/components/questionTooltip';
 import {t, tct} from 'sentry/locale';
 import {getDocsLinkForEventType} from 'sentry/views/settings/account/notifications/utils';
 
@@ -177,4 +178,18 @@ export const QUOTA_FIELDS = [
       ['never', t('Off')],
     ] as const,
   },
+  {
+    name: 'quotaSpendAllocations',
+    label: (
+      <Fragment>
+        {t('Spend Allocations')}{' '}
+        <QuestionTooltip position="top" title="Business plan only" size="xs" />
+      </Fragment>
+    ),
+    help: t('Receive notifications about your spend allocations.'),
+    choices: [
+      ['always', t('On')],
+      ['never', t('Off')],
+    ] as const,
+  },
 ];