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
Surface facet counts on service rows
rcourtman6274a86abcd7
diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 1db8237f62..73adaadfb2 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -83,6 +83,9 @@ It now also includes the compact resource-facet summary chips rendered nextto policy metadata, and those chips must stay within the same boundedwindowing and mounted-row budget proved by`UnifiedResourceTable.performance.contract.test.tsx`.+The same facet summary contract applies to the service-resource rows inside+the unified table as well, so PBS and PMG entries must keep the same bounded+presentation and verification surface as the primary fleet rows.Governance metadata such as sensitivity and routing scope may be visible inthe table, but it must remain on the same bounded row-windowing and mounted-rowbudget proved by `UnifiedResourceTable.performance.contract.test.tsx` ratherdiff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 0c9d52ed3e..3a5e382248 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -176,6 +176,9 @@ performance proof route. The shared resource table now also surfaces compactfacet summary chips for capabilities, relationships, and timeline events, sofacet presentation changes must continue to flow through the same governedresource-row surface rather than inventing a separate ad hoc summary path.+Those chips now appear on both the primary fleet rows and the PBS/PMG service+rows, so the unified consumer surface must remain consistent across the full+table instead of diverging by resource class.The Connected infrastructure settings surface now also depends on a backendowned `connectedInfrastructure` projection derived from unified resources plusreporting-ignore state. That projection is now also the only v6 clientdiff --git a/frontend-modern/src/components/Infrastructure/UnifiedResourceTable.tsx b/frontend-modern/src/components/Infrastructure/UnifiedResourceTable.tsxindex d6cf548d3f..f2830741ed 100644--- a/frontend-modern/src/components/Infrastructure/UnifiedResourceTable.tsx+++ b/frontend-modern/src/components/Infrastructure/UnifiedResourceTable.tsx@@ -1105,6 +1105,7 @@ export const UnifiedResourceTable: Component<UnifiedResourceTableProps> = (propsgetUnifiedSourceBadges(getUnifiedSources(resource)),);const hasUnifiedSources = createMemo(() => unifiedSourceBadges().length > 0);+ const facetBadges = createMemo(() => getResourceFacetBadges(resource));const healthClass = createMemo(() =>getServiceHealthSummaryPresentation(resource.status, pbsRow()?.health).textClass,@@ -1185,6 +1186,17 @@ export const UnifiedResourceTable: Component<UnifiedResourceTableProps> = (props({resource.name})</span></Show>+ <Show when={facetBadges().length > 0}>+ <div class="mt-0.5 flex flex-wrap gap-1">+ <For each={facetBadges()}>+ {(badge) => (+ <span class={badge.classes} title={badge.title}>+ {badge.label}+ </span>+ )}+ </For>+ </div>+ </Show></div></TableCell>@@ -1401,6 +1413,7 @@ export const UnifiedResourceTable: Component<UnifiedResourceTableProps> = (propsgetUnifiedSourceBadges(getUnifiedSources(resource)),);const hasUnifiedSources = createMemo(() => unifiedSourceBadges().length > 0);+ const facetBadges = createMemo(() => getResourceFacetBadges(resource));const healthClass = createMemo(() =>getServiceHealthSummaryPresentation(resource.status, pmgRow()?.health).textClass,@@ -1486,6 +1499,17 @@ export const UnifiedResourceTable: Component<UnifiedResourceTableProps> = (props({resource.name})</span></Show>+ <Show when={facetBadges().length > 0}>+ <div class="mt-0.5 flex flex-wrap gap-1">+ <For each={facetBadges()}>+ {(badge) => (+ <span class={badge.classes} title={badge.title}>+ {badge.label}+ </span>+ )}+ </For>+ </div>+ </Show></div></TableCell>diff --git a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsxindex 725fef5b9a..674b80e201 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx@@ -1,5 +1,5 @@import { beforeEach, describe, expect, it, vi } from 'vitest';-import { render, waitFor } from '@solidjs/testing-library';+import { render, waitFor, within } from '@solidjs/testing-library';import type { Resource } from '@/types/resource';import { UnifiedResourceTable } from '@/components/Infrastructure/UnifiedResourceTable';import {@@ -182,6 +182,134 @@ describe('UnifiedResourceTable performance contract', () => {expect(getBodyRowCount(container)).toBe(PROFILES.S);});});++ it('renders service facet summary badges without changing the dedicated service row budget', async () => {+ const resources: Resource[] = [+ makeResource(0, {+ id: 'pbs-service',+ type: 'pbs',+ displayName: 'pbs-service',+ name: 'pbs-service',+ platformType: 'proxmox-pbs',+ sourceType: 'api',+ platformData: {+ sources: ['pbs'],+ pbs: {+ datastoreCount: 1,+ backupJobCount: 1,+ },+ },+ capabilities: [+ {+ name: 'backup',+ type: 'native',+ description: 'Create a backup snapshot',+ minimumApprovalLevel: 'admin',+ },+ ],+ relationships: [+ {+ sourceId: 'pbs-service',+ targetId: 'storage-1',+ type: 'depends_on',+ confidence: 0.88,+ active: true,+ discoverer: 'proxmox_adapter',+ observedAt: new Date().toISOString(),+ lastSeenAt: new Date().toISOString(),+ },+ ],+ recentChanges: [+ {+ id: 'pbs-change-1',+ observedAt: new Date().toISOString(),+ resourceId: 'pbs-service',+ kind: 'state_transition',+ sourceType: 'pulse_diff',+ confidence: 'high',+ },+ ],+ }),+ makeResource(1, {+ id: 'pmg-service',+ type: 'pmg',+ displayName: 'pmg-service',+ name: 'pmg-service',+ platformType: 'proxmox-pmg',+ sourceType: 'api',+ platformData: {+ sources: ['pmg'],+ pmg: {+ queueTotal: 12,+ nodeCount: 1,+ },+ },+ capabilities: [+ {+ name: 'thresholds',+ type: 'common',+ description: 'Adjust mail gateway thresholds',+ minimumApprovalLevel: 'dry_run_only',+ },+ ],+ relationships: [+ {+ sourceId: 'pmg-service',+ targetId: 'mail-queue-1',+ type: 'depends_on',+ confidence: 0.9,+ active: true,+ discoverer: 'proxmox_adapter',+ observedAt: new Date().toISOString(),+ lastSeenAt: new Date().toISOString(),+ },+ ],+ recentChanges: [+ {+ id: 'pmg-change-1',+ observedAt: new Date().toISOString(),+ resourceId: 'pmg-service',+ kind: 'metric_anomaly',+ sourceType: 'heuristic',+ confidence: 'medium',+ },+ ],+ }),+ ];+ const { container, getByText } = render(() => (+ <UnifiedResourceTable+ resources={resources}+ expandedResourceId={null}+ onExpandedResourceChange={vi.fn()}+ groupingMode="flat"+ />+ ));++ await waitFor(() => {+ expect(container.querySelector('table')).toBeInTheDocument();+ });+ await waitFor(() => {+ expect(getBodyRowCount(container)).toBe(2);+ });++ const pbsRow = getByText('pbs-service').closest('tr');+ expect(pbsRow).toBeTruthy();+ if (pbsRow) {+ const row = within(pbsRow);+ expect(row.getByText('Capabilities 1')).toBeInTheDocument();+ expect(row.getByText('Relationships 1')).toBeInTheDocument();+ expect(row.getByText('Timeline 1')).toBeInTheDocument();+ }++ const pmgRow = getByText('pmg-service').closest('tr');+ expect(pmgRow).toBeTruthy();+ if (pmgRow) {+ const row = within(pmgRow);+ expect(row.getByText('Capabilities 1')).toBeInTheDocument();+ expect(row.getByText('Relationships 1')).toBeInTheDocument();+ expect(row.getByText('Timeline 1')).toBeInTheDocument();+ }+ });});describe('Row windowing contracts', () => {diff --git a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.workloads-link.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.workloads-link.test.tsxindex a491c568b0..b8cfef45c7 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.workloads-link.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.workloads-link.test.tsx@@ -168,6 +168,36 @@ describe('UnifiedResourceTable workloads links', () => {backupJobCount: 1,},},+ capabilities: [+ {+ name: 'backup',+ type: 'native',+ description: 'Create a backup snapshot',+ minimumApprovalLevel: 'admin',+ },+ ],+ relationships: [+ {+ sourceId: 'pbs-1',+ targetId: 'storage-1',+ type: 'depends_on',+ confidence: 0.88,+ active: true,+ discoverer: 'proxmox_adapter',+ observedAt: new Date().toISOString(),+ lastSeenAt: new Date().toISOString(),+ },+ ],+ recentChanges: [+ {+ id: 'pbs-change-1',+ observedAt: new Date().toISOString(),+ resourceId: 'pbs-1',+ kind: 'state_transition',+ sourceType: 'pulse_diff',+ confidence: 'high',+ },+ ],}),baseResource({id: 'pmg-1',@@ -183,6 +213,36 @@ describe('UnifiedResourceTable workloads links', () => {nodeCount: 1,},},+ capabilities: [+ {+ name: 'thresholds',+ type: 'common',+ description: 'Adjust mail gateway thresholds',+ minimumApprovalLevel: 'dry_run_only',+ },+ ],+ relationships: [+ {+ sourceId: 'pmg-1',+ targetId: 'mail-queue-1',+ type: 'depends_on',+ confidence: 0.9,+ active: true,+ discoverer: 'proxmox_adapter',+ observedAt: new Date().toISOString(),+ lastSeenAt: new Date().toISOString(),+ },+ ],+ recentChanges: [+ {+ id: 'pmg-change-1',+ observedAt: new Date().toISOString(),+ resourceId: 'pmg-1',+ kind: 'metric_anomaly',+ sourceType: 'heuristic',+ confidence: 'medium',+ },+ ],}),];@@ -212,6 +272,9 @@ describe('UnifiedResourceTable workloads links', () => {const row = within(pbsRow);expect(row.getByText('2')).toBeInTheDocument();expect(row.getByText('1')).toBeInTheDocument();+ expect(row.getByText('Capabilities 1')).toBeInTheDocument();+ expect(row.getByText('Relationships 1')).toBeInTheDocument();+ expect(row.getByText('Timeline 1')).toBeInTheDocument();}const pmgRow = getByText('pmg-main').closest('tr');@@ -220,6 +283,9 @@ describe('UnifiedResourceTable workloads links', () => {const row = within(pmgRow);expect(row.getByText('519')).toBeInTheDocument();expect(row.getByText('1')).toBeInTheDocument();+ expect(row.getByText('Capabilities 1')).toBeInTheDocument();+ expect(row.getByText('Relationships 1')).toBeInTheDocument();+ expect(row.getByText('Timeline 1')).toBeInTheDocument();}const pbsLink = getByRole('link', { name: /open pbs backups/i });