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.

Align Pulse Pro settings nav label

rcourtman8e2c73c4a174
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index 18d67bbd8a..d79919a95b 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -485,9 +485,10 @@ That same boundary also owns the shell and section framing copy for the
self-hosted Pro billing surface. `ProLicensePanel.tsx` must consume shared
presentation for its shell title/description, refresh CTA label, and section
headings rather than carrying those commercial labels inline.
-The same title and description should also feed the `system-billing` route
-header metadata so the settings shell and the route header do not narrate the
-same commercial surface differently.
+The same title should also feed the `system-billing` settings navigation item,
+and the same title and description should also feed the `system-billing` route
+header metadata so the nav, shell, and route header do not narrate the same
+commercial surface differently.
Paid Pulse Pro v5 grandfathering is now part of that same canonical boundary:
when a recurring v5 customer migrates into v6, billing persistence,
entitlement evaluation, renewal handling, and Pro-license presentation must
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 8d702d8fc6..8eb5fcab64 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -156,8 +156,8 @@ work extends shared components instead of creating new local variants.
4. Remove local forks after the shared primitive is introduced
5. When a settings route header and a top-level settings shell describe the same
commercial surface, keep them on the same shared presentation owner instead
- of allowing route metadata in `settingsHeaderMeta.ts` to drift into
- independent title or description copy.
+ of allowing route metadata in `settingsHeaderMeta.ts` or labels in
+ `settingsNavCatalog.ts` to drift into independent title or description copy.
## Current State
@@ -1244,13 +1244,14 @@ is the shell, `useSSOProvidersState.ts` owns the reactive/API lifecycle, and
`frontend-modern/src/components/Settings/UpdatesSettingsPanel.tsx` must keep
page-shell titles, descriptions, and lead panel framing aligned instead of
letting navigation/header labels drift away from the actual settings surface.
-The self-hosted Pulse Pro route header metadata for
-`frontend-modern/src/components/Settings/settingsHeaderMeta.ts` is part of that
-same shell boundary as
+The self-hosted Pulse Pro settings navigation item and route header metadata
+for `frontend-modern/src/components/Settings/settingsNavCatalog.ts` and
+`frontend-modern/src/components/Settings/settingsHeaderMeta.ts` are part of
+that same shell boundary as
`frontend-modern/src/components/Settings/ProLicensePanel.tsx` and the shared
commercial presentation owner in
`frontend-modern/src/utils/licensePresentation.ts`; the `system-billing`
-header title and description must reuse
+navigation label plus header title and description must reuse
`SELF_HOSTED_PRO_BILLING_PRESENTATION.shellTitle` and
`SELF_HOSTED_PRO_BILLING_PRESENTATION.shellDescription` so the route header and
the billing shell do not narrate the same commercial surface differently.
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index fa5ffdd2fb..864f36cf39 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -43,6 +43,7 @@ import settingsPanelRegistryLoadersSource from '../settingsPanelRegistryLoaders.
import settingsTabSaveBehaviorSource from '../settingsTabSaveBehavior.ts?raw';
import settingsPanelRegistryHookSource from '../useSettingsPanelRegistry.tsx?raw';
import settingsSystemPanelsSource from '../useSettingsSystemPanels.tsx?raw';
+import { getSettingsNavItem } from '../settingsNavCatalog';
import apiAccessPanelSource from '../APIAccessPanel.tsx?raw';
import apiTokenManagerSource from '../APITokenManager.tsx?raw';
import apiTokenManagerModelSource from '../apiTokenManagerModel.ts?raw';
@@ -493,6 +494,9 @@ describe('Settings architecture guardrails', () => {
expect(settingsShellStateSource).toContain('showPasswordModal');
expect(settingsNavCatalogSource).toContain('export const SETTINGS_NAV_GROUPS');
expect(settingsNavCatalogSource).toContain('export function getSettingsNavItem');
+ expect(settingsNavCatalogSource).toContain('@/utils/licensePresentation');
+ expect(settingsNavCatalogSource).toContain('SELF_HOSTED_PRO_BILLING_PRESENTATION.shellTitle');
+ expect(settingsNavCatalogSource).not.toContain("label: 'Pulse Pro'");
expect(settingsNavVisibilitySource).toContain('export function shouldHideSettingsNavItem');
expect(settingsNavVisibilitySource).toContain('export function isSettingsNavItemLocked');
expect(settingsTabSaveBehaviorSource).toContain('getSettingsNavItem(tab)?.saveBehavior');
@@ -1278,6 +1282,9 @@ describe('Settings architecture guardrails', () => {
expect(SETTINGS_HEADER_META['system-billing'].description).toBe(
SELF_HOSTED_PRO_BILLING_PRESENTATION.shellDescription,
);
+ expect(getSettingsNavItem('system-billing')?.label).toBe(
+ SELF_HOSTED_PRO_BILLING_PRESENTATION.shellTitle,
+ );
expect(SETTINGS_HEADER_META['organization-billing'].description).toContain(
'subscription status',
);
diff --git a/frontend-modern/src/components/Settings/settingsNavCatalog.ts b/frontend-modern/src/components/Settings/settingsNavCatalog.ts
index 03e7b290f4..7565d68a48 100644
--- a/frontend-modern/src/components/Settings/settingsNavCatalog.ts
+++ b/frontend-modern/src/components/Settings/settingsNavCatalog.ts
@@ -17,6 +17,7 @@ import Building2 from 'lucide-solid/icons/building-2';
import Share2 from 'lucide-solid/icons/share-2';
import CreditCard from 'lucide-solid/icons/credit-card';
import { PulseLogoIcon } from '@/components/icons/PulseLogoIcon';
+import { SELF_HOSTED_PRO_BILLING_PRESENTATION } from '@/utils/licensePresentation';
import type {
SettingsNavGroup,
SettingsNavItem,
@@ -124,7 +125,7 @@ export const SETTINGS_NAV_GROUPS: SettingsNavGroup[] = [
},
{
id: 'system-billing',
- label: 'Pulse Pro',
+ label: SELF_HOSTED_PRO_BILLING_PRESENTATION.shellTitle,
icon: PulseLogoIcon,
},
],