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
Tighten monitored system disclosure copy
rcourtman0f89cd4903d2
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex 6130e3e6bb..4f03ae3b86 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -246,6 +246,11 @@ limit-warning banner, so the settings panel, Pro usage section, counting-rulesdisclosure, and shared warning-banner model must consume that helper insteadof redefining customer-facing monitored-system copy inline or keeping aparallel copy in generic self-hosted plan utilities.+That same disclosure surface must not accept arbitrary caller-supplied+monitored-system summary strings as its primary API. When the disclosure needs+to show brief summary copy, it should render the canonical helper-owned brief+summary rather than giving callers a free-form summary prop that can drift from+the governed monitored-system language.That same helper now also owns the row-status fallback summaries used whenmixed-version payloads omit `status_explanation.summary`. The API client andsettings panel must derive online/warning/offline/unknown fallback text fromdiff --git a/frontend-modern/src/components/Commercial/MonitoredSystemDefinitionDisclosure.tsx b/frontend-modern/src/components/Commercial/MonitoredSystemDefinitionDisclosure.tsxindex ee0dd7245b..942d17b2fb 100644--- a/frontend-modern/src/components/Commercial/MonitoredSystemDefinitionDisclosure.tsx+++ b/frontend-modern/src/components/Commercial/MonitoredSystemDefinitionDisclosure.tsx@@ -1,11 +1,12 @@import { Show, createSignal, type Component } from 'solid-js';import {+ getMonitoredSystemBriefSummary,getMonitoredSystemDisclosureDefinition,getMonitoredSystemDisclosureToggleLabel,} from '@/utils/monitoredSystemPresentation';interface MonitoredSystemDefinitionDisclosureProps {- summary?: string;+ showSummary?: boolean;class?: string;summaryClass?: string;buttonClass?: string;@@ -19,8 +20,10 @@ export const MonitoredSystemDefinitionDisclosure: Component<return (<div class={props.class ?? 'space-y-2'}>- <Show when={props.summary}>- <p class={props.summaryClass ?? 'text-xs text-muted'}>{props.summary}</p>+ <Show when={props.showSummary}>+ <p class={props.summaryClass ?? 'text-xs text-muted'}>+ {getMonitoredSystemBriefSummary()}+ </p></Show><div class="space-y-2">diff --git a/frontend-modern/src/components/Commercial/__tests__/MonitoredSystemDefinitionDisclosure.test.tsx b/frontend-modern/src/components/Commercial/__tests__/MonitoredSystemDefinitionDisclosure.test.tsxindex 381948826d..f3f655ef8c 100644--- a/frontend-modern/src/components/Commercial/__tests__/MonitoredSystemDefinitionDisclosure.test.tsx+++ b/frontend-modern/src/components/Commercial/__tests__/MonitoredSystemDefinitionDisclosure.test.tsx@@ -5,11 +5,11 @@ import { MonitoredSystemDefinitionDisclosure } from '../MonitoredSystemDefinitiodescribe('MonitoredSystemDefinitionDisclosure', () => {it('shows concise copy first and reveals the full definition on demand', async () => {- render(() => (- <MonitoredSystemDefinitionDisclosure summary="Billing is based on monitored systems." />- ));+ render(() => <MonitoredSystemDefinitionDisclosure showSummary />);- expect(screen.getByText('Billing is based on monitored systems.')).toBeInTheDocument();+ expect(+ screen.getByText('Billing is based on monitored systems. Child resources are included.'),+ ).toBeInTheDocument();expect(screen.getByRole('button', { name: 'View counting rules' })).toHaveAttribute('aria-expanded','false',@@ -28,4 +28,12 @@ describe('MonitoredSystemDefinitionDisclosure', () => {screen.getByText(/a monitored system is a top-level machine or cluster/i),).toBeInTheDocument();});++ it('does not expose brief summary copy unless requested', () => {+ render(() => <MonitoredSystemDefinitionDisclosure />);++ expect(+ screen.queryByText('Billing is based on monitored systems. Child resources are included.'),+ ).not.toBeInTheDocument();+ });});diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex 5e22b87a95..5e5eac01a8 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -517,9 +517,14 @@ describe('Settings architecture guardrails', () => {expect(monitoredSystemDefinitionDisclosureSource).toContain('@/utils/monitoredSystemPresentation',);+ expect(monitoredSystemDefinitionDisclosureSource).toContain(+ 'getMonitoredSystemBriefSummary',+ );expect(monitoredSystemDefinitionDisclosureSource).toContain('getMonitoredSystemDisclosureToggleLabel',);+ expect(monitoredSystemDefinitionDisclosureSource).not.toContain('summary?: string');+ expect(monitoredSystemDefinitionDisclosureSource).not.toContain('{props.summary}');expect(proLicensePanelStateSource).toContain('buildSelfHostedCommercialPlanModel');expect(proLicensePanelStateSource).toContain('loadLicenseStatus(true)');expect(proLicensePlanSectionSource).toContain('CommercialStatGrid');