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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Hide paid reporting nav for free self-hosted
rcourtmanb0a51831c115
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex c40bbb7a42..d51c698fc5 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -237,6 +237,12 @@ work extends shared components instead of creating new local variants.legacy `/operations/*` links must resolve through the canonical Settingsrouting boundary instead of reviving a standalone Operations utility tab orroute-local support shell.+ Because `Data & Reports` is the `advanced_reporting` capability surface+ rather than a general diagnostics page, `settingsNavCatalog.ts` must hide it+ when that feature is unavailable; ordinary self-hosted users should see+ support diagnostics and logs without being shown a Pro-locked reporting tab,+ while paid instances keep the canonical `/settings/support/reporting` route+ and panel.Data Handling is a trust surface, not a commercial surface. The Settingsshell must keep it under the Security group, route it through the canonicalregistry/header/navigation model, and avoid trial, upgrade, paid-plan, ordiff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex 026d6ac56a..1931a96811 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -121,6 +121,7 @@ describe('settings architecture guardrails', () => {expect(settingsNavCatalogSource).toContain("features: ['rbac']");expect(settingsNavCatalogSource).toContain("features: ['audit_logging']");expect(settingsNavCatalogSource).toContain("features: ['relay']");+ expect(settingsNavCatalogSource).toContain("features: ['advanced_reporting']");expect(settingsNavCatalogSource).toContain('hideWhenUnavailable: true');expect(settingsHeaderMetaSource).toContain('title: SELF_HOSTED_PRO_BILLING_PRESENTATION.shellTitle',diff --git a/frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsx b/frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsxindex a971075b4b..edcb73c66a 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsx@@ -145,6 +145,7 @@ describe('settingsNavigation integration scaffold', () => {'security-users','security-audit','security-webhooks',+ 'support-reporting',] as SettingsTab[]) {expect(shouldHideSettingsNavItem(tab, {@@ -164,6 +165,28 @@ describe('settingsNavigation integration scaffold', () => {}});+ it('shows paid reporting navigation only after advanced reporting is available', () => {+ expect(+ shouldHideSettingsNavItem('support-reporting', {+ hasFeature: hasFeatures([]),+ runtimeCapabilitiesLoaded: () => true,+ presentationPolicyResolved: true,+ presentationPolicyIsDemoMode: false,+ hostedModeEnabled: false,+ }),+ ).toBe(true);++ expect(+ shouldHideSettingsNavItem('support-reporting', {+ hasFeature: hasFeatures(['advanced_reporting']),+ runtimeCapabilitiesLoaded: () => true,+ presentationPolicyResolved: true,+ presentationPolicyIsDemoMode: false,+ hostedModeEnabled: false,+ }),+ ).toBe(false);+ });+it('hides support tabs in demo mode and before demo policy resolves', () => {expect(shouldHideSettingsNavItem('support-diagnostics', {diff --git a/frontend-modern/src/components/Settings/settingsNavCatalog.ts b/frontend-modern/src/components/Settings/settingsNavCatalog.tsindex b5a3a3e8a8..8ebaa06e8a 100644--- a/frontend-modern/src/components/Settings/settingsNavCatalog.ts+++ b/frontend-modern/src/components/Settings/settingsNavCatalog.ts@@ -153,6 +153,8 @@ export const SETTINGS_NAV_GROUPS: SettingsNavGroup[] = [label: 'Data & Reports',icon: FileText,iconProps: { strokeWidth: 2 },+ features: ['advanced_reporting'],+ hideWhenUnavailable: true,hideWhenDemoMode: true,},{