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): keep events toolbar action-first

rcourtman9705b63f0ef2
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 6e7cb49de8..4906aa49ed 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -799,10 +799,11 @@ workspace should move from tabs to shared controls to the recovery history
table before showing the activity/timeline card, so the analytics surface
stays secondary to the working table instead of interrupting the operator path.
That same events-shell contract should avoid repeating page-state bookkeeping
-ahead of the history grid. Recovery events should surface workspace context,
-event count, and day grouping in the status row, while current page and other
-table bookkeeping stay in the table footer instead of competing with the scan
-path above the filters.
+ahead of the history grid. Recovery events should keep the toolbar utility area
+focused on actual controls like advanced filters and column visibility instead
+of passive `day groups` narration; day grouping should stay legible through the
+history surface itself, while current page and other table bookkeeping remain
+in the table footer instead of competing with the scan path above the filters.
That same activity panel should stay compact and analytical rather than
becoming a second dashboard header. `RecoveryActivitySection.tsx` should keep a
single slim telemetry header, compact active-filter chips, and a shorter chart
diff --git a/frontend-modern/src/components/Recovery/RecoveryHistorySection.tsx b/frontend-modern/src/components/Recovery/RecoveryHistorySection.tsx
index 093fe01be8..c6b690c6bd 100644
--- a/frontend-modern/src/components/Recovery/RecoveryHistorySection.tsx
+++ b/frontend-modern/src/components/Recovery/RecoveryHistorySection.tsx
@@ -157,14 +157,6 @@ export const RecoveryHistorySection: Component<RecoveryHistorySectionProps> = (p
}}
utilityActions={
<div class="ml-auto flex items-center gap-2">
- <Show when={props.groupedByDay().length > 0}>
- <div class="flex min-w-0 flex-wrap items-center gap-2 text-[11px] text-muted">
- <span>
- {props.groupedByDay().length} day group
- {props.groupedByDay().length === 1 ? '' : 's'}
- </span>
- </div>
- </Show>
<div class="relative">
<FilterActionButton
ref={advancedFiltersButtonRef}
diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
index 1b9b5091dc..d6cc789f91 100644
--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
@@ -295,9 +295,8 @@ describe('Recovery', () => {
expect(historySearch.closest('div.relative')?.className).toContain('w-full');
expect(within(historyTablist).getByRole('tab', { name: 'Protected items' })).toBeInTheDocument();
expect(within(historyTablist).getByRole('tab', { name: 'Recovery events' })).toBeInTheDocument();
- expect(within(historyControls).getByText(/^1 day group$/i)).toBeInTheDocument();
expect(screen.getAllByText(/^1 event$/i)).toHaveLength(1);
- expect(screen.getAllByText(/^1 day group$/i)).toHaveLength(1);
+ expect(within(historyControls).queryByText(/day group/i)).not.toBeInTheDocument();
expect(within(historyTable).getByText('Item Type')).toBeInTheDocument();
expect(within(historyTable).getByText('Item')).toBeInTheDocument();
expect(within(historyTable).getByText('Platform')).toBeInTheDocument();