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.

Canonicalize Settings Infrastructure guidance copy

rcourtman132e298d5b39
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index ec0431ebdb..f42fb00d4f 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -675,6 +675,11 @@ route. `buildInfrastructureWorkspacePath()` always returns the base path;
`deriveAddStepFromLegacyPath()` maps legacy sub-paths to in-page panel state.
`SetupCompletionPanel.tsx` uses one `INFRASTRUCTURE_PATH` constant for all
install and platform CTAs.
+`frontend-modern/src/utils/infrastructureSettingsPresentation.ts` owns the
+customer-facing Settings Infrastructure target label and onboarding source
+strategy copy. Lifecycle and setup guidance must point operators to
+`Settings → Infrastructure` and must not revive removed subpaths such as
+`Settings → Infrastructure → Proxmox`.
The shared monitored-system admission preview now formats save-impact
summaries through `frontend-modern/src/utils/monitoredSystemPresentation.ts`
so infrastructure setup screens describe count impact and active-policy
diff --git a/docs/release-control/v6/internal/subsystems/alerts.md b/docs/release-control/v6/internal/subsystems/alerts.md
index 33efbcab28..c285974fa8 100644
--- a/docs/release-control/v6/internal/subsystems/alerts.md
+++ b/docs/release-control/v6/internal/subsystems/alerts.md
@@ -224,6 +224,10 @@ status labels. Overview stat-card labels must also route through the alert
overview presentation helper, and user-facing configuration or thresholds copy
must use workload, VM, and container vocabulary instead of exposing internal
guest override/filter names unless the UI is naming a backend field directly.
+Thresholds empty states that hand operators to Infrastructure settings must use
+`frontend-modern/src/utils/infrastructureSettingsPresentation.ts` for the
+canonical `Settings → Infrastructure` label instead of hard-coding generic
+`Settings` copy or removed nested settings paths.
Future alert configuration or history presentation work should
extend those helpers instead of rebuilding alert-specific semantics in pages,
dashboard surfaces, feature hooks, or thresholds shells.
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index a35a652175..092576f51e 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -720,6 +720,12 @@ workspace capacity rather than license slots or plan-upgrade pressure.
polling on a settings tab name; polling is mount-scoped. The tab guard was
removed when the infrastructure nav collapsed to one `infrastructure-systems`
entry.
+That same settings boundary now also keeps the customer-facing Settings
+Infrastructure target label in
+`frontend-modern/src/utils/infrastructureSettingsPresentation.ts`. API-backed
+setup, discovery, and guidance surfaces must point operators to
+`Settings → Infrastructure` rather than hard-coding retired nested settings
+paths such as `Settings → Infrastructure → Proxmox`.
The API layer already uses contract tests in many places, but every major live
contract should continue moving toward canonical-only runtime shapes.
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index ef5adf10d9..9c9f378903 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -882,6 +882,11 @@ command guidance targets. Discovery surfaces that need to tell operators where
to enable command execution or verify `agent:exec` scope must use that helper's
canonical `Settings → Infrastructure` and `Settings → API Access` handoffs
instead of hard-coding legacy settings labels or old route paths.
+Shared frontend empty states, thresholds empty states, and discovery guidance
+that mention the Infrastructure settings destination now consume
+`frontend-modern/src/utils/infrastructureSettingsPresentation.ts` for the
+canonical `Settings → Infrastructure` label and source-strategy copy. Shared
+primitives must not fork that string or revive removed nested route labels.
`SettingsTab` no longer includes `infrastructure-connections` or
`infrastructure-install`. The single `infrastructure-systems` entry in
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index b48dbfa918..8cbbd73236 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -707,6 +707,11 @@ That same owned summary path now also runs through
range and one shared storage-summary history fetch, and both the sticky
summary cards and per-pool growth column reuse that payload instead of
forking separate row-local history reads or duplicate polling loops.
+Storage physical-disk requirements copy now consumes the shared
+`frontend-modern/src/utils/infrastructureSettingsPresentation.ts` Settings
+Infrastructure target label. Disk-health guidance may refer to Proxmox node
+requirements, but it must not revive removed nested Pulse settings paths such
+as `Settings → Infrastructure → Proxmox`.
This subsystem now sits under the dedicated storage and recovery lane so the
operator-facing storage page, recovery timeline, and recovery-point persistence
diff --git a/frontend-modern/src/components/Storage/__tests__/DiskList.test.tsx b/frontend-modern/src/components/Storage/__tests__/DiskList.test.tsx
index 9f65c12358..39c49025a2 100644
--- a/frontend-modern/src/components/Storage/__tests__/DiskList.test.tsx
+++ b/frontend-modern/src/components/Storage/__tests__/DiskList.test.tsx
@@ -131,6 +131,38 @@ describe('DiskList', () => {
expect(screen.getByTestId('disk-detail')).toHaveTextContent('sdb');
});
+ it('renders canonical Settings Infrastructure guidance for empty physical disks', () => {
+ renderDiskList({
+ disks: [],
+ nodes: [buildNode('node-tower', 'tower')],
+ selectedNode: null,
+ searchTerm: '',
+ });
+
+ expect(screen.getByText('Physical disk monitoring requirements:')).toBeInTheDocument();
+ expect(
+ screen.getByText(
+ 'Enable "Monitor physical disk health (SMART)" in Settings → Infrastructure for the Proxmox node',
+ ),
+ ).toBeInTheDocument();
+ expect(screen.queryByText(/Settings → Infrastructure → Proxmox/)).not.toBeInTheDocument();
+
+ cleanup();
+ renderDiskList({
+ disks: [],
+ nodes: [],
+ selectedNode: null,
+ searchTerm: '',
+ });
+
+ expect(
+ screen.getByText(
+ 'No Proxmox nodes configured. Add Proxmox VE in Settings → Infrastructure to monitor physical disks.',
+ ),
+ ).toBeInTheDocument();
+ expect(screen.queryByText(/Add a Proxmox VE cluster in Settings/)).not.toBeInTheDocument();
+ });
+
it('keeps api-backed TrueNAS disks on the canonical physical-disk surface even without hardware ids', () => {
renderDiskList({
disks: [
diff --git a/frontend-modern/src/features/storageBackups/__tests__/diskPresentation.test.ts b/frontend-modern/src/features/storageBackups/__tests__/diskPresentation.test.ts
index dcb75e48a4..691836a8a8 100644
--- a/frontend-modern/src/features/storageBackups/__tests__/diskPresentation.test.ts
+++ b/frontend-modern/src/features/storageBackups/__tests__/diskPresentation.test.ts
@@ -180,7 +180,12 @@ describe('diskPresentation', () => {
nodeMessage: 'for node tower',
filterMessages: [],
showRequirements: true,
+ fallbackMessage:
+ 'No Proxmox nodes configured. Add Proxmox VE in Settings → Infrastructure to monitor physical disks.',
requirementsTitle: 'Physical disk monitoring requirements:',
+ requirementsItems: expect.arrayContaining([
+ 'Enable "Monitor physical disk health (SMART)" in Settings → Infrastructure for the Proxmox node',
+ ]),
});
expect(
diff --git a/frontend-modern/src/features/storageBackups/diskPresentation.ts b/frontend-modern/src/features/storageBackups/diskPresentation.ts
index dccdf1d6d7..37c074ca28 100644
--- a/frontend-modern/src/features/storageBackups/diskPresentation.ts
+++ b/frontend-modern/src/features/storageBackups/diskPresentation.ts
@@ -5,6 +5,7 @@ import {
resolvePlatformTypeFromSources,
} from '@/utils/sourcePlatforms';
import { getPhysicalDiskNodeIdentity } from '@/components/Storage/diskResourceUtils';
+import { getInfrastructureSettingsLocationLabel } from '@/utils/infrastructureSettingsPresentation';
import { normalizeStorageSourceKey } from '@/utils/storageSources';
import type { NormalizedHealth, StorageHealthFilter } from './models';
import { matchesStorageNodeTerms, parseStorageSearchQuery } from './storageSearchQuery';
@@ -583,10 +584,10 @@ export function getPhysicalDiskEmptyStatePresentation(options: {
filterMessages,
showRequirements: !hasScopedFilter && options.diskCount === 0 && options.hasPVENodes,
fallbackMessage:
- 'No Proxmox nodes configured. Add a Proxmox VE cluster in Settings to monitor physical disks.',
+ `No Proxmox nodes configured. Add Proxmox VE in ${getInfrastructureSettingsLocationLabel()} to monitor physical disks.`,
requirementsTitle: 'Physical disk monitoring requirements:',
requirementsItems: [
- 'Enable "Monitor physical disk health (SMART)" in Settings → Infrastructure (Proxmox node advanced settings)',
+ `Enable "Monitor physical disk health (SMART)" in ${getInfrastructureSettingsLocationLabel()} for the Proxmox node`,
'Enable SMART monitoring in Proxmox VE at Datacenter → Node → System → Advanced → "Monitor physical disk health"',
'Wait 5 minutes for Proxmox to collect SMART data',
],
diff --git a/frontend-modern/src/utils/__tests__/alertThresholdsPresentation.test.ts b/frontend-modern/src/utils/__tests__/alertThresholdsPresentation.test.ts
index ba1d9bc3e5..50a76d6a6d 100644
--- a/frontend-modern/src/utils/__tests__/alertThresholdsPresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/alertThresholdsPresentation.test.ts
@@ -69,7 +69,9 @@ describe('alertThresholdsPresentation', () => {
expect(SNAPSHOT_THRESHOLDS_EMPTY_STATE).toBe('Configure snapshot age thresholds.');
expect(STORAGE_THRESHOLDS_EMPTY_STATE).toBe('No storage devices found.');
expect(STORAGE_THRESHOLDS_FILTER_EMPTY_STATE).toBe('No storage devices match the current filters.');
- expect(PMG_THRESHOLDS_EMPTY_STATE).toContain('No mail gateways configured yet.');
+ expect(PMG_THRESHOLDS_EMPTY_STATE).toBe(
+ 'No mail gateways configured yet. Add a Proxmox Mail Gateway connection in Settings → Infrastructure to manage thresholds.',
+ );
expect(PMG_THRESHOLDS_FILTER_EMPTY_STATE).toBe('No mail gateways match the current filters.');
expect(AGENT_THRESHOLDS_FILTER_EMPTY_STATE).toBe('No systems match the current filters.');
expect(AGENT_DISKS_EMPTY_STATE).toContain('Systems with mounted filesystems will appear here.');
diff --git a/frontend-modern/src/utils/__tests__/dashboardEmptyStatePresentation.test.ts b/frontend-modern/src/utils/__tests__/dashboardEmptyStatePresentation.test.ts
index e5f637e1a5..b876dbdbd4 100644
--- a/frontend-modern/src/utils/__tests__/dashboardEmptyStatePresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/dashboardEmptyStatePresentation.test.ts
@@ -11,12 +11,15 @@ import {
describe('dashboardEmptyStatePresentation', () => {
it('returns the infrastructure onboarding empty state', () => {
- expect(getDashboardInfrastructureEmptyState()).toEqual({
+ const state = getDashboardInfrastructureEmptyState();
+
+ expect(state).toEqual({
title: 'No infrastructure sources connected',
description:
'Start in Settings → Infrastructure by choosing a source strategy. Connect a platform API for inventory and health, install Pulse Agent for host telemetry, or use both when you want full coverage.',
actionLabel: 'Add infrastructure source',
});
+ expect(state.description).not.toContain('Settings → Infrastructure → Proxmox');
});
it('returns the guest filter empty state for empty search', () => {
diff --git a/frontend-modern/src/utils/__tests__/discoveryPresentation.test.ts b/frontend-modern/src/utils/__tests__/discoveryPresentation.test.ts
index 22c818cb90..ce0c23c675 100644
--- a/frontend-modern/src/utils/__tests__/discoveryPresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/discoveryPresentation.test.ts
@@ -66,10 +66,14 @@ describe('discoveryPresentation', () => {
});
it('returns canonical discovery command guidance targets and errors', () => {
- expect(getDiscoveryCommandSettingsTarget()).toEqual({
+ const commandSettingsTarget = getDiscoveryCommandSettingsTarget();
+ const disconnectedMessage = getDiscoveryNoConnectedAgentMessage();
+
+ expect(commandSettingsTarget).toEqual({
href: '/settings/infrastructure',
label: 'Settings → Infrastructure',
});
+ expect(commandSettingsTarget.label).not.toContain('Settings → Infrastructure → Proxmox');
expect(getDiscoveryApiAccessSettingsTarget()).toEqual({
href: '/settings/security/api',
label: 'Settings → API Access',
@@ -80,9 +84,10 @@ describe('discoveryPresentation', () => {
expect(getDiscoveryNoConnectedAgentMessage(true)).toBe(
'Agent not connected for command execution. The API token may be missing the "agent:exec" scope. Check Settings → API Access.',
);
- expect(getDiscoveryNoConnectedAgentMessage()).toBe(
+ expect(disconnectedMessage).toBe(
'No agent available for command execution. Enable Pulse commands from Settings → Infrastructure and make sure the API token has "agent:exec" scope in Settings → API Access.',
);
+ expect(disconnectedMessage).not.toContain('Settings → Infrastructure → Proxmox');
});
it('returns canonical network discovery settings copy', () => {
diff --git a/frontend-modern/src/utils/__tests__/infrastructureSettingsPresentation.test.ts b/frontend-modern/src/utils/__tests__/infrastructureSettingsPresentation.test.ts
index a8189cea8c..3f342b2403 100644
--- a/frontend-modern/src/utils/__tests__/infrastructureSettingsPresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/infrastructureSettingsPresentation.test.ts
@@ -1,5 +1,8 @@
import { describe, expect, it } from 'vitest';
import {
+ getInfrastructureSettingsLocationLabel,
+ getInfrastructureSettingsTarget,
+ getInfrastructureSourceStrategyDescription,
getDiscoveryScanStartErrorMessage,
getDiscoverySettingUpdateErrorMessage,
getDiscoverySubnetInvalidFormatMessage,
@@ -13,6 +16,17 @@ import {
} from '@/utils/infrastructureSettingsPresentation';
describe('infrastructureSettingsPresentation', () => {
+ it('returns canonical Settings Infrastructure target copy', () => {
+ expect(getInfrastructureSettingsTarget()).toEqual({
+ href: '/settings/infrastructure',
+ label: 'Settings → Infrastructure',
+ });
+ expect(getInfrastructureSettingsLocationLabel()).toBe('Settings → Infrastructure');
+ expect(getInfrastructureSourceStrategyDescription()).toBe(
+ 'Start in Settings → Infrastructure by choosing a source strategy. Connect a platform API for inventory and health, install Pulse Agent for host telemetry, or use both when you want full coverage.',
+ );
+ });
+
it('returns canonical discovery validation and error copy', () => {
expect(getDiscoverySubnetRequiredMessage()).toBe(
'Enter at least one subnet in CIDR format (e.g., 192.168.1.0/24)',
diff --git a/frontend-modern/src/utils/__tests__/pmgPresentation.test.ts b/frontend-modern/src/utils/__tests__/pmgPresentation.test.ts
index 0e6016b25c..d68c36bb0a 100644
--- a/frontend-modern/src/utils/__tests__/pmgPresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/pmgPresentation.test.ts
@@ -43,7 +43,10 @@ describe('pmgPresentation', () => {
it('exports canonical PMG empty-state copy', () => {
expect(PMG_EMPTY_STATE_TITLE).toBe('No Mail Gateways configured');
- expect(PMG_EMPTY_STATE_DESCRIPTION).toContain('Add a Proxmox Mail Gateway');
+ expect(PMG_EMPTY_STATE_DESCRIPTION).toBe(
+ 'Add a Proxmox Mail Gateway via Settings → Infrastructure to start collecting mail analytics and security metrics.',
+ );
+ expect(PMG_EMPTY_STATE_DESCRIPTION).not.toContain('Settings → Infrastructure → Proxmox');
expect(PMG_LOADING_STATE_TITLE).toBe('Loading mail gateway data...');
expect(PMG_LOADING_STATE_DESCRIPTION).toBe('Connecting to the monitoring service.');
expect(PMG_DISCONNECTED_STATE_TITLE).toBe('Connection lost');
diff --git a/frontend-modern/src/utils/alertThresholdsPresentation.ts b/frontend-modern/src/utils/alertThresholdsPresentation.ts
index a49499d098..ef4403ba41 100644
--- a/frontend-modern/src/utils/alertThresholdsPresentation.ts
+++ b/frontend-modern/src/utils/alertThresholdsPresentation.ts
@@ -1,3 +1,5 @@
+import { getInfrastructureSettingsLocationLabel } from '@/utils/infrastructureSettingsPresentation';
+
export const PBS_THRESHOLDS_EMPTY_STATE = 'No PBS servers configured.';
export const GUEST_THRESHOLDS_EMPTY_STATE = 'No VMs or containers found.';
export const NODE_THRESHOLDS_FILTER_EMPTY_STATE = 'No virtualization hosts match the current filters.';
@@ -9,7 +11,7 @@ export const SNAPSHOT_THRESHOLDS_EMPTY_STATE = 'Configure snapshot age threshold
export const STORAGE_THRESHOLDS_EMPTY_STATE = 'No storage devices found.';
export const STORAGE_THRESHOLDS_FILTER_EMPTY_STATE = 'No storage devices match the current filters.';
export const PMG_THRESHOLDS_EMPTY_STATE =
- 'No mail gateways configured yet. Add a PMG instance in Settings to manage thresholds.';
+ `No mail gateways configured yet. Add a Proxmox Mail Gateway connection in ${getInfrastructureSettingsLocationLabel()} to manage thresholds.`;
export const PMG_THRESHOLDS_FILTER_EMPTY_STATE = 'No mail gateways match the current filters.';
export const AGENT_THRESHOLDS_FILTER_EMPTY_STATE = 'No systems match the current filters.';
export const AGENT_DISKS_EMPTY_STATE =
diff --git a/frontend-modern/src/utils/dashboardEmptyStatePresentation.ts b/frontend-modern/src/utils/dashboardEmptyStatePresentation.ts
index 3dac98f131..b6bcd0c1bb 100644
--- a/frontend-modern/src/utils/dashboardEmptyStatePresentation.ts
+++ b/frontend-modern/src/utils/dashboardEmptyStatePresentation.ts
@@ -1,8 +1,9 @@
+import { getInfrastructureSourceStrategyDescription } from '@/utils/infrastructureSettingsPresentation';
+
export function getDashboardInfrastructureEmptyState() {
return {
title: 'No infrastructure sources connected',
- description:
- 'Start in Settings → Infrastructure by choosing a source strategy. Connect a platform API for inventory and health, install Pulse Agent for host telemetry, or use both when you want full coverage.',
+ description: getInfrastructureSourceStrategyDescription(),
actionLabel: 'Add infrastructure source',
} as const;
}
diff --git a/frontend-modern/src/utils/discoveryPresentation.ts b/frontend-modern/src/utils/discoveryPresentation.ts
index 589de71c3e..556ccc8747 100644
--- a/frontend-modern/src/utils/discoveryPresentation.ts
+++ b/frontend-modern/src/utils/discoveryPresentation.ts
@@ -1,3 +1,8 @@
+import {
+ getInfrastructureSettingsLocationLabel,
+ getInfrastructureSettingsTarget,
+} from '@/utils/infrastructureSettingsPresentation';
+
export function getDiscoveryURLSuggestionSourceLabel(code?: string | null): string {
switch ((code || '').trim()) {
case 'service_default_match':
@@ -63,10 +68,7 @@ export function getDiscoveryNotesEmptyState() {
}
export function getDiscoveryCommandSettingsTarget() {
- return {
- href: '/settings/infrastructure',
- label: 'Settings → Infrastructure',
- } as const;
+ return getInfrastructureSettingsTarget();
}
export function getDiscoveryApiAccessSettingsTarget() {
@@ -77,15 +79,17 @@ export function getDiscoveryApiAccessSettingsTarget() {
}
export function getDiscoveryNoConnectedAgentMessage(commandsEnabled?: boolean): string {
+ const infrastructureSettings = getInfrastructureSettingsLocationLabel();
+
if (commandsEnabled === false) {
- return 'Commands not enabled. Enable Pulse commands from Settings → Infrastructure for this agent.';
+ return `Commands not enabled. Enable Pulse commands from ${infrastructureSettings} for this agent.`;
}
if (commandsEnabled === true) {
return 'Agent not connected for command execution. The API token may be missing the "agent:exec" scope. Check Settings → API Access.';
}
- return 'No agent available for command execution. Enable Pulse commands from Settings → Infrastructure and make sure the API token has "agent:exec" scope in Settings → API Access.';
+ return `No agent available for command execution. Enable Pulse commands from ${infrastructureSettings} and make sure the API token has "agent:exec" scope in Settings → API Access.`;
}
export function getNetworkDiscoveryPriorityNotice() {
diff --git a/frontend-modern/src/utils/infrastructureEmptyStatePresentation.ts b/frontend-modern/src/utils/infrastructureEmptyStatePresentation.ts
index 259b57d614..dcfd42949d 100644
--- a/frontend-modern/src/utils/infrastructureEmptyStatePresentation.ts
+++ b/frontend-modern/src/utils/infrastructureEmptyStatePresentation.ts
@@ -1,8 +1,9 @@
+import { getInfrastructureSourceStrategyDescription } from '@/utils/infrastructureSettingsPresentation';
+
export function getInfrastructureEmptyState() {
return {
title: 'No infrastructure sources yet',
- description:
- 'Start in Settings → Infrastructure by choosing a source strategy. Connect a platform API for inventory and health, install Pulse Agent for host telemetry, or use both when you want full coverage.',
+ description: getInfrastructureSourceStrategyDescription(),
actionLabel: 'Add infrastructure source',
} as const;
}
diff --git a/frontend-modern/src/utils/infrastructureSettingsPresentation.ts b/frontend-modern/src/utils/infrastructureSettingsPresentation.ts
index 4ef824dc0c..49be15fa79 100644
--- a/frontend-modern/src/utils/infrastructureSettingsPresentation.ts
+++ b/frontend-modern/src/utils/infrastructureSettingsPresentation.ts
@@ -1,3 +1,21 @@
+export const INFRASTRUCTURE_SETTINGS_PATH = '/settings/infrastructure';
+export const INFRASTRUCTURE_SETTINGS_LABEL = 'Settings → Infrastructure';
+
+export function getInfrastructureSettingsTarget() {
+ return {
+ href: INFRASTRUCTURE_SETTINGS_PATH,
+ label: INFRASTRUCTURE_SETTINGS_LABEL,
+ } as const;
+}
+
+export function getInfrastructureSettingsLocationLabel(): string {
+ return INFRASTRUCTURE_SETTINGS_LABEL;
+}
+
+export function getInfrastructureSourceStrategyDescription(): string {
+ return `Start in ${INFRASTRUCTURE_SETTINGS_LABEL} by choosing a source strategy. Connect a platform API for inventory and health, install Pulse Agent for host telemetry, or use both when you want full coverage.`;
+}
+
export function getDiscoverySubnetRequiredMessage(): string {
return 'Enter at least one subnet in CIDR format (e.g., 192.168.1.0/24)';
}
diff --git a/frontend-modern/src/utils/pmgPresentation.ts b/frontend-modern/src/utils/pmgPresentation.ts
index 21ac28ac33..a58b899c25 100644
--- a/frontend-modern/src/utils/pmgPresentation.ts
+++ b/frontend-modern/src/utils/pmgPresentation.ts
@@ -1,7 +1,9 @@
+import { getInfrastructureSettingsLocationLabel } from '@/utils/infrastructureSettingsPresentation';
+
export const PMG_EMPTY_STATE_TITLE = 'No Mail Gateways configured';
export const PMG_EMPTY_STATE_DESCRIPTION =
- 'Add a Proxmox Mail Gateway via Settings → Infrastructure → Proxmox to start collecting mail analytics and security metrics.';
+ `Add a Proxmox Mail Gateway via ${getInfrastructureSettingsLocationLabel()} to start collecting mail analytics and security metrics.`;
export const PMG_LOADING_STATE_TITLE = 'Loading mail gateway data...';