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
refactor(recovery): tighten activity strip telemetry
rcourtman1ae158d546fd
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 18801a8ba1..eda978cc3f 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -862,6 +862,10 @@ of spending a disproportionate slice of the screen on chart chrome. The rangepicker and legend should share one compact control row, and the activity stripshould not burn a separate descriptive subtitle row once the headline metricsalready explain the chart context.+That telemetry header should also avoid derivative pace rows once the chart+already carries the rhythm. Total points, active days, and issue cues can+stay, but average-per-day style readouts should not re-expand the strip into a+second mini report above the event table.That same events-table contract should also keep the default column set on amonitoring-style scan path rather than a report-export path. Recovery eventsshould default to the concise columns operators need to triage quickly, whilediff --git a/frontend-modern/src/components/Recovery/RecoveryActivitySection.tsx b/frontend-modern/src/components/Recovery/RecoveryActivitySection.tsxindex de774f285d..d39fad6259 100644--- a/frontend-modern/src/components/Recovery/RecoveryActivitySection.tsx+++ b/frontend-modern/src/components/Recovery/RecoveryActivitySection.tsx@@ -94,7 +94,6 @@ function RecoveryActivitySectionContent(props: RecoveryActivitySectionProps): JS{props.activitySummary().totalPoints} recovery points</span><span>{props.activitySummary().activeDays} active days</span>- <span>{props.activitySummary().averagePerDay.toFixed(1)} / day</span><Show when={props.overallRollupsSummary().stale > 0}><span class="font-medium text-amber-600 dark:text-amber-400">{props.overallRollupsSummary().stale} stale@@ -131,7 +130,7 @@ function RecoveryActivitySectionContent(props: RecoveryActivitySectionProps): JSprops.activeNamespaceLabel()}>- <div class="mb-1.5 flex flex-wrap items-center gap-1.5">+ <div class="mb-1 flex flex-wrap items-center gap-1.5"><Show when={props.selectedDateKey()}>{(() => {const chip = getRecoveryFilterChipPresentation('day');@@ -223,9 +222,9 @@ function RecoveryActivitySectionContent(props: RecoveryActivitySectionProps): JS</div></Show>- <div class="rounded-lg border border-border-subtle bg-surface-alt/25 p-2">+ <div class="rounded-lg border border-border-subtle bg-surface-alt/25 px-2 py-1.5"><div- class={`mb-1.5 flex flex-wrap items-center justify-between gap-3 ${RECOVERY_TIMELINE_RANGE_GROUP_CLASS}`}+ class={`mb-1 flex flex-wrap items-center justify-between gap-2 ${RECOVERY_TIMELINE_RANGE_GROUP_CLASS}`}><div class={RECOVERY_TIMELINE_RANGE_GROUP_CLASS}><For each={rangeOptions}>@@ -240,7 +239,7 @@ function RecoveryActivitySectionContent(props: RecoveryActivitySectionProps): JS)}</For></div>- <div class="flex flex-wrap items-center gap-2 text-[9px] text-muted">+ <div class="flex flex-wrap items-center gap-1.5 text-[9px] text-muted"><div class={RECOVERY_TIMELINE_LEGEND_ITEM_CLASS}><span class={`h-2.5 w-2.5 rounded ${getRecoveryArtifactModePresentation('snapshot').segmentClassName}`} />{getRecoveryArtifactModePresentation('snapshot').aggregateLabel}@@ -267,8 +266,8 @@ function RecoveryActivitySectionContent(props: RecoveryActivitySectionProps): JS}><div class="relative">- <div class="grid grid-cols-[auto_minmax(0,1fr)] gap-3">- <div class="flex h-20 flex-col justify-between text-[10px] text-muted">+ <div class="grid grid-cols-[auto_minmax(0,1fr)] gap-2.5">+ <div class="flex h-16 flex-col justify-between text-[10px] text-muted"><For each={[0, 1, 2, 3, 4]}>{(step) => {const value = Math.round((props.timeline().axisMax * (4 - step)) / 4);@@ -277,7 +276,7 @@ function RecoveryActivitySectionContent(props: RecoveryActivitySectionProps): JS</For></div>- <div class="relative h-24">+ <div class="relative h-20"><divdata-testid="recovery-activity-bars"class="absolute inset-x-0 bottom-4 top-0 flex items-stretch gap-[3px]"diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsxindex 5eee56ee86..4e2d5fa9e4 100644--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx@@ -300,11 +300,12 @@ describe('Recovery', () => {historyTablist.compareDocumentPosition(historyControls) & Node.DOCUMENT_POSITION_FOLLOWING,).not.toBe(0);const activityHeading = screen.getByText('Recovery Activity');- expect(activityBars.parentElement?.className).toContain('h-24');+ expect(activityBars.parentElement?.className).toContain('h-20');expect(screen.queryByText('Daily recovery points across the selected history window.'),).not.toBeInTheDocument();expect(screen.queryByText(/^Range$/)).not.toBeInTheDocument();+ expect(screen.queryByText(/\/ day/i)).not.toBeInTheDocument();expect(eventsWorkspaceCard).toContainElement(activityHeading);expect(eventsWorkspaceCard).toContainElement(historyControls);expect(eventsWorkspaceCard).toContainElement(historyTable);diff --git a/frontend-modern/src/components/Recovery/__tests__/RecoveryActivitySection.test.tsx b/frontend-modern/src/components/Recovery/__tests__/RecoveryActivitySection.test.tsxindex 98206a1075..bb3fc237cc 100644--- a/frontend-modern/src/components/Recovery/__tests__/RecoveryActivitySection.test.tsx+++ b/frontend-modern/src/components/Recovery/__tests__/RecoveryActivitySection.test.tsx@@ -43,11 +43,12 @@ describe('RecoveryActivitySection', () => {const bars = screen.getByTestId('recovery-activity-bars');expect(bars.className).toContain('items-stretch');- expect(bars.parentElement?.className).toContain('h-24');+ expect(bars.parentElement?.className).toContain('h-20');expect(screen.queryByText('Daily recovery points across the selected history window.'),).not.toBeInTheDocument();expect(screen.queryByText(/^Range$/)).not.toBeInTheDocument();+ expect(screen.queryByText(/1.5 \/ day/i)).not.toBeInTheDocument();expect(screen.getAllByRole('button', { name: /recovery points/i })).toHaveLength(2);});});