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.

Drop the duplicate Infrastructure card header

rcourtman87430a1b0e17
diff --git a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
index 5f15794b3c..f2bf714cb7 100644
--- a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
@@ -650,8 +650,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
return (
<div ref={layoutContainerRef} class="min-w-0">
<SettingsPanel
- title="Infrastructure systems"
- description="Add, discover, and verify the platform APIs plus Pulse Agent telemetry that make up Pulse's infrastructure model."
+ title="Connected systems"
noPadding
>
{headerActions()}
diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
index b450688f88..37abb037fb 100644
--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
@@ -281,10 +281,11 @@ describe('InfrastructureWorkspace', () => {
it('renders the source manager landing without empty platform sections', async () => {
renderWorkspace();
- await waitFor(() => expect(screen.getByText('Infrastructure systems')).toBeInTheDocument());
- expect(
- screen.getByText(/Add, discover, and verify the platform APIs plus Pulse Agent telemetry/i),
- ).toBeInTheDocument();
+ // Card title shifted from 'Infrastructure systems' (which duplicated
+ // the page header) to 'Connected systems' which describes the card's
+ // contents distinctly. Card-level description was dropped because it
+ // duplicated the page-level subtitle.
+ await waitFor(() => expect(screen.getByText('Connected systems')).toBeInTheDocument());
expect(screen.getByRole('button', { name: /Run discovery/i })).toBeInTheDocument();
expect(screen.getByRole('button', { name: /Discovery settings/i })).toBeInTheDocument();
expect(screen.getByRole('button', { name: /^Add infrastructure$/i })).toBeInTheDocument();
@@ -330,7 +331,7 @@ describe('InfrastructureWorkspace', () => {
it('routes first-run actions from the source manager guidance', async () => {
renderWorkspace();
- await waitFor(() => expect(screen.getByText('Infrastructure systems')).toBeInTheDocument());
+ await waitFor(() => expect(screen.getByText('Connected systems')).toBeInTheDocument());
// Row-level 'Install agent' replaced the global 'Install agents'
// recommendation button; same routing target.
@@ -989,7 +990,7 @@ describe('InfrastructureWorkspace', () => {
expect(screen.queryByRole('button', { name: /^Manage$/i })).toBeNull();
expect(screen.queryByRole('dialog')).toBeNull();
expect(screen.queryByTestId('install-section')).toBeNull();
- expect(screen.getByText('Infrastructure systems')).toBeInTheDocument();
+ expect(screen.getByText('Connected systems')).toBeInTheDocument();
expect(screen.queryByRole('heading', { name: 'Monitored systems' })).not.toBeInTheDocument();
});
});
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index f640e57357..e1625905f7 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -465,7 +465,10 @@ describe('settings architecture guardrails', () => {
expect(infrastructureWorkspaceSource).toContain('renderAgentConnectionDetails');
expect(infrastructureWorkspaceSource).not.toContain('InfrastructureOperationsController');
expect(infrastructureWorkspaceSource).not.toContain('PlatformConnectionsWorkspace');
- expect(infrastructureSourceManagerSource).toContain('Infrastructure systems');
+ // Card title shifted from 'Infrastructure systems' (which duplicated
+ // the page header) to 'Connected systems' which describes the card
+ // content distinctly.
+ expect(infrastructureSourceManagerSource).toContain('Connected systems');
// Discovery actions are now icon-only ghost buttons; the human copy
// still lives in their title and aria-label attributes.
expect(infrastructureSourceManagerSource).toContain('Run discovery');
@@ -480,9 +483,8 @@ describe('settings architecture guardrails', () => {
'reuses your current monitored-system allowance',
);
expect(monitoredSystemImpactPreviewSource).not.toContain('frees monitored-system allowance');
- expect(infrastructureSourceManagerSource).toContain(
- "Add, discover, and verify the platform APIs plus Pulse Agent telemetry that make up Pulse's infrastructure model.",
- );
+ // Card-level description was dropped; the page-level subtitle from
+ // SETTINGS_HEADER_META carries the same intent without duplication.
expect(infrastructureSourceManagerSource).toContain('onReviewDiscoveredSource');
expect(infrastructureSourceManagerSource).toContain('Discovered');
expect(infrastructureSourceManagerSource).toContain('getInfrastructureSourceManagerProducts');