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
render Verify due badge on Protected Items rows
rcourtman19beb6399e20
diff --git a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsxindex d253f03540..ba0b271b3e 100644--- a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx+++ b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx@@ -23,6 +23,7 @@ import {getRecoveryRollupInventoryStatusLabel,getRecoveryRollupInventoryStatusTextClass,getRecoveryRollupInventoryStatusVariant,+ getRecoveryRollupStatusPillClass,getRecoverySpecialOutcomeTextClass,} from '@/utils/recoveryStatusPresentation';import {@@ -460,6 +461,15 @@ export const RecoveryProtectedInventorySection: Component<{secondaryLabel}</span></Show>+ <Show when={rollup.verifyIntent === 'stale'}>+ <span+ class={`${getRecoveryRollupStatusPillClass('stale')} shrink-0`}+ data-testid="recovery-protected-verify-due-badge"+ title="Latest backup has not been verified within the staleness window"+ >+ Verify due+ </span>+ </Show></div></div><Show when={protectionInsight}>diff --git a/frontend-modern/src/components/Recovery/__tests__/RecoveryProtectedInventorySection.test.tsx b/frontend-modern/src/components/Recovery/__tests__/RecoveryProtectedInventorySection.test.tsxnew file mode 100644index 0000000000..f29464b0f3--- /dev/null+++ b/frontend-modern/src/components/Recovery/__tests__/RecoveryProtectedInventorySection.test.tsx@@ -0,0 +1,80 @@+import { render, screen } from '@solidjs/testing-library';+import { describe, expect, it } from 'vitest';++import { RecoveryProtectedInventorySection } from '@/components/Recovery/RecoveryProtectedInventorySection';+import type { ProtectionRollup, VerifyIntent } from '@/types/recovery';+import type { Resource } from '@/types/resource';++const baseRollup: ProtectionRollup = {+ rollupId: 'res:vm-100',+ itemResourceId: 'vm-100',+ display: {+ subjectLabel: 'web-prod',+ subjectType: 'proxmox-vm',+ },+ lastAttemptAt: '2026-05-10T12:00:00Z',+ lastSuccessAt: '2026-05-10T12:00:00Z',+ lastOutcome: 'success',+ platforms: ['proxmox-pbs'],+};++const renderSection = (rollup: ProtectionRollup) => {+ const rollups = [rollup];+ return render(() => (+ <RecoveryProtectedInventorySection+ filteredRollups={() => rollups}+ itemTypeFilter={() => 'all'}+ itemTypeOptions={() => ['all']}+ isMobile={false}+ kioskMode+ onSelectRollup={() => undefined}+ protectedStateFilter={() => 'all'}+ platformFilter={() => 'all'}+ platformOptions={() => ['all']}+ queryFilter={() => ''}+ resourcesById={() => new Map<string, Resource>()}+ rollups={() => rollups}+ rollupsSummary={() => ({+ total: rollups.length,+ counts: {},+ stale: 0,+ neverSucceeded: 0,+ })}+ setItemTypeFilter={() => undefined}+ setProtectedStateFilter={() => undefined}+ setPlatformFilter={() => undefined}+ setQueryFilter={() => undefined}+ setVerificationFilter={() => undefined}+ loading={() => false}+ error={() => undefined}+ />+ ));+};++describe('RecoveryProtectedInventorySection — Verify due badge', () => {+ it('renders the Verify due badge when verifyIntent is stale', () => {+ renderSection({ ...baseRollup, verifyIntent: 'stale' });++ const badge = screen.getByTestId('recovery-protected-verify-due-badge');+ expect(badge).toBeInTheDocument();+ expect(badge.textContent).toMatch(/verify due/i);+ });++ it('does not render the Verify due badge when verifyIntent is verified', () => {+ renderSection({ ...baseRollup, verifyIntent: 'verified' });++ expect(screen.queryByTestId('recovery-protected-verify-due-badge')).toBeNull();+ });++ it('does not render the Verify due badge when verifyIntent is unknown', () => {+ renderSection({ ...baseRollup, verifyIntent: 'unknown' as VerifyIntent });++ expect(screen.queryByTestId('recovery-protected-verify-due-badge')).toBeNull();+ });++ it('does not render the Verify due badge when verifyIntent is omitted (legacy backend)', () => {+ renderSection({ ...baseRollup });++ expect(screen.queryByTestId('recovery-protected-verify-due-badge')).toBeNull();+ });+});diff --git a/frontend-modern/src/types/recovery.ts b/frontend-modern/src/types/recovery.tsindex 7e0636dba9..c505657e7e 100644--- a/frontend-modern/src/types/recovery.ts+++ b/frontend-modern/src/types/recovery.ts@@ -34,7 +34,7 @@ export interface RecoveryPointDisplay {detailsSummary?: string;}-export interface RecoveryPointDisplayTransport extends RecoveryPointDisplay {}+export type RecoveryPointDisplayTransport = RecoveryPointDisplay;export interface RecoveryPoint {id: string;@@ -90,6 +90,8 @@ export interface RecoveryPointsTransportResponse {meta: RecoveryResponseMeta;}+export type VerifyIntent = 'verified' | 'stale' | 'unknown';+export interface ProtectionRollup {rollupId: string;itemResourceId?: string;@@ -103,6 +105,12 @@ export interface ProtectionRollup {lastOutcome?: RecoveryOutcome;platforms?: RecoveryPlatform[];++ // VerifyIntent tracks whether the most recent successful backup for this+ // subject has been verified within the staleness window. Omitted by older+ // backends; absence is equivalent to "unknown".+ verifyIntent?: VerifyIntent;+ lastVerifiedAt?: string | null;}export interface ProtectionRollupTransport extends ProtectionRollup {