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
Converge backup relative-age cells
rcourtman65d0f4b91761
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex f265821332..2f912b1297 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -2632,9 +2632,9 @@ Relative timestamp-age cells follow the same rule.the repeated `formatRelativeTime` composition, compact-label default,invalid/empty markers, and tabular-number styling for dense platform tablecells. Docker / Podman volume created-at cells, Kubernetes deployment age-cells, Kubernetes event observed-time cells, and Proxmox replication last-sync-cells must compose that primitive instead of importing `formatRelativeTime`-directly in table files.+cells, Kubernetes event observed-time cells, Proxmox backup created-age cells,+and Proxmox replication last-sync cells must compose that primitive instead of+importing `formatRelativeTime` directly in table files.Platform table numeric fallback rendering is registry-backed too.`PlatformTableNumberValue` owns finite-number checking, tabular-number styling,custom empty-marker support, and caller-owned number formatting for densediff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 640c5efa8f..ae44c044bf 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -156,6 +156,11 @@ or artifact size is meaningful backup/recovery evidence, whilefrontend-primitives owns byte-unit presentation through`formatPlatformTableBytesValue` instead of direct `formatBytes` imports inbackup table files.+Recoverable-artifact age labels follow the same split: storage/recovery owns+which artifact creation timestamp and age band describe recovery freshness,+while frontend-primitives owns compact relative-time rendering through+`PlatformTableRelativeTimeValue` instead of direct `formatRelativeTime` imports+in backup table files.Those Proxmox backup workflows own recovery semantics, source-specificempty-state copy, and retry/filter actions, but their table empty-state framemust compose the frontend-primitives-owned `PlatformTableEmptyState` shelldiff --git a/frontend-modern/scripts/shared-template-audit.mjs b/frontend-modern/scripts/shared-template-audit.mjsindex f11b3e401a..9faeb99f14 100644--- a/frontend-modern/scripts/shared-template-audit.mjs+++ b/frontend-modern/scripts/shared-template-audit.mjs@@ -73,8 +73,12 @@ const collectFiles = (scope, extensions) => {const getAllowedPath = (entry) => (typeof entry === 'string' ? entry : entry?.path);const filterGuardFiles = (files, guard) => {const pathIncludes = Array.isArray(guard.pathIncludes) ? guard.pathIncludes : [];- if (pathIncludes.length === 0) return files;- return files.filter((file) => pathIncludes.every((fragment) => file.includes(fragment)));+ const pathExcludes = Array.isArray(guard.pathExcludes) ? guard.pathExcludes : [];+ return files.filter(+ (file) =>+ pathIncludes.every((fragment) => file.includes(fragment)) &&+ !pathExcludes.some((fragment) => file.includes(fragment)),+ );};for (const rule of rules) {diff --git a/frontend-modern/scripts/shared-template-registry.json b/frontend-modern/scripts/shared-template-registry.jsonindex 086e305c38..7e0166da7a 100644--- a/frontend-modern/scripts/shared-template-registry.json+++ b/frontend-modern/scripts/shared-template-registry.json@@ -1475,6 +1475,7 @@{ "path": "src/features/docker/DockerVolumesTable.tsx" },{ "path": "src/features/kubernetes/KubernetesDeploymentsTable.tsx" },{ "path": "src/features/kubernetes/KubernetesEventsTable.tsx" },+ { "path": "src/features/proxmox/proxmoxBackupsTableShared.tsx" },{ "path": "src/features/proxmox/ProxmoxReplicationTable.tsx" }],"forbiddenPatterns": [@@ -1492,6 +1493,10 @@"formatRelativeTime(observedTimestamp(resource), { compact: true, emptyText: '—' })"]},+ {+ "path": "src/features/proxmox/proxmoxBackupsTableShared.tsx",+ "patterns": ["formatRelativeTime(props.artifact.createdAt, { compact: true })"]+ },{"path": "src/features/proxmox/ProxmoxReplicationTable.tsx","patterns": [@@ -2400,6 +2405,7 @@],"extensions": [".tsx"],"pathIncludes": ["Table"],+ "pathExcludes": ["__tests__"],"allPatterns": ["const formatBytes", "value.toFixed(value >= 100 ? 0 : value >= 10 ? 1 : 2)"],"legacyReason": "Retired migration debt. Platform table byte-size cells must use formatPlatformTableBytesValue for shared positive-byte formatting and empty-cell markers.","allowedPaths": [],@@ -2426,6 +2432,7 @@],"extensions": [".tsx"],"pathIncludes": ["Table"],+ "pathExcludes": ["__tests__"],"allPatterns": ["import { formatBytes } from '@/utils/format';", "formatBytes("],"legacyReason": "Retired migration debt. Dense platform table byte cells must use formatPlatformTableBytesValue so positive-byte formatting and empty markers stay shared.","allowedPaths": [],@@ -2648,13 +2655,10 @@"path": "src/features/platformPage/sharedPlatformPage.tsx","export": "PlatformTableRelativeTimeValue"},- "scopes": [- "src/features/docker/DockerVolumesTable.tsx",- "src/features/kubernetes/KubernetesDeploymentsTable.tsx",- "src/features/kubernetes/KubernetesEventsTable.tsx",- "src/features/proxmox/ProxmoxReplicationTable.tsx"- ],+ "scopes": ["src/features/docker", "src/features/kubernetes", "src/features/proxmox"],"extensions": [".tsx"],+ "pathIncludes": ["Table"],+ "pathExcludes": ["__tests__"],"allPatterns": ["formatRelativeTime("],"legacyReason": "Retired migration debt. Platform table relative timestamp cells must compose PlatformTableRelativeTimeValue so compact labels, empty markers, and tabular styling stay shared.","allowedPaths": [],diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 3fe94713cd..c13707f9f3 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -419,6 +419,7 @@ describe('shared primitive guardrails', () => {allPatterns?: string[];scopes?: string[];pathIncludes?: string[];+ pathExcludes?: string[];allowedPaths?: string[];ignoredPaths?: string[];}>;@@ -523,6 +524,7 @@ describe('shared primitive guardrails', () => {allPatterns?: string[];scopes?: string[];pathIncludes?: string[];+ pathExcludes?: string[];allowedPaths?: string[];ignoredPaths?: string[];}>;@@ -822,6 +824,7 @@ describe('shared primitive guardrails', () => {canonical?: { path?: string; export?: string };allPatterns?: string[];scopes?: string[];+ pathIncludes?: string[];allowedPaths?: string[];ignoredPaths?: string[];}>;@@ -1179,6 +1182,8 @@ describe('shared primitive guardrails', () => {canonical?: { path?: string; export?: string };allPatterns?: string[];scopes?: string[];+ pathIncludes?: string[];+ pathExcludes?: string[];allowedPaths?: string[];ignoredPaths?: string[];}>;@@ -1362,6 +1367,8 @@ describe('shared primitive guardrails', () => {canonical?: { path?: string; export?: string };allPatterns?: string[];scopes?: string[];+ pathIncludes?: string[];+ pathExcludes?: string[];allowedPaths?: string[];ignoredPaths?: string[];}>;@@ -3730,6 +3737,7 @@ describe('shared primitive guardrails', () => {allPatterns?: string[];scopes?: string[];pathIncludes?: string[];+ pathExcludes?: string[];allowedPaths?: string[];ignoredPaths?: string[];}>;@@ -3836,6 +3844,7 @@ describe('shared primitive guardrails', () => {'src/features/truenas',]);expect(localHelperGuard?.pathIncludes).toEqual(['Table']);+ expect(localHelperGuard?.pathExcludes).toEqual(['__tests__']);expect(localHelperGuard?.allowedPaths ?? []).toHaveLength(0);expect(localHelperGuard?.ignoredPaths ?? []).toHaveLength(0);expect(localFormatBytesImportGuard?.canonical?.path).toBe(@@ -3853,6 +3862,7 @@ describe('shared primitive guardrails', () => {'src/features/truenas',]);expect(localFormatBytesImportGuard?.pathIncludes).toEqual(['Table']);+ expect(localFormatBytesImportGuard?.pathExcludes).toEqual(['__tests__']);expect(localFormatBytesImportGuard?.allowedPaths ?? []).toHaveLength(0);expect(localFormatBytesImportGuard?.ignoredPaths ?? []).toHaveLength(0);@@ -3981,6 +3991,8 @@ describe('shared primitive guardrails', () => {canonical?: { path?: string; export?: string };allPatterns?: string[];scopes?: string[];+ pathIncludes?: string[];+ pathExcludes?: string[];allowedPaths?: string[];ignoredPaths?: string[];}>;@@ -3995,6 +4007,7 @@ describe('shared primitive guardrails', () => {['src/features/docker/DockerVolumesTable.tsx', dockerVolumesTableSource],['src/features/kubernetes/KubernetesDeploymentsTable.tsx', kubernetesDeploymentsTableSource],['src/features/kubernetes/KubernetesEventsTable.tsx', kubernetesEventsTableSource],+ ['src/features/proxmox/proxmoxBackupsTableShared.tsx', proxmoxBackupsTableSharedSource],['src/features/proxmox/ProxmoxReplicationTable.tsx', proxmoxReplicationTableSource],];const platformRelativeTimeConsumerPaths = platformRelativeTimeConsumers.map(([path]) => path);@@ -4021,6 +4034,10 @@ describe('shared primitive guardrails', () => {"formatRelativeTime(observedTimestamp(resource), { compact: true, emptyText: '—' })",],},+ {+ path: 'src/features/proxmox/proxmoxBackupsTableShared.tsx',+ patterns: ['formatRelativeTime(props.artifact.createdAt, { compact: true })'],+ },{path: 'src/features/proxmox/ProxmoxReplicationTable.tsx',patterns: [@@ -4034,7 +4051,13 @@ describe('shared primitive guardrails', () => {);expect(localHelperGuard?.canonical?.export).toBe('PlatformTableRelativeTimeValue');expect(localHelperGuard?.allPatterns).toEqual(['formatRelativeTime(']);- expect(localHelperGuard?.scopes).toEqual(platformRelativeTimeConsumerPaths);+ expect(localHelperGuard?.scopes).toEqual([+ 'src/features/docker',+ 'src/features/kubernetes',+ 'src/features/proxmox',+ ]);+ expect(localHelperGuard?.pathIncludes).toEqual(['Table']);+ expect(localHelperGuard?.pathExcludes).toEqual(['__tests__']);expect(localHelperGuard?.allowedPaths ?? []).toHaveLength(0);expect(localHelperGuard?.ignoredPaths ?? []).toHaveLength(0);diff --git a/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupsTableShared.test.tsx b/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupsTableShared.test.tsxindex f05ea3cb6c..729df7b985 100644--- a/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupsTableShared.test.tsx+++ b/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupsTableShared.test.tsx@@ -84,6 +84,11 @@ describe('proxmoxBackupsTableShared', () => {expect(source).not.toContain('formatBytes(');}});++ it('keeps backup age text on the shared relative-time primitive', () => {+ expect(proxmoxBackupsTableSharedSource).toContain('PlatformTableRelativeTimeValue');+ expect(proxmoxBackupsTableSharedSource).not.toContain('formatRelativeTime(');+ });});function artifact(overrides: Partial<RecoverableArtifact> = {}): RecoverableArtifact {diff --git a/frontend-modern/src/features/proxmox/proxmoxBackupsTableShared.tsx b/frontend-modern/src/features/proxmox/proxmoxBackupsTableShared.tsxindex 1add576a5f..2c0a75fccc 100644--- a/frontend-modern/src/features/proxmox/proxmoxBackupsTableShared.tsx+++ b/frontend-modern/src/features/proxmox/proxmoxBackupsTableShared.tsx@@ -8,7 +8,7 @@ import { MetadataBadge } from '@/components/shared/MetadataBadge';import { ProgressBar } from '@/components/shared/ProgressBar';import { TableHead } from '@/components/shared/Table';import { WorkloadTypeBadge as SharedWorkloadTypeBadge } from '@/components/shared/WorkloadTypeBadge';-import { formatRelativeTime } from '@/utils/format';+import { PlatformTableRelativeTimeValue } from '@/features/platformPage/sharedPlatformPage';import {getRecoveryAgeBand,@@ -218,7 +218,6 @@ export function RowMetricBar(props: {export function ProxmoxBackupAgeText(props: { artifact: RecoverableArtifact }) {const band = () => getRecoveryAgeBand(props.artifact.createdMs);- const relative = () => formatRelativeTime(props.artifact.createdAt, { compact: true });const title = () => {const parts = [recoveryAgeTitleByBand[band()], props.artifact.createdAt].filter(Boolean);return parts.join(' · ');@@ -226,7 +225,7 @@ export function ProxmoxBackupAgeText(props: { artifact: RecoverableArtifact }) {return (<span class={`font-semibold tabular-nums ${recoveryAgeClassByBand[band()]}`} title={title()}>- {relative() || '—'}+ <PlatformTableRelativeTimeValue value={props.artifact.createdAt} /></span>);}