|
@@ -5,7 +5,6 @@ export type FineTuneField = {
|
|
|
description: string;
|
|
|
title: string;
|
|
|
type: 'select';
|
|
|
- defaultFieldName?: string;
|
|
|
defaultValue?: string;
|
|
|
options?: SelectValue<string>[];
|
|
|
};
|
|
@@ -15,15 +14,13 @@ export const ACCOUNT_NOTIFICATION_FIELDS: Record<string, FineTuneField> = {
|
|
|
alerts: {
|
|
|
title: t('Issue Alert Notifications'),
|
|
|
description: t(
|
|
|
- 'Notifications from Alert Rules that your team has setup. You’ll always receive notifications from Alerts configured to be sent directly to you.'
|
|
|
+ "Notifications from Alert Rules that your team has setup. You'll always receive notifications from Alerts configured to be sent directly to you."
|
|
|
),
|
|
|
type: 'select',
|
|
|
options: [
|
|
|
{value: '1', label: t('On')},
|
|
|
{value: '0', label: t('Off')},
|
|
|
],
|
|
|
- defaultValue: '-1',
|
|
|
- defaultFieldName: 'subscribeByDefault',
|
|
|
},
|
|
|
workflow: {
|
|
|
title: t('Workflow Notifications'),
|
|
@@ -36,8 +33,6 @@ export const ACCOUNT_NOTIFICATION_FIELDS: Record<string, FineTuneField> = {
|
|
|
{value: '1', label: t('Only on issues I subscribe to')},
|
|
|
{value: '2', label: t('Never')},
|
|
|
],
|
|
|
- defaultValue: '-1',
|
|
|
- defaultFieldName: 'workflowNotifications',
|
|
|
},
|
|
|
deploy: {
|
|
|
title: t('Deploy Notifications'),
|
|
@@ -50,8 +45,6 @@ export const ACCOUNT_NOTIFICATION_FIELDS: Record<string, FineTuneField> = {
|
|
|
{value: '3', label: t('Only on deploys with my commits')},
|
|
|
{value: '4', label: t('Never')},
|
|
|
],
|
|
|
- defaultValue: '-1',
|
|
|
- defaultFieldName: 'deployNotifications',
|
|
|
},
|
|
|
reports: {
|
|
|
title: t('Weekly Reports'),
|
|
@@ -65,7 +58,6 @@ export const ACCOUNT_NOTIFICATION_FIELDS: Record<string, FineTuneField> = {
|
|
|
{value: '1', label: t('On')},
|
|
|
{value: '0', label: t('Off')},
|
|
|
],
|
|
|
- defaultFieldName: 'weeklyReports',
|
|
|
},
|
|
|
approval: {
|
|
|
title: t('Nudges'),
|
|
@@ -94,7 +86,6 @@ export const ACCOUNT_NOTIFICATION_FIELDS: Record<string, FineTuneField> = {
|
|
|
{value: '1', label: t('On')},
|
|
|
{value: '0', label: t('Off')},
|
|
|
],
|
|
|
- defaultFieldName: 'spikeProtection',
|
|
|
},
|
|
|
email: {
|
|
|
title: t('Email Routing'),
|