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
Reword cluster deploy banner from "unmonitored" to "ready for Pulse Agent"
rcourtman52416cec6fdb
diff --git a/frontend-modern/src/components/Infrastructure/ClusterDeployBanner.tsx b/frontend-modern/src/components/Infrastructure/ClusterDeployBanner.tsxindex cf6b4121dc..74a08f2701 100644--- a/frontend-modern/src/components/Infrastructure/ClusterDeployBanner.tsx+++ b/frontend-modern/src/components/Infrastructure/ClusterDeployBanner.tsx@@ -9,8 +9,8 @@ interface ClusterDeployBannerProps {}/**- * Compact inline banner shown in cluster group headers when unmonitored- * PVE nodes exist and a source agent is available to deploy from.+ * Compact inline banner shown in cluster group headers when reachable PVE+ * nodes lack a Pulse Agent and a source agent is available to deploy from.*/export const ClusterDeployBanner: Component<ClusterDeployBannerProps> = (props) => {// Visibility conditions:@@ -37,12 +37,12 @@ export const ClusterDeployBanner: Component<ClusterDeployBannerProps> = (props)const hasSourceAgent = pveNodes.some((r) => r.agent?.agentId);if (!hasSourceAgent) return null;- const unmonitoredCount = pveNodes.filter(+ const deployableCount = pveNodes.filter((r) => !r.agent?.agentId && r.status !== 'offline',).length;- if (unmonitoredCount === 0) return null;+ if (deployableCount === 0) return null;- return { cluster, unmonitoredCount };+ return { cluster, deployableCount };});return (@@ -52,7 +52,7 @@ export const ClusterDeployBanner: Component<ClusterDeployBannerProps> = (props)<div class="flex items-center gap-1.5 text-[11px] text-blue-600 dark:text-blue-400"><InfoIcon class="w-3 h-3" /><span>- {info().unmonitoredCount} node{info().unmonitoredCount !== 1 ? 's' : ''} unmonitored+ {info().deployableCount} node{info().deployableCount !== 1 ? 's' : ''} ready for Pulse Agent</span></div><buttondiff --git a/frontend-modern/src/components/Infrastructure/__tests__/ClusterDeployBanner.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ClusterDeployBanner.test.tsxindex 2128e1593c..9530f564a6 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ClusterDeployBanner.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ClusterDeployBanner.test.tsx@@ -117,7 +117,7 @@ describe('ClusterDeployBanner', () => {makePveNode('node2'), // unmonitored]);render(() => <ClusterDeployBanner group={group} onDeploy={vi.fn()} />);- expect(screen.getByText('1 node unmonitored')).toBeInTheDocument();+ expect(screen.getByText('1 node ready for Pulse Agent')).toBeInTheDocument();expect(screen.getByText('Review & Deploy')).toBeInTheDocument();});@@ -127,7 +127,7 @@ describe('ClusterDeployBanner', () => {makePveNode('offline-node', undefined, 'offline'), // offline, no agent]);render(() => <ClusterDeployBanner group={group} onDeploy={vi.fn()} />);- expect(screen.queryByText(/unmonitored/)).not.toBeInTheDocument();+ expect(screen.queryByText(/ready for Pulse Agent/)).not.toBeInTheDocument();expect(screen.queryByText('Review & Deploy')).not.toBeInTheDocument();});@@ -138,18 +138,18 @@ describe('ClusterDeployBanner', () => {makePveNode('offline-no-agent', undefined, 'offline'),]);render(() => <ClusterDeployBanner group={group} onDeploy={vi.fn()} />);- expect(screen.getByText('1 node unmonitored')).toBeInTheDocument();+ expect(screen.getByText('1 node ready for Pulse Agent')).toBeInTheDocument();});});- describe('unmonitored count display', () => {- it('shows singular "node" for 1 unmonitored', () => {+ describe('deployable count display', () => {+ it('shows singular "node" for 1 deployable', () => {const group = makeGroup('cluster-a', [makePveNode('node1', 'agent-1'), makePveNode('node2')]);render(() => <ClusterDeployBanner group={group} onDeploy={vi.fn()} />);- expect(screen.getByText('1 node unmonitored')).toBeInTheDocument();+ expect(screen.getByText('1 node ready for Pulse Agent')).toBeInTheDocument();});- it('shows plural "nodes" for multiple unmonitored', () => {+ it('shows plural "nodes" for multiple deployable', () => {const group = makeGroup('cluster-a', [makePveNode('node1', 'agent-1'),makePveNode('node2'),@@ -157,7 +157,7 @@ describe('ClusterDeployBanner', () => {makePveNode('node4'),]);render(() => <ClusterDeployBanner group={group} onDeploy={vi.fn()} />);- expect(screen.getByText('3 nodes unmonitored')).toBeInTheDocument();+ expect(screen.getByText('3 nodes ready for Pulse Agent')).toBeInTheDocument();});});@@ -198,7 +198,7 @@ describe('ClusterDeployBanner', () => {makePveNode('node2'),]);render(() => <ClusterDeployBanner group={group} onDeploy={vi.fn()} />);- expect(screen.getByText('1 node unmonitored')).toBeInTheDocument();+ expect(screen.getByText('1 node ready for Pulse Agent')).toBeInTheDocument();});it('ignores non-PVE platform nodes', () => {@@ -208,7 +208,7 @@ describe('ClusterDeployBanner', () => {makePveNode('pve-node2'),]);render(() => <ClusterDeployBanner group={group} onDeploy={vi.fn()} />);- expect(screen.getByText('1 node unmonitored')).toBeInTheDocument();+ expect(screen.getByText('1 node ready for Pulse Agent')).toBeInTheDocument();});it('does not treat non-PVE agent as a PVE source agent', () => {