Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(alerts): say when notification delivery is paused where destinations are configured

rcourtman4be10526b653
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 6e436890cd..68001202a2 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,131 +1,39 @@
{
"version": 1,
- "base_sha": "550b68fb13ee806287e2a54f00af4f1e1ddc5f6b",
- "verified_at": "2026-08-18T18:42:36Z",
"result": "passed",
+ "verified_at": "2026-08-18T19:01:00Z",
+ "base_sha": "9bec2a52b518ac6164652574962ea078d82df330",
"changed_paths": [
- "frontend-modern/src/components/Storage/StoragePoolRow.tsx",
- "frontend-modern/src/components/Storage/StoragePoolsTable.tsx",
- "frontend-modern/src/components/Workloads/WorkloadsTable.tsx",
- "frontend-modern/src/components/Workloads/guestRowModel.tsx",
- "frontend-modern/src/features/docker/DockerNetworksTable.tsx",
- "frontend-modern/src/features/docker/dockerContainerTableModel.ts",
- "frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesPolicyTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesStorageTable.tsx",
- "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx",
- "frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx",
- "frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx",
- "frontend-modern/src/features/proxmox/ProxmoxReplicationTable.tsx",
- "frontend-modern/src/features/proxmox/proxmoxBackupsTablePresentation.ts",
- "frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts",
- "frontend-modern/src/features/standalone/AvailabilityChecksTable.tsx",
- "frontend-modern/src/features/storageBackups/storagePagePresentation.ts",
- "frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx",
- "frontend-modern/src/features/truenas/TrueNASAppsTable.tsx",
- "frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx",
- "frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx",
- "frontend-modern/src/features/truenas/TrueNASServicesTable.tsx",
- "frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx",
- "frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx",
- "frontend-modern/src/features/vmware/VsphereActivityTable.tsx",
- "frontend-modern/src/features/vmware/VsphereAlertsTable.tsx",
- "frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx",
- "frontend-modern/src/features/vmware/VsphereNetworksTable.tsx",
- "frontend-modern/src/index.css"
+ "frontend-modern/src/features/alerts/AlertDeliveryPausedCard.tsx",
+ "frontend-modern/src/features/alerts/tabs/DestinationsTab.tsx",
+ "frontend-modern/src/utils/alertDestinationsPresentation.ts"
],
"content_sha256": {
- "frontend-modern/src/components/Storage/StoragePoolRow.tsx": "6e2deeb6f91a936971031f48f245ff9281a9bfddad23168ffef4d26a0fcdf87f",
- "frontend-modern/src/components/Storage/StoragePoolsTable.tsx": "58a2cf8105a58a513eaaf6d005078340a2073869e8388dba159dff4df5c268ac",
- "frontend-modern/src/components/Workloads/WorkloadsTable.tsx": "78a7a615c0b3c1ad06abc276f0ea62fa8773339161a11de10c2e9d1019ea3c73",
- "frontend-modern/src/components/Workloads/guestRowModel.tsx": "1433f0bbc94c8a6e26b2f26d1bb915dd901c68765b5fb17a9cdfb559ccafaf3a",
- "frontend-modern/src/features/docker/DockerNetworksTable.tsx": "c9e4819ceafcc16d48404b65b148253725254254f8a07ca12789dc568d53c61d",
- "frontend-modern/src/features/docker/dockerContainerTableModel.ts": "3bcbba1d0b47e5faf1f3452db8ff7b3c2631dfb96be2c45b5b0fc6e6c3c31f7a",
- "frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx": "6a2adaccf3b8c5d7823d0bd3f6d98feb18f8ebb9bf31aa1b2ee7a2904efe3125",
- "frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx": "5922128c7e5da6a0768959354a623594801380a4b23aeeb57a5fd4a9301832c5",
- "frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx": "5f8d93e526145cb233e44cfb8fb9964c245e0d85348a8f216735c9361dd445d1",
- "frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx": "519642d8f8c3bc4144cf3706d420302546d41825aa6b176132998f52dec248ac",
- "frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx": "cb4b5a11ec784968cf17f958cbbf126d29ccf627ce16aaaf40bb3a4852f1e8ab",
- "frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsx": "a84786b62101383e645b2ae2e3f62279d700f958c59e9721f3e7d760395e6680",
- "frontend-modern/src/features/kubernetes/KubernetesPolicyTable.tsx": "ca03327cb7981a334dd78078202283f3e0855d558570b716e613666e72d3a92e",
- "frontend-modern/src/features/kubernetes/KubernetesStorageTable.tsx": "4fbf7280ed6ca8ea7dd00fe8c373c0cae03d3744d7f0d004130f9a2dbe7c4098",
- "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx": "e8ec632435578bde23574df21e979dc31afa63d68a3537787154533069ebd4cd",
- "frontend-modern/src/features/proxmox/ProxmoxCephClusterDrawer.tsx": "00d4a4c69450b2815b1016d7e2adfe7c93f5ad95e2f990b450e33a5843389c7e",
- "frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx": "e4f80f30f200f0d36e6c32849215e6cca59963206fb0e46693c15fabd03810b8",
- "frontend-modern/src/features/proxmox/ProxmoxReplicationTable.tsx": "0bdf635feea6065226a5b1bc4805eb6669625a30d96303bfadd168c2b9963548",
- "frontend-modern/src/features/proxmox/proxmoxBackupsTablePresentation.ts": "4bab56739f5bbcf180cad260aadc1ece204f2f506f28421ea2eaa57f3122e4b5",
- "frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts": "5051817de46f6680097d0264c45f8fc0f2c55f6b1fbba66d85f3a5e6f814ab26",
- "frontend-modern/src/features/standalone/AvailabilityChecksTable.tsx": "2777008cad865f36713ad707dde03fc0151439f28ab3804c19251bacce6eac99",
- "frontend-modern/src/features/storageBackups/storagePagePresentation.ts": "3420397ed1832360092fba52af14665d0fbb480028fdef233406eb64d3fe36e7",
- "frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx": "bd888238983cde09599dc5f7cc732fd64db773e9c18bd823beab8edcad2a9f9b",
- "frontend-modern/src/features/truenas/TrueNASAppsTable.tsx": "620ee447f121d48ff023e62f1bef3c3a1896336b3280c97e3fbe064d6a40433b",
- "frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx": "83a926b3e0df13076d1a66db4cae4985348ae7e4cb4b5375a88f6c5d2155f157",
- "frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx": "3c60bb3cdbbd591598381453ee82272d4d9f6ce270a7c35b0e159a79ef0e1535",
- "frontend-modern/src/features/truenas/TrueNASServicesTable.tsx": "23529b6b6706b213fd22c1b631500a15b02635779d77e7871f5300fbde128477",
- "frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx": "3872e327ed124053a6dc32ae366c6c978a275044ce0ff47a890142ece7097e52",
- "frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx": "08f069b7934c90302d631bbca4c3fc086c5c69e37de07974e95f46c4e9d928c2",
- "frontend-modern/src/features/vmware/VsphereActivityTable.tsx": "c245ec6cbeb92c505ded5ee2999daaf1b8d84e10fc3b1c1bed408573139e5284",
- "frontend-modern/src/features/vmware/VsphereAlertsTable.tsx": "0caf9eb4900939e463f8321409cd712540e508052b87ca4b87d74b277316662c",
- "frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx": "7e59cebc381ebbfd407936bd675b30ffe145631dac441866f4ffd8b460d32a25",
- "frontend-modern/src/features/vmware/VsphereNetworksTable.tsx": "c8a5fa5e993171f4a69475782f9223d5a47bc0d122ce68b0ce7de60eb650ee46",
- "frontend-modern/src/index.css": "5d4afa25d06188cd33ac1bf694c65722275a2d82fc3b6459adb072369a369d32"
+ "frontend-modern/src/features/alerts/AlertDeliveryPausedCard.tsx": "24ba381b7ee24247c53707d2fb5e311d8add2a43b8ba30bd1780e5bbf66d539b",
+ "frontend-modern/src/features/alerts/tabs/DestinationsTab.tsx": "8f448e48aef2bf10286a8c175a6091e9706dcf9990b6fb9ccc2651f6dbbd7acf",
+ "frontend-modern/src/utils/alertDestinationsPresentation.ts": "40432ae601f5916d957113aa33c2c4597eaf1ea014e2bf1a90b5e91f275992c5"
},
"routes": [
- "/proxmox/overview",
- "/proxmox/storage?source=proxmox-all",
- "/proxmox/replication",
- "/proxmox/backups",
- "/proxmox/ceph",
- "/docker/overview",
- "/docker/images",
- "/docker/storage",
- "/docker/networks",
- "/docker/swarm",
- "/kubernetes/overview",
- "/kubernetes/services",
- "/kubernetes/storage",
- "/kubernetes/configuration",
- "/truenas/overview",
- "/truenas/storage",
- "/truenas/services",
- "/truenas/apps",
- "/truenas/vms",
- "/truenas/shares",
- "/truenas/protection",
- "/vmware/overview",
- "/vmware/storage",
- "/vmware/networks",
- "/vmware/health",
- "/vmware/activity",
- "/standalone/machines",
- "/standalone/availability"
+ "/alerts/notifications",
+ "/alerts/overview"
+ ],
+ "states": [
+ "activationState=pending_review: paused card renders above the Email notifications section",
+ "activationState=active: paused card is absent",
+ "alert config not yet loaded: no card rendered, so no false warning flash on tab open"
+ ],
+ "interactions": [
+ "clicked 'Turn on delivery' on /alerts/notifications; card cleared and the overview header moved to 'Notifications enabled'",
+ "restored activation via the overview toggle; card returned and the backend reported pending_review again"
],
"viewports": [
{
- "width": 1440,
- "height": 1000
+ "width": 1280,
+ "height": 800
},
{
- "width": 390,
- "height": 844
+ "width": 375,
+ "height": 812
}
- ],
- "states": [
- "Demo-data primary tables across every Proxmox, Docker, Kubernetes, TrueNAS, vSphere, and standalone route with a visible table",
- "Phone tables at 390px with canonical 30 percent identity tracks, five to seven source-relevant fields where available, and document/table scroll-width parity",
- "Proxmox Ceph expanded cluster with nested Pool and Service inventory tables",
- "Desktop Proxmox overview with all breakpoint columns visible and no document or wrapper overflow",
- "Expanded Proxmox node detail at desktop width"
- ],
- "interactions": [
- "navigated the complete platform route matrix at 390x844 and inspected rendered table headers, computed identity widths, table overflow, and document overflow",
- "expanded West Production A from the Proxmox node table and verified the controlled detail panel remained within the document",
- "switched to 1440x1000 and verified the full Proxmox desktop column sets and wrapper fit",
- "returned the deliverable preview to Proxmox Overview at 390x844"
]
}
diff --git a/frontend-modern/src/features/alerts/AlertDeliveryPausedCard.test.tsx b/frontend-modern/src/features/alerts/AlertDeliveryPausedCard.test.tsx
new file mode 100644
index 0000000000..e53c4e4bfb
--- /dev/null
+++ b/frontend-modern/src/features/alerts/AlertDeliveryPausedCard.test.tsx
@@ -0,0 +1,40 @@
+import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';
+import { afterEach, describe, expect, it, vi } from 'vitest';
+
+import { AlertDeliveryPausedCard } from './AlertDeliveryPausedCard';
+
+afterEach(cleanup);
+
+describe('AlertDeliveryPausedCard', () => {
+ it('warns that configured destinations receive nothing while delivery is paused', () => {
+ render(() => (
+ <AlertDeliveryPausedCard reason="not_activated" activating={false} onActivate={() => {}} />
+ ));
+
+ expect(screen.getByRole('alert')).toBeTruthy();
+ expect(screen.getByText('Notifications are paused')).toBeTruthy();
+ expect(screen.getByText(/none of them will be sent to the destinations below/i)).toBeTruthy();
+ // A passing test send is exactly what convinces users delivery works.
+ expect(screen.getByText(/Test messages bypass the pause/i)).toBeTruthy();
+ });
+
+ it('activates delivery from the destinations surface', () => {
+ const onActivate = vi.fn();
+ render(() => (
+ <AlertDeliveryPausedCard reason="not_activated" activating={false} onActivate={onActivate} />
+ ));
+
+ fireEvent.click(screen.getByRole('button', { name: 'Turn on delivery' }));
+ expect(onActivate).toHaveBeenCalledTimes(1);
+ });
+
+ it('disables the action while activation is in flight', () => {
+ render(() => (
+ <AlertDeliveryPausedCard reason="snoozed" activating={true} onActivate={() => {}} />
+ ));
+
+ expect(screen.getByRole('button', { name: 'Turn on delivery' }).hasAttribute('disabled')).toBe(
+ true,
+ );
+ });
+});
diff --git a/frontend-modern/src/features/alerts/AlertDeliveryPausedCard.tsx b/frontend-modern/src/features/alerts/AlertDeliveryPausedCard.tsx
new file mode 100644
index 0000000000..da2330b6ad
--- /dev/null
+++ b/frontend-modern/src/features/alerts/AlertDeliveryPausedCard.tsx
@@ -0,0 +1,51 @@
+import BellOffIcon from 'lucide-solid/icons/bell-off';
+
+import { Card } from '@/components/shared/Card';
+import {
+ type AlertDestinationsDeliveryPausedReason,
+ getAlertDestinationsDeliveryPausedActionLabel,
+ getAlertDestinationsDeliveryPausedDescription,
+ getAlertDestinationsDeliveryPausedTitle,
+} from '@/utils/alertDestinationsPresentation';
+
+interface AlertDeliveryPausedCardProps {
+ reason: AlertDestinationsDeliveryPausedReason;
+ activating: boolean;
+ onActivate: () => void;
+}
+
+// Shown on the destinations surface whenever notification delivery is gated
+// off. Without it a user configures a destination, sends a passing test, and
+// never learns that live alerts are being dropped before they reach the queue.
+export function AlertDeliveryPausedCard(props: AlertDeliveryPausedCardProps) {
+ return (
+ <Card
+ tone="warning"
+ padding="sm"
+ class="border-amber-200 dark:border-amber-800 sm:p-4"
+ role="alert"
+ >
+ <div class="flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between">
+ <div class="flex min-w-0 items-start gap-3">
+ <BellOffIcon class="mt-0.5 h-4 w-4 flex-shrink-0 text-amber-700 dark:text-amber-300" />
+ <div class="min-w-0">
+ <h3 class="text-sm font-semibold text-amber-900 dark:text-amber-100">
+ {getAlertDestinationsDeliveryPausedTitle()}
+ </h3>
+ <p class="mt-1 text-sm leading-6 text-amber-800 dark:text-amber-200">
+ {getAlertDestinationsDeliveryPausedDescription(props.reason)}
+ </p>
+ </div>
+ </div>
+ <button
+ type="button"
+ class="inline-flex flex-shrink-0 items-center justify-center gap-2 rounded-md border border-amber-300 bg-transparent px-3 py-1.5 text-sm font-medium text-amber-800 transition hover:bg-amber-100 disabled:cursor-not-allowed disabled:opacity-50 dark:border-amber-700 dark:text-amber-200 dark:hover:bg-amber-900/30"
+ disabled={props.activating}
+ onClick={props.onActivate}
+ >
+ {getAlertDestinationsDeliveryPausedActionLabel()}
+ </button>
+ </div>
+ </Card>
+ );
+}
diff --git a/frontend-modern/src/features/alerts/tabs/DestinationsTab.tsx b/frontend-modern/src/features/alerts/tabs/DestinationsTab.tsx
index 0f5507caa7..6f7271ca2f 100644
--- a/frontend-modern/src/features/alerts/tabs/DestinationsTab.tsx
+++ b/frontend-modern/src/features/alerts/tabs/DestinationsTab.tsx
@@ -1,9 +1,13 @@
-import { Show } from 'solid-js';
+import { createMemo, createSignal, Show } from 'solid-js';
import { hasFeature } from '@/stores/license';
import { getUpgradeActionDestination } from '@/stores/licenseCommercial';
import { presentationPolicyHidesUpgradePrompts } from '@/stores/sessionPresentationPolicy';
+import { useAlertsActivation } from '@/stores/alertsActivation';
+import { logger } from '@/utils/logger';
+import type { AlertDestinationsDeliveryPausedReason } from '@/utils/alertDestinationsPresentation';
import { AlertAppriseDestinationsSection } from '../AlertAppriseDestinationsSection';
import { AlertDeliveryHealthCard } from '../AlertDeliveryHealthCard';
+import { AlertDeliveryPausedCard } from '../AlertDeliveryPausedCard';
import { AlertDestinationsLoadErrorCard } from '../AlertDestinationsLoadErrorCard';
import { AlertDestinationsLoadingState } from '../AlertDestinationsLoadingState';
import { AlertEmailDestinationsSection } from '../AlertEmailDestinationsSection';
@@ -22,10 +26,53 @@ export interface DestinationsTabProps extends AlertDestinationsTabStateProps {
export function DestinationsTab(props: DestinationsTabProps) {
const state = useAlertDestinationsTabState(props);
+ const alertsActivation = useAlertsActivation();
+ const [activating, setActivating] = createSignal(false);
+
+ // Destinations configured here are inert while delivery is gated off, so the
+ // pause has to be visible on this surface rather than only on the overview.
+ const pausedReason = createMemo<AlertDestinationsDeliveryPausedReason | null>(() => {
+ // Until the alert config resolves, activation state is null and would read
+ // as paused; staying quiet avoids a false warning on every tab open.
+ if (!alertsActivation.config() || alertsActivation.activationState() === null) {
+ return null;
+ }
+ if (alertsActivation.notificationDeliveryEnabled()) {
+ return null;
+ }
+ if (!alertsActivation.detectionEnabled()) {
+ return 'detection_off';
+ }
+ return alertsActivation.activationState() === 'snoozed' ? 'snoozed' : 'not_activated';
+ });
+
+ const handleActivate = async () => {
+ if (activating()) {
+ return;
+ }
+ setActivating(true);
+ try {
+ await alertsActivation.activate();
+ } catch (error) {
+ logger.error('Failed to activate notification delivery from destinations tab', error);
+ } finally {
+ setActivating(false);
+ }
+ };
return (
<div class="flex w-full max-w-full flex-col gap-6 md:gap-8">
<Show when={!state.isLoading()} fallback={<AlertDestinationsLoadingState />}>
+ <Show when={pausedReason()}>
+ {(reason) => (
+ <AlertDeliveryPausedCard
+ reason={reason()}
+ activating={activating()}
+ onActivate={() => void handleActivate()}
+ />
+ )}
+ </Show>
+
<Show
when={
state.deliveryHealthUnavailable() || state.deliveryHealth()?.queue.status === 'degraded'
diff --git a/frontend-modern/src/utils/__tests__/alertDestinationsPresentation.test.ts b/frontend-modern/src/utils/__tests__/alertDestinationsPresentation.test.ts
index 1d670d6db5..4515fbc2fd 100644
--- a/frontend-modern/src/utils/__tests__/alertDestinationsPresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/alertDestinationsPresentation.test.ts
@@ -1,5 +1,8 @@
import { describe, expect, it } from 'vitest';
import {
+ getAlertDestinationsDeliveryPausedActionLabel,
+ getAlertDestinationsDeliveryPausedDescription,
+ getAlertDestinationsDeliveryPausedTitle,
ALERT_DESTINATIONS_CONFIG_LOAD_ERROR,
ALERT_DESTINATIONS_PUSH_GATE_MESSAGE,
ALERT_DESTINATIONS_PUSH_GATE_TITLE,
@@ -162,3 +165,26 @@ describe('alertDestinationsPresentation', () => {
expect(getAlertDestinationsDeliveryRefreshLabel()).toBe('Refresh delivery status');
});
});
+
+describe('alert destinations delivery paused copy', () => {
+ it('names the consequence and the test-send caveat for every paused reason', () => {
+ expect(getAlertDestinationsDeliveryPausedTitle()).toBe('Notifications are paused');
+ expect(getAlertDestinationsDeliveryPausedActionLabel()).toBe('Turn on delivery');
+
+ for (const reason of ['detection_off', 'not_activated', 'snoozed'] as const) {
+ const description = getAlertDestinationsDeliveryPausedDescription(reason);
+ // The whole point of the card: say that nothing reaches the destinations,
+ // and that a passing test is not evidence delivery works.
+ expect(description).toContain('none of them will be sent to the destinations below');
+ expect(description).toContain('Test messages bypass the pause');
+ }
+
+ expect(getAlertDestinationsDeliveryPausedDescription('detection_off')).toContain(
+ 'Alerts are switched off',
+ );
+ expect(getAlertDestinationsDeliveryPausedDescription('snoozed')).toContain('snoozed');
+ expect(getAlertDestinationsDeliveryPausedDescription('not_activated')).toContain(
+ 'has not been turned on for this install yet',
+ );
+ });
+});
diff --git a/frontend-modern/src/utils/alertDestinationsPresentation.ts b/frontend-modern/src/utils/alertDestinationsPresentation.ts
index ad68dbd033..51be5e31af 100644
--- a/frontend-modern/src/utils/alertDestinationsPresentation.ts
+++ b/frontend-modern/src/utils/alertDestinationsPresentation.ts
@@ -198,3 +198,34 @@ export function getAlertDestinationsDeliveryHealthDescription(input: {
export function getAlertDestinationsDeliveryRefreshLabel() {
return ALERT_DESTINATIONS_DELIVERY_REFRESH_LABEL;
}
+
+const ALERT_DESTINATIONS_DELIVERY_PAUSED_TITLE = 'Notifications are paused';
+const ALERT_DESTINATIONS_DELIVERY_PAUSED_ACTION = 'Turn on delivery';
+
+export type AlertDestinationsDeliveryPausedReason = 'detection_off' | 'not_activated' | 'snoozed';
+
+export function getAlertDestinationsDeliveryPausedTitle() {
+ return ALERT_DESTINATIONS_DELIVERY_PAUSED_TITLE;
+}
+
+export function getAlertDestinationsDeliveryPausedActionLabel() {
+ return ALERT_DESTINATIONS_DELIVERY_PAUSED_ACTION;
+}
+
+// Describes why nothing configured on this page will actually reach anyone.
+// The test-send caveat is deliberate: test messages bypass the delivery pause,
+// so a successful test is not evidence that live alerts are getting through.
+export function getAlertDestinationsDeliveryPausedDescription(
+ reason: AlertDestinationsDeliveryPausedReason,
+) {
+ const consequence =
+ 'Pulse is still detecting alerts, but none of them will be sent to the destinations below. Test messages bypass the pause, so a successful test does not mean live alerts are getting through.';
+
+ if (reason === 'detection_off') {
+ return `Alerts are switched off in the alert configuration. ${consequence}`;
+ }
+ if (reason === 'snoozed') {
+ return `Notification delivery is snoozed. ${consequence}`;
+ }
+ return `Notification delivery has not been turned on for this install yet. ${consequence}`;
+}