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): make events workspace data-first

rcourtmandcd879974335
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 729d63145a..0c14763671 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -789,6 +789,10 @@ pattern as the protected inventory surface, not a separate large titled header
bar plus another full toolbar slab. Event filter labels should also stay on the
canonical short Pulse vocabulary like `Platform` and `Status` instead of
recovery-only variants such as `History platform` or `History status`.
+That same events-workspace rule should keep the handoff data-first. The events
+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
diff --git a/frontend-modern/src/components/Recovery/Recovery.tsx b/frontend-modern/src/components/Recovery/Recovery.tsx
index 4f5c50eb12..c2c4db299d 100644
--- a/frontend-modern/src/components/Recovery/Recovery.tsx
+++ b/frontend-modern/src/components/Recovery/Recovery.tsx
@@ -533,54 +533,6 @@ const Recovery: Component = () => {
</Show>
<Show when={workspaceView() === 'events'}>
- <RecoveryActivitySection
- activitySummary={activitySummary}
- activeClusterLabel={activeClusterLabel}
- activeItemTypeLabel={activeItemTypeLabel}
- activeNamespaceLabel={activeNamespaceLabel}
- activeNodeLabel={activeNodeLabel}
- chartRangeDays={chartRangeDays}
- clearClusterFilter={() => {
- setClusterFilter('all');
- setCurrentPage(1);
- }}
- clearFocusedRollup={() => setRollupId('')}
- clearItemTypeFilter={() => {
- setItemTypeFilter('all');
- setCurrentPage(1);
- }}
- clearNamespaceFilter={() => {
- setNamespaceFilter('all');
- setCurrentPage(1);
- }}
- clearNodeFilter={() => {
- setNodeFilter('all');
- setCurrentPage(1);
- }}
- clearSelectedDate={() => {
- setSelectedDateKey(null);
- setCurrentPage(1);
- }}
- hasFocusedRollup={() => rollupId().trim().length > 0}
- isMobile={isMobile()}
- loading={() => recoverySeries.response.loading}
- overallRollupsSummary={overallRollupsSummary}
- selectedDateKey={selectedDateKey}
- selectedDateLabel={selectedDateLabel}
- selectedHistoryItemLabel={selectedHistoryItemLabel}
- setChartRangeDays={(range) => {
- setChartRangeDays(range);
- setSelectedDateKey(null);
- setCurrentPage(1);
- }}
- timeline={timeline}
- toggleSelectedDate={(key) => {
- setWorkspaceView('events');
- setSelectedDateKey((previous) => (previous === key ? null : key));
- setCurrentPage(1);
- }}
- />
-
<Show when={!recoveryPoints.response.loading && recoveryPoints.response.error}>
<Card padding="sm">
<EmptyState
@@ -642,6 +594,54 @@ const Recovery: Component = () => {
verificationFilter={verificationFilter}
/>
</Show>
+
+ <RecoveryActivitySection
+ activitySummary={activitySummary}
+ activeClusterLabel={activeClusterLabel}
+ activeItemTypeLabel={activeItemTypeLabel}
+ activeNamespaceLabel={activeNamespaceLabel}
+ activeNodeLabel={activeNodeLabel}
+ chartRangeDays={chartRangeDays}
+ clearClusterFilter={() => {
+ setClusterFilter('all');
+ setCurrentPage(1);
+ }}
+ clearFocusedRollup={() => setRollupId('')}
+ clearItemTypeFilter={() => {
+ setItemTypeFilter('all');
+ setCurrentPage(1);
+ }}
+ clearNamespaceFilter={() => {
+ setNamespaceFilter('all');
+ setCurrentPage(1);
+ }}
+ clearNodeFilter={() => {
+ setNodeFilter('all');
+ setCurrentPage(1);
+ }}
+ clearSelectedDate={() => {
+ setSelectedDateKey(null);
+ setCurrentPage(1);
+ }}
+ hasFocusedRollup={() => rollupId().trim().length > 0}
+ isMobile={isMobile()}
+ loading={() => recoverySeries.response.loading}
+ overallRollupsSummary={overallRollupsSummary}
+ selectedDateKey={selectedDateKey}
+ selectedDateLabel={selectedDateLabel}
+ selectedHistoryItemLabel={selectedHistoryItemLabel}
+ setChartRangeDays={(range) => {
+ setChartRangeDays(range);
+ setSelectedDateKey(null);
+ setCurrentPage(1);
+ }}
+ timeline={timeline}
+ toggleSelectedDate={(key) => {
+ setWorkspaceView('events');
+ setSelectedDateKey((previous) => (previous === key ? null : key));
+ setCurrentPage(1);
+ }}
+ />
</Show>
</>
);
diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
index ebc7aece79..5631bb0c3a 100644
--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
@@ -284,6 +284,10 @@ describe('Recovery', () => {
expect(
historyControls.compareDocumentPosition(historyTable) & Node.DOCUMENT_POSITION_FOLLOWING,
).not.toBe(0);
+ const activityHeading = screen.getByText('Recovery Activity');
+ expect(
+ historyTable.compareDocumentPosition(activityHeading) & Node.DOCUMENT_POSITION_FOLLOWING,
+ ).not.toBe(0);
const historySearch = within(historyControls).getByPlaceholderText('Search recovery history...');
expect(historySearch).toBeInTheDocument();
expect(historySearch.closest('div.relative')?.className).toContain('w-full');
@@ -302,7 +306,7 @@ describe('Recovery', () => {
const historyRow = within(historyTable).getByLabelText('Healthy').closest('tr');
expect(historyRow).not.toBeNull();
expect(within(historyRow!).getByLabelText('Healthy')).toBeInTheDocument();
- expect(screen.getByText('Recovery Activity')).toBeInTheDocument();
+ expect(activityHeading).toBeInTheDocument();
});
it('persists the selected recovery workspace view in the route when explicitly changed', async () => {