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
Restore intentional infrastructure source visibility
rcourtmanbf2003ca1114
diff --git a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsxindex dd5b2026ab..9dac29ca84 100644--- a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx+++ b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx@@ -173,6 +173,11 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerPconst sortedProducts = createMemo(() =>[...products()]+ .filter((product) => {+ const configuredCount = groupedConfiguredRows().get(product.type)?.length ?? 0;+ const discoveredCount = groupedDiscoveredRows().get(product.type)?.length ?? 0;+ return configuredCount + discoveredCount > 0;+ }).sort((left, right) => {const configuredDifference =(groupedConfiguredRows().get(right.type)?.length ?? 0) -@@ -284,7 +289,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerPconst configuredRows = () => groupedConfiguredRows().get(product.type) ?? [];const discoveredRows = () => groupedDiscoveredRows().get(product.type) ?? [];const groupRowClass = () =>- 'border-b border-border-subtle bg-surface-alt hover:bg-surface-alt dark:bg-base dark:hover:bg-base';+ 'border-b border-border-subtle bg-base hover:bg-base';const groupLabelClass = () => 'text-[15px] font-semibold text-base-content';return (diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsxindex 12dc8f1a61..ece09debb6 100644--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx@@ -236,7 +236,7 @@ describe('InfrastructureWorkspace', () => {const renderWorkspace = (propOverrides: Record<string, unknown> = {}) =>render(() => (<InfrastructureWorkspace {...{ ...baseProps(), ...propOverrides }} />) as any);- it('renders the source manager landing with direct product sections', async () => {+ it('renders the source manager landing without empty platform sections', async () => {renderWorkspace();await waitFor(() => expect(screen.getByText('Infrastructure systems')).toBeInTheDocument());@@ -244,12 +244,13 @@ describe('InfrastructureWorkspace', () => {expect(screen.getByRole('button', { name: /Discovery settings/i })).toBeInTheDocument();expect(screen.queryByRole('button', { name: /Detect from address/i })).toBeNull();expect(screen.getByText('Proxmox VE')).toBeInTheDocument();- expect(screen.getByText('VMware vCenter')).toBeInTheDocument();- expect(screen.getByText('TrueNAS SCALE')).toBeInTheDocument();- expect(screen.getByText('Standalone hosts')).toBeInTheDocument();+ expect(screen.getByText('Proxmox VE').closest('tr')?.className).toContain('bg-base');+ expect(screen.queryByText('VMware vCenter')).toBeNull();+ expect(screen.queryByText('TrueNAS SCALE')).toBeNull();+ expect(screen.queryByText('Standalone hosts')).toBeNull();expect(screen.getByRole('button', { name: /Add Proxmox VE/i })).toBeInTheDocument();- expect(screen.getByRole('button', { name: /Add TrueNAS SCALE/i })).toBeInTheDocument();- expect(screen.getByRole('button', { name: /Add host/i })).toBeInTheDocument();+ expect(screen.queryByRole('button', { name: /Add TrueNAS SCALE/i })).toBeNull();+ expect(screen.queryByRole('button', { name: /Add host/i })).toBeNull();expect(screen.getByRole('button', { name: /^Add infrastructure$/i })).toBeInTheDocument();expect(screen.getByRole('button', { name: /Edit/i })).toBeInTheDocument();expect(screen.queryByRole('heading', { name: 'Monitored systems' })).not.toBeInTheDocument();@@ -688,7 +689,7 @@ describe('InfrastructureWorkspace', () => {expect(screen.getByText('delly')).toBeInTheDocument();expect(screen.getByText('minipc')).toBeInTheDocument();expect(screen.getAllByText('Host telemetry').length).toBeGreaterThan(0);- expect(screen.getByText('Standalone hosts')).toBeInTheDocument();+ expect(screen.queryByText('Standalone hosts')).toBeNull();expect(screen.getAllByText('delly')).toHaveLength(1);expect(screen.getAllByText('minipc')).toHaveLength(1);});diff --git a/tests/integration/tests/68-infrastructure-onboarding.spec.ts b/tests/integration/tests/68-infrastructure-onboarding.spec.tsindex 8b9ca7175a..00d6d026a2 100644--- a/tests/integration/tests/68-infrastructure-onboarding.spec.ts+++ b/tests/integration/tests/68-infrastructure-onboarding.spec.ts@@ -184,7 +184,7 @@ async function auditHorizontalOverflow(page: Page): Promise<OverflowAudit> {test.describe("Infrastructure onboarding", () => {test.setTimeout(180_000);- test("desktop landing shows platform sections before any onboarding flow opens", async ({+ test("desktop landing hides empty platform sections before any onboarding flow opens", async ({page,}, testInfo) => {test.skip(@@ -194,6 +194,35 @@ test.describe("Infrastructure onboarding", () => {const metricEvents = await recordUpgradeMetricEvents(page);await prepareOnboardingPage(page);+ await page.route("**/api/discover", async (route) => {+ const requestUrl = new URL(route.request().url());+ if (+ route.request().method() !== "GET" ||+ requestUrl.pathname !== "/api/discover"+ ) {+ await route.continue();+ return;+ }++ await route.fulfill({+ status: 200,+ contentType: "application/json",+ body: JSON.stringify({+ servers: [+ {+ ip: "192.168.0.2",+ port: 8006,+ type: "pve",+ version: "8.2.2",+ },+ ],+ errors: [],+ cached: true,+ updated: 0,+ age: 120,+ }),+ });+ });await page.goto("/settings/infrastructure", {waitUntil: "domcontentloaded",@@ -216,17 +245,17 @@ test.describe("Infrastructure onboarding", () => {).toBeVisible();await expect(page.getByText("VMware vCenter", { exact: true }),- ).toBeVisible();+ ).toHaveCount(0);await expect(page.getByText("TrueNAS SCALE", { exact: true }),- ).toBeVisible();+ ).toHaveCount(0);await expect(page.getByText("Proxmox VE", { exact: true })).toBeVisible();await expect(page.getByText("Standalone hosts", { exact: true }),- ).toBeVisible();+ ).toHaveCount(0);await expect(page.getByRole("button", { name: /Add TrueNAS SCALE/i }),- ).toBeVisible();+ ).toHaveCount(0);await expect(page.getByRole("button", { name: /Detect from address/i }),).toHaveCount(0);@@ -277,7 +306,7 @@ test.describe("Infrastructure onboarding", () => {await expect(page).toHaveURL(/\/settings\/infrastructure(?:\?.*)?$/);});- test("desktop per-platform add opens the matching modal and records direct type onboarding", async ({+ test("desktop picker add opens the matching modal and records type onboarding", async ({page,}, testInfo) => {test.skip(@@ -295,7 +324,14 @@ test.describe("Infrastructure onboarding", () => {timeout: 15_000,});- await page.getByRole("button", { name: /Add TrueNAS SCALE/i }).click();+ await page.getByRole("button", { name: /Add infrastructure/i }).click();+ await page.waitForURL(/\/settings\/infrastructure\?add=pick$/, {+ timeout: 15_000,+ });+ await page+ .getByRole("dialog")+ .getByRole("button", { name: /TrueNAS SCALE/i })+ .click();await page.waitForURL(/\/settings\/infrastructure\?add=truenas$/, {timeout: 15_000,});