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.

Keep cluster install action label accessible

pulse-triage[bot]8eccd24bff48
diff --git a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
index ef2f0e8c64..5a2fa44645 100644
--- a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
@@ -272,7 +272,7 @@ const missingAgentCoverageLabel = (row: InfrastructureSystemRow): string => {
const installAgentActionLabel = (row: InfrastructureSystemRow): string => {
const count = missingAgentMembers(row).length;
return row.isCluster
- ? `Install agents on ${formatCount(count, 'uncovered node')} in ${row.name}`
+ ? `Install node agents on ${formatCount(count, 'uncovered node')} in ${row.name}`
: `Install agent on ${row.name}`;
};
diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureSourceManager.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureSourceManager.test.tsx
index 6c5d5fbdc2..e5a7203d86 100644
--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureSourceManager.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureSourceManager.test.tsx
@@ -556,11 +556,10 @@ describe('InfrastructureSourceManager setup summary', () => {
expect(screen.getByText('1 host has limited coverage')).toBeInTheDocument();
expect(screen.getByText('1 node needs host telemetry')).toBeInTheDocument();
- expect(
- screen.getByRole('button', {
- name: 'Install agents on 1 uncovered node in Remote cluster',
- }),
- ).toBeInTheDocument();
+ const clusterInstallAction = screen.getByRole('button', {
+ name: 'Install node agents on 1 uncovered node in Remote cluster',
+ });
+ expect(clusterInstallAction).toHaveTextContent('Install node agents');
fireEvent.click(screen.getByRole('button', { name: 'Show 2 nodes for Remote cluster' }));
expect(screen.queryByRole('button', { name: 'Install agent on pve-a' })).toBeNull();