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): trim summary header telemetry

rcourtman30ee71ccaccb
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index ec02b0184c..ba2829bc56 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -661,6 +661,9 @@ That same summary rule also applies to the panel header: the top-line summary
count strip should stay terse and avoid repeating the full posture telemetry
already rendered inside the cards, so the header acts as orientation rather
than a second miniature dashboard row.
+That same header rule should default to the protected-item total only rather
+than carrying separate attention, healthy, or running counters; those signals
+belong in the cards themselves.
That same summary layout should also stay on the shared monitoring rhythm:
recovery should use the standard four-card `SummaryPanel` grid without letting
one oversized posture card dominate the full strip, so operators can scan
diff --git a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx
index f17928e834..c700909397 100644
--- a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx
+++ b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx
@@ -73,7 +73,6 @@ describe('RecoverySummary', () => {
expect(screen.getByText('Peak Throughput')).toBeInTheDocument();
expect(screen.getByText('Latest Activity')).toBeInTheDocument();
expect(screen.getByText('2 protected')).toBeInTheDocument();
- expect(screen.getByText('1 attention')).toBeInTheDocument();
expect(screen.getAllByText(/Never Succeeded/i).length).toBeGreaterThan(0);
expect(screen.getByText('need attention')).toBeInTheDocument();
expect(screen.queryByText('protected items')).not.toBeInTheDocument();
diff --git a/frontend-modern/src/components/Recovery/RecoverySummary.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.tsx
index 1941c5e70d..9f52277a64 100644
--- a/frontend-modern/src/components/Recovery/RecoverySummary.tsx
+++ b/frontend-modern/src/components/Recovery/RecoverySummary.tsx
@@ -134,26 +134,7 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {
<Show when={hasRollups()}>
<SummaryPanel
headerLeft={
- <>
- <span class="font-medium text-base-content">
- {summary().total} protected
- </span>
- <Show when={attentionCount() > 0}>
- <span class="text-amber-600 dark:text-amber-400">
- {attentionCount()} attention
- </span>
- </Show>
- <Show when={attentionCount() === 0}>
- <span class="text-emerald-600 dark:text-emerald-400">
- {healthyCount()} healthy
- </span>
- </Show>
- <Show when={postureSummary().running > 0}>
- <span class="text-blue-600 dark:text-blue-400">
- {postureSummary().running} running
- </span>
- </Show>
- </>
+ <span class="font-medium text-base-content">{summary().total} protected</span>
}
timeRange={props.timeRange()}
onTimeRangeChange={props.onTimeRangeChange ? handleTimeRangeChange : undefined}