Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

refactor(recovery): strengthen event row scan cues

rcourtman8b5a69db685d
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 13118dc058..37e07a162d 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -733,6 +733,11 @@ should default to the concise columns operators need to triage quickly, while
secondary fields such as verification, size, target, and details remain
available through the shared column picker instead of crowding the baseline
grid.
+That same event-row scan rule should mirror the protected-items table in the
+primary identity cell. `RecoveryHistoryTable.tsx` should lead each event row
+with a compact outcome status cue plus the canonical item name, so operators
+can scan event health by row without relying only on the far-right outcome
+column.
That shared unified-resource dependency now also includes policy-governed
resource metadata on the frontend decode path: storage and recovery surfaces
that route through `frontend-modern/src/hooks/useUnifiedResources.ts` must
diff --git a/frontend-modern/src/components/Recovery/RecoveryHistoryTable.tsx b/frontend-modern/src/components/Recovery/RecoveryHistoryTable.tsx
index 95f5f7a039..bcfd3ebbbb 100644
--- a/frontend-modern/src/components/Recovery/RecoveryHistoryTable.tsx
+++ b/frontend-modern/src/components/Recovery/RecoveryHistoryTable.tsx
@@ -3,6 +3,7 @@ import type { Accessor, Component } from 'solid-js';
import { RecoveryPointDetails } from '@/components/Recovery/RecoveryPointDetails';
import { EmptyState } from '@/components/shared/EmptyState';
+import { StatusDot } from '@/components/shared/StatusDot';
import { getSourcePlatformBadge } from '@/components/shared/sourcePlatformBadges';
import {
Table,
@@ -20,7 +21,10 @@ import {
getRecoveryHistoryEmptyState,
getRecoveryPointsLoadingState,
} from '@/utils/recoveryEmptyStatePresentation';
-import { getRecoveryOutcomeBadgeClass } from '@/utils/recoveryOutcomePresentation';
+import {
+ getRecoveryOutcomeBadgeClass,
+ getRecoveryOutcomeLabel,
+} from '@/utils/recoveryOutcomePresentation';
import {
getRecoveryPointDetailsSummary,
getRecoveryPointItemLabel,
@@ -176,6 +180,18 @@ export const RecoveryHistoryTable: Component<RecoveryHistoryTableProps> = (props
const outcome =
(String(point.outcome || 'unknown').toLowerCase() as RecoveryOutcome) ||
'unknown';
+ const outcomeVariant = (() => {
+ switch (outcome) {
+ case 'success':
+ return 'success' as const;
+ case 'warning':
+ return 'warning' as const;
+ case 'failed':
+ return 'danger' as const;
+ default:
+ return 'muted' as const;
+ }
+ })();
const repoLabel = getRecoveryPointRepositoryLabel(point);
const detailsSummary = getRecoveryPointDetailsSummary(point);
const entityId = String(point.entityId || '').trim();
@@ -231,6 +247,13 @@ export const RecoveryHistoryTable: Component<RecoveryHistoryTableProps> = (props
title={item}
>
<div class="flex min-w-0 max-w-full items-center gap-2">
+ <StatusDot
+ variant={outcomeVariant}
+ size="xs"
+ pulse={outcome === 'running'}
+ title={getRecoveryOutcomeLabel(outcome)}
+ ariaLabel={getRecoveryOutcomeLabel(outcome)}
+ />
<span class="min-w-0 flex-1 truncate text-[12px] font-medium">
{item}
</span>
diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
index e38f1a4c86..09d16881d0 100644
--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
@@ -253,6 +253,9 @@ describe('Recovery', () => {
expect(within(historyTable).getByText('Platform')).toBeInTheDocument();
expect(within(historyTable).queryByText('Target')).not.toBeInTheDocument();
expect(within(historyTable).queryByText('Details')).not.toBeInTheDocument();
+ const historyRow = within(historyTable).getByLabelText('Healthy').closest('tr');
+ expect(historyRow).not.toBeNull();
+ expect(within(historyRow!).getByLabelText('Healthy')).toBeInTheDocument();
expect(screen.getByText('Recovery Activity')).toBeInTheDocument();
});