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
Demote PMG node count within service details
rcourtman790eac651da5
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex b58150c615..4dc49f8db2 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -301,6 +301,9 @@ inside PBS or PMG cards, and the service-local reveal labels stay tersealso use shorter section labels (`Types`, `Queue detail`, `Mail detail`) andcount-only summary badges so opened cards read like current state instead ofdescriptive chrome.+Within that same PMG opened state, queue and backlog remain the primary metric+tiles while node count moves into quieter support context beneath them, so the+first read stays on mail-flow state instead of cluster metadata.The Docker service card now follows the same rule: its opened state usescompact labels (`Docker runtime`, `Updates`, `Checked`, `Show actions`,`Check now`, `Update all`) and short queued/confirm feedback so actiondiff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsxindex 28c6a53b33..024762cc05 100644--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx@@ -1461,13 +1461,7 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {</Show><Show when={showPmgMailFlowDetail()}><div class="space-y-1.5 border-t border-rose-200 pt-2 dark:border-rose-700">- <div class="grid grid-cols-3 gap-2">- <div class="rounded border border-rose-200 bg-surface px-2 py-1.5 dark:border-rose-700">- <div class="text-[10px] text-muted">Nodes</div>- <div class="text-sm font-semibold text-base-content">- {formatInteger(pmg().nodeCount)}- </div>- </div>+ <div class="grid grid-cols-2 gap-2"><div class="rounded border border-rose-200 bg-surface px-2 py-1.5 dark:border-rose-700"><div class="text-[10px] text-muted">Queue</div><div@@ -1485,6 +1479,17 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {</div></div></div>+ <Show when={pmg().nodeCount}>+ <div+ data-testid="pmg-support-context"+ class="flex items-center justify-between gap-2 rounded border border-dashed border-rose-200 bg-surface px-2 py-1.5 text-[10px] dark:border-rose-700"+ >+ <span class="text-muted">Nodes</span>+ <span class="font-medium text-base-content">+ {formatInteger(pmg().nodeCount)}+ </span>+ </div>+ </Show><details class="rounded border border-rose-200 bg-surface px-2 py-1.5 dark:border-rose-700"><summary class="flex cursor-pointer list-none items-center justify-between text-[10px] font-medium text-muted"><span>Queue detail</span>diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsxindex ac8b65993d..f85ebd5855 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx@@ -384,6 +384,48 @@ describe('ResourceDetailDrawer change history section', () => {expect(screen.getByText('Types')).toBeInTheDocument();});+ it('keeps PMG node count out of the primary mail-flow metric grid', () => {+ facetBundleMock.getFacetBundle.mockResolvedValueOnce({+ capabilities: [],+ relationships: [],+ recentChanges: [],+ });++ const resource = baseResource({+ id: 'pmg-1',+ type: 'pmg',+ name: 'pmg-main',+ displayName: 'PMG Main',+ platformId: 'pmg-main',+ platformType: 'proxmox-pmg',+ platformData: {+ sources: ['pmg'],+ pmg: {+ hostname: 'pmg-main.local',+ connectionHealth: 'online',+ nodeCount: 1,+ queueTotal: 519,+ queueDeferred: 12,+ queueHold: 4,+ mailCountTotal: 1200,+ spamIn: 32,+ virusIn: 2,+ },+ },+ });++ render(() => <ResourceDetailDrawer resource={resource} />);++ fireEvent.click(screen.getByRole('button', { name: 'Show service details' }));+ fireEvent.click(screen.getByRole('button', { name: 'Show mail flow' }));+ expect(screen.getByText('Queue')).toBeInTheDocument();+ expect(screen.getByText('Backlog')).toBeInTheDocument();+ const supportContext = within(screen.getByTestId('pmg-support-context'));+ expect(supportContext.getByText('Nodes')).toBeInTheDocument();+ expect(screen.getByText('Queue detail')).toBeInTheDocument();+ expect(screen.getByText('Mail detail')).toBeInTheDocument();+ });+it('filters timeline entries by kind and source type', async () => {const unfilteredFacetBundle = {capabilities: [diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.service-cards.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.service-cards.test.tsxindex cf7ee99093..23c51bf5db 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.service-cards.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.service-cards.test.tsx@@ -159,6 +159,8 @@ describe('ResourceDetailDrawer service cards', () => {fireEvent.click(getByRole('button', { name: 'Show mail flow' }));expect(getByText('Queue')).toBeInTheDocument();expect(getByText('Backlog')).toBeInTheDocument();+ const pmgSupportContext = within(getByTestId('pmg-support-context'));+ expect(pmgSupportContext.getByText('Nodes')).toBeInTheDocument();expect(getByText('Queue detail')).toBeInTheDocument();expect(getByText('Mail detail')).toBeInTheDocument();expect(getByRole('link', { name: /open pmg thresholds/i })).toHaveAttribute(