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.

Add Proxmox backup date feed

rcourtman4845e9603935
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 689b1e199d..ff7043ed85 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -975,7 +975,11 @@ not a replacement status card, CTA band, or page-local nested card.
primitives for table shells, alignment, filter buttons, charts, and empty
states. Frontend-primitives owns those reusable controls and guardrails,
not the storage/recovery semantics that decide which PBS, PVE archive,
- snapshot, task, or workload-coverage rows are shown.
+ snapshot, task, or workload-coverage rows are shown. Storage/recovery-owned
+ Proxmox backup subcomponents may live under `frontend-modern/src/features/`
+ when they are listed in the subsystem registry and continue to compose the
+ shared filter, table, chart, and empty-state primitives rather than local
+ shell variants.
`frontend-modern/src/AppLayout.tsx` may extend the `PrimaryTab` list with
new platform or runtime-family entries, but primary navigation is a
support-and-evidence-gated surface: rendered tabs, command/search
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index ce4a3cff63..f263e12693 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -4826,10 +4826,14 @@
"internal/recovery/"
],
"owned_files": [
+ "frontend-modern/src/features/proxmox/BackupActivityChart.tsx",
+ "frontend-modern/src/features/proxmox/proxmoxBackupActivityPresentation.ts",
"frontend-modern/src/features/proxmox/proxmoxBackupRecoveryModel.ts",
"frontend-modern/src/features/proxmox/ProxmoxBackupsCoverageStrip.tsx",
+ "frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx",
"frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx",
"frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx",
+ "frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx",
"frontend-modern/src/hooks/useRecoveryPoints.ts",
"frontend-modern/src/types/recovery.ts",
"frontend-modern/src/utils/recoveryArtifactModePresentation.ts",
@@ -4921,10 +4925,14 @@
"label": "proxmox backup product surface proof",
"match_prefixes": [],
"match_files": [
+ "frontend-modern/src/features/proxmox/BackupActivityChart.tsx",
+ "frontend-modern/src/features/proxmox/proxmoxBackupActivityPresentation.ts",
"frontend-modern/src/features/proxmox/proxmoxBackupRecoveryModel.ts",
"frontend-modern/src/features/proxmox/ProxmoxBackupsCoverageStrip.tsx",
+ "frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx",
"frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx",
- "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx"
+ "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx",
+ "frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx"
],
"allow_same_subsystem_tests": false,
"test_prefixes": [],
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index e834109c1c..6b6dc89765 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -43,10 +43,14 @@ state.
14. `frontend-modern/src/utils/storageSummaryCache.ts`
15. `frontend-modern/src/components/Storage/useStorageSummaryCharts.ts`
16. `frontend-modern/src/features/storageBackups/storageCapacityDeltaPresentation.ts`
-17. `frontend-modern/src/features/proxmox/ProxmoxBackupsCoverageStrip.tsx`
-18. `frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx`
+17. `frontend-modern/src/features/proxmox/BackupActivityChart.tsx`
+18. `frontend-modern/src/features/proxmox/proxmoxBackupActivityPresentation.ts`
19. `frontend-modern/src/features/proxmox/proxmoxBackupRecoveryModel.ts`
-20. `frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx`
+20. `frontend-modern/src/features/proxmox/ProxmoxBackupsCoverageStrip.tsx`
+21. `frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx`
+22. `frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx`
+23. `frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx`
+24. `frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx`
## Shared Boundaries
@@ -83,17 +87,20 @@ protection, verification, namespace, owner, and file facts from
`models.PBSBackup`. PVE snapshot, storage-archive, and task tables consume
`/api/backups/pve` and must keep columns source-aware: columns that PVE cannot
populate for the current data set are omitted rather than rendered as all-dash
-placeholders. The Proxmox Backups tab owns a workload-level coverage view and a
-cross-source restore-point inventory as its primary operator workflows; raw
-PBS, snapshot, and backup-file tables remain a secondary source-detail drilldown
-for audit evidence instead of equal-weight primary destinations. Those aggregate
+placeholders. The Proxmox Backups tab owns two primary operator workflows: a
+default chronological `By date` recoverable-artifact feed with daily activity
+summaries, and a `By guest` workload coverage table for current live guest
+posture. Raw PBS, snapshot, and backup-file facts remain source-visible inside
+those aggregate workflows rather than equal-weight source browser tabs. Those
views may correlate unified-resource workload identity with PBS artifacts, PVE
backup archives, guest snapshots, and backup tasks, but they must keep each
artifact's source visible and must not flatten PBS verification/protection facts
into PVE archive or snapshot semantics. Workload coverage posture must be
derived from real recovery evidence and recent task outcomes, including
explicit uncovered and failed-latest-task states, rather than from source-detail
-row counts alone.
+row counts alone. PBS server/datastore rows may display backup counts, but the
+counts must come from the PBS backup API artifact identity, not from a
+datastore-capacity approximation.
The Proxmox overview workload table's Backup column is the primary
glance-level protection signal for current guests. It must remain visible,
dense, and backed by the canonical guest `LastBackup` synchronization from PVE
diff --git a/frontend-modern/src/features/proxmox/BackupActivityChart.tsx b/frontend-modern/src/features/proxmox/BackupActivityChart.tsx
new file mode 100644
index 0000000000..b59d10a3a9
--- /dev/null
+++ b/frontend-modern/src/features/proxmox/BackupActivityChart.tsx
@@ -0,0 +1,371 @@
+import { createSignal, For, Show } from 'solid-js';
+import type { Accessor, Component } from 'solid-js';
+
+import { TooltipPortal } from '@/components/shared/TooltipPortal';
+import {
+ SUMMARY_CHART_PLOT_AREA_CLASS,
+ SUMMARY_CHART_SLOT_COMPACT_CLASS,
+} from '@/components/shared/summaryChartLayout';
+import {
+ getRecoveryCompactAxisLabel,
+ getRecoveryPrettyDateLabel,
+} from '@/utils/recoveryDatePresentation';
+import {
+ getRecoveryTimelineAxisLabelClass,
+ getRecoveryTimelineAxisTicks,
+ getRecoveryTimelineChartGapPx,
+ getRecoveryTimelineChartMinWidthPx,
+ RECOVERY_TIMELINE_LEGEND_ITEM_CLASS,
+} from '@/utils/recoveryTimelineChartPresentation';
+import {
+ getRecoveryTimelineBarMarkerClass,
+ getRecoveryTimelineColumnButtonClass,
+ getRecoveryTimelineEmptyMarkerClass,
+} from '@/utils/recoveryTimelinePresentation';
+
+import {
+ BACKUP_ACTIVITY_RANGE_DAYS,
+ getBackupActivityAxisLabel,
+ getBackupActivityColumnAriaLabel,
+ getBackupActivityDayFilterStateLabel,
+ getBackupActivityPointTotalLabel,
+ getBackupActivitySegmentPresentation,
+ getBackupActivityTooltipRows,
+ type BackupActivityMetricMode,
+ type BackupActivityNoun,
+ type BackupActivityPoint,
+ type BackupActivityRangeDays,
+ type BackupActivitySegmentKind,
+ type BackupActivityTimeline,
+} from './proxmoxBackupActivityPresentation';
+
+interface TooltipState {
+ dateLabel: string;
+ point: BackupActivityPoint;
+ x: number;
+ y: number;
+}
+
+export interface BackupActivityChartMetricToggle {
+ mode: Accessor<BackupActivityMetricMode>;
+ onChange: (mode: BackupActivityMetricMode) => void;
+}
+
+interface BackupActivityChartProps {
+ title: string;
+ noun: BackupActivityNoun;
+ segmentKinds: readonly BackupActivitySegmentKind[];
+ range: Accessor<BackupActivityRangeDays>;
+ onRangeChange: (days: BackupActivityRangeDays) => void;
+ timeline: Accessor<BackupActivityTimeline>;
+ selectedDateKey: Accessor<string | null>;
+ onToggleDay: (key: string) => void;
+ metricMode?: Accessor<BackupActivityMetricMode>;
+ metricToggle?: BackupActivityChartMetricToggle;
+}
+
+export const BackupActivityChart: Component<BackupActivityChartProps> = (props) => {
+ const [tooltip, setTooltip] = createSignal<TooltipState | null>(null);
+
+ const points = () => props.timeline().points;
+ const axisMax = () => props.timeline().axisMax;
+ const hasSelection = () => props.selectedDateKey() !== null;
+ const metricMode = (): BackupActivityMetricMode =>
+ props.metricMode?.() ?? props.metricToggle?.mode() ?? 'count';
+
+ const axisTicks = () =>
+ getRecoveryTimelineAxisTicks(points().length, false, props.timeline().labelEvery);
+
+ const chartMinWidthStyle = () => {
+ const minWidth = getRecoveryTimelineChartMinWidthPx(false, props.range(), points().length);
+ return minWidth > 0 ? `${minWidth}px` : '100%';
+ };
+
+ const chartGapStyle = () => `${getRecoveryTimelineChartGapPx(props.range())}px`;
+
+ const showTooltip = (target: HTMLElement, point: BackupActivityPoint, dateLabel: string) => {
+ const rect = target.getBoundingClientRect();
+ setTooltip({
+ dateLabel,
+ point,
+ x: rect.left + rect.width / 2,
+ y: rect.top,
+ });
+ };
+ const hideTooltip = () => setTooltip(null);
+
+ return (
+ <div class="rounded-lg border border-border-subtle bg-surface-alt/25 px-2 py-2">
+ <div class="mb-2 flex flex-col gap-1.5 lg:flex-row lg:items-center lg:justify-between">
+ <div class="flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1 text-[11px] text-muted">
+ <div class="font-semibold uppercase tracking-[0.18em] text-muted">{props.title}</div>
+ <Show when={props.segmentKinds.length > 1}>
+ <For each={props.segmentKinds}>
+ {(kind) => {
+ const presentation = getBackupActivitySegmentPresentation(kind);
+ return (
+ <span class={RECOVERY_TIMELINE_LEGEND_ITEM_CLASS}>
+ <span class={`h-2.5 w-2.5 rounded ${presentation.swatchClassName}`} />
+ {presentation.label}
+ </span>
+ );
+ }}
+ </For>
+ </Show>
+ </div>
+ <div class="flex flex-wrap items-center gap-2 text-[11px]">
+ <Show when={props.metricToggle}>
+ <div
+ role="group"
+ aria-label="Activity metric"
+ class="inline-flex shrink-0 rounded border border-border bg-surface p-0.5"
+ >
+ <For each={['count', 'volume'] as const}>
+ {(mode) => {
+ const selected = () => props.metricToggle?.mode() === mode;
+ return (
+ <button
+ type="button"
+ class={`rounded px-2 py-1 font-medium transition-colors ${
+ selected()
+ ? 'bg-surface-hover text-base-content'
+ : 'text-muted hover:bg-surface-hover hover:text-base-content'
+ }`}
+ aria-pressed={selected() ? 'true' : 'false'}
+ onClick={() => props.metricToggle?.onChange(mode)}
+ >
+ {mode === 'count' ? 'Count' : 'Volume'}
+ </button>
+ );
+ }}
+ </For>
+ </div>
+ </Show>
+ <div
+ role="group"
+ aria-label="Activity range"
+ class="inline-flex shrink-0 rounded border border-border bg-surface p-0.5"
+ >
+ <For each={BACKUP_ACTIVITY_RANGE_DAYS}>
+ {(days) => {
+ const selected = () => props.range() === days;
+ return (
+ <button
+ type="button"
+ class={`rounded px-2 py-1 font-medium transition-colors ${
+ selected()
+ ? 'bg-surface-hover text-base-content'
+ : 'text-muted hover:bg-surface-hover hover:text-base-content'
+ }`}
+ aria-pressed={selected() ? 'true' : 'false'}
+ onClick={() => props.onRangeChange(days)}
+ >
+ {days === 365 ? '1y' : `${days}d`}
+ </button>
+ );
+ }}
+ </For>
+ </div>
+ </div>
+ </div>
+
+ <Show
+ when={points().length > 0}
+ fallback={
+ <div class="flex h-24 items-center justify-center text-xs text-muted">
+ No activity in the selected window.
+ </div>
+ }
+ >
+ <div class="relative">
+ <div class="grid grid-cols-[auto_minmax(0,1fr)] gap-2">
+ <div
+ class={`flex ${SUMMARY_CHART_PLOT_AREA_CLASS} flex-col justify-between text-[10px] text-muted tabular-nums`}
+ >
+ <For each={[0, 1, 2]}>
+ {(step) => {
+ const value = () => (axisMax() * (2 - step)) / 2;
+ return <span>{getBackupActivityAxisLabel(value(), metricMode())}</span>;
+ }}
+ </For>
+ </div>
+
+ <div class="overflow-x-auto overscroll-x-contain pb-1">
+ <div
+ class={`relative ${SUMMARY_CHART_SLOT_COMPACT_CLASS}`}
+ style={{ 'min-width': chartMinWidthStyle() }}
+ >
+ <div
+ class="absolute inset-x-0 bottom-4 top-0 flex items-stretch"
+ style={{ gap: chartGapStyle() }}
+ >
+ <For each={points()}>
+ {(point) => {
+ const total = () => point.total;
+ const heightPct = () =>
+ axisMax() > 0 ? Math.min(100, (total() / axisMax()) * 100) : 0;
+ const isSelected = () => props.selectedDateKey() === point.key;
+ const dateLabel = getRecoveryPrettyDateLabel(point.key);
+
+ return (
+ <div class="min-w-[3px] flex-1 self-stretch">
+ <button
+ type="button"
+ class={`h-full w-full ${getRecoveryTimelineColumnButtonClass(
+ isSelected(),
+ hasSelection(),
+ )}`}
+ aria-label={getBackupActivityColumnAriaLabel(
+ dateLabel,
+ total(),
+ isSelected(),
+ props.noun,
+ metricMode(),
+ )}
+ aria-pressed={isSelected() ? 'true' : 'false'}
+ onClick={() => props.onToggleDay(point.key)}
+ onMouseEnter={(event) =>
+ showTooltip(event.currentTarget, point, dateLabel)
+ }
+ onMouseLeave={hideTooltip}
+ onFocus={(event) => showTooltip(event.currentTarget, point, dateLabel)}
+ onBlur={hideTooltip}
+ >
+ <div class="relative h-full w-full overflow-hidden rounded-sm">
+ <Show
+ when={total() > 0}
+ fallback={
+ <div
+ class={getRecoveryTimelineEmptyMarkerClass(
+ isSelected(),
+ hasSelection(),
+ )}
+ />
+ }
+ >
+ <div
+ class={getRecoveryTimelineBarMarkerClass(
+ isSelected(),
+ hasSelection(),
+ )}
+ style={{ height: `${heightPct()}%` }}
+ >
+ <For each={props.segmentKinds}>
+ {(kind) => {
+ const count = () => point.counts[kind] ?? 0;
+ const segmentPct = () =>
+ total() > 0 ? (count() / total()) * 100 : 0;
+ return (
+ <Show when={segmentPct() > 0}>
+ <div
+ class={`w-full ${getBackupActivitySegmentPresentation(kind).segmentClassName}`}
+ style={{ height: `${segmentPct()}%` }}
+ />
+ </Show>
+ );
+ }}
+ </For>
+ </div>
+ </Show>
+ </div>
+ </button>
+ </div>
+ );
+ }}
+ </For>
+ </div>
+
+ <div class="pointer-events-none absolute inset-x-0 bottom-0 h-4">
+ <For each={axisTicks()}>
+ {(tick) => {
+ const point = points()[tick.index];
+ const isSelected = () =>
+ point ? props.selectedDateKey() === point.key : false;
+ const alignmentClass =
+ tick.align === 'start'
+ ? 'left-0 text-left'
+ : tick.align === 'end'
+ ? 'left-full -translate-x-full text-right'
+ : '-translate-x-1/2 text-center';
+ return (
+ <Show when={point}>
+ <span
+ class={`absolute bottom-0 whitespace-nowrap text-[9px] ${getRecoveryTimelineAxisLabelClass(isSelected())} ${alignmentClass}`}
+ style={{ left: `${tick.positionPct}%` }}
+ >
+ {getRecoveryCompactAxisLabel(point!.key, props.range())}
+ </span>
+ </Show>
+ );
+ }}
+ </For>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <TooltipPortal
+ when={tooltip() !== null}
+ x={tooltip()?.x ?? 0}
+ y={tooltip()?.y ?? 0}
+ align="center"
+ direction="up"
+ maxWidth={240}
+ >
+ <Show when={tooltip()}>
+ {(t) => (
+ <div class="min-w-[180px]">
+ <div class="flex items-start justify-between gap-3 border-b border-border pb-1">
+ <div class="min-w-0">
+ <div class="truncate text-[11px] font-semibold text-base-content">
+ {t().dateLabel}
+ </div>
+ <div class="mt-0.5 text-[10px] text-muted">
+ {getBackupActivityPointTotalLabel(
+ t().point.total,
+ props.noun,
+ metricMode(),
+ )}
+ </div>
+ </div>
+ <div class="shrink-0 rounded border border-border bg-surface-alt px-1.5 py-0.5 text-[9px] font-medium text-muted">
+ {getBackupActivityDayFilterStateLabel(
+ props.selectedDateKey() === t().point.key,
+ hasSelection(),
+ )}
+ </div>
+ </div>
+ <ul class="mt-1.5 space-y-1">
+ <For
+ each={getBackupActivityTooltipRows(
+ t().point,
+ props.segmentKinds,
+ metricMode(),
+ )}
+ >
+ {(row) => (
+ <li
+ class={`flex items-center justify-between gap-4 ${
+ row.muted ? 'text-muted/70' : 'text-base-content'
+ }`}
+ >
+ <span class="flex min-w-0 items-center gap-1.5">
+ <span class={`h-2 w-2 shrink-0 rounded-sm ${row.segmentClassName}`} />
+ <span class="truncate">{row.label}</span>
+ </span>
+ <span class="shrink-0 font-mono tabular-nums">{row.value}</span>
+ </li>
+ )}
+ </For>
+ </ul>
+ </div>
+ )}
+ </Show>
+ </TooltipPortal>
+ </div>
+ </Show>
+ </div>
+ );
+};
+
+export default BackupActivityChart;
diff --git a/frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx
index a938410cd6..9f5151e4a4 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx
@@ -18,6 +18,7 @@ import {
getPlatformTableCellClassForKind,
getPlatformTableHeadClassForKind,
} from '@/features/platformPage/sharedPlatformPage';
+import type { PBSBackup } from '@/types/api';
import type { Resource, ResourcePBSDatastore } from '@/types/resource';
import type { StatusIndicatorVariant } from '@/utils/status';
@@ -35,6 +36,17 @@ interface BackupServerRow {
connectionLabel: string;
version?: string;
datastore?: ResourcePBSDatastore;
+ backupCount: number;
+}
+
+// Key by instance and datastore so multi-datastore servers get accurate counts.
+function buildBackupCounts(backups: readonly PBSBackup[]): Map<string, number> {
+ const counts = new Map<string, number>();
+ for (const backup of backups) {
+ const key = `${backup.instance ?? ''}::${backup.datastore ?? ''}`;
+ counts.set(key, (counts.get(key) ?? 0) + 1);
+ }
+ return counts;
}
function serverIsOnline(resource: Resource): boolean {
@@ -71,8 +83,21 @@ function usageToneClass(pct: number | undefined): string {
return 'text-base-content';
}
-export function buildBackupServerRows(servers: readonly Resource[]): BackupServerRow[] {
+export function buildBackupServerRows(
+ servers: readonly Resource[],
+ backups: readonly PBSBackup[] = [],
+): BackupServerRow[] {
const rows: BackupServerRow[] = [];
+ const counts = buildBackupCounts(backups);
+ // PBS backups carry instance; resources may expose it under name or pbs.instanceId.
+ const countFor = (server: Resource, datastoreName: string): number => {
+ const ids = [server.name, server.pbs?.instanceId].filter(Boolean) as string[];
+ for (const id of ids) {
+ const n = counts.get(`${id}::${datastoreName}`);
+ if (n !== undefined) return n;
+ }
+ return 0;
+ };
// `model().pbs` is scope-filtered (proxmox-pbs), which also catches PBS
// *datastore* storage resources (type 'storage', sources ['pbs']). This table
// is about the server, so keep only actual PBS server instances — otherwise a
@@ -86,6 +111,7 @@ export function buildBackupServerRows(servers: readonly Resource[]): BackupServe
online: serverIsOnline(server),
connectionLabel: connectionLabel(server),
version: server.pbs?.version,
+ backupCount: 0,
});
continue;
}
@@ -97,6 +123,7 @@ export function buildBackupServerRows(servers: readonly Resource[]): BackupServe
connectionLabel: connectionLabel(server),
version: server.pbs?.version,
datastore,
+ backupCount: countFor(server, datastore.name),
});
}
}
@@ -105,21 +132,23 @@ export function buildBackupServerRows(servers: readonly Resource[]): BackupServe
export function ProxmoxBackupServersTable(props: {
servers: readonly Resource[];
+ backups?: readonly PBSBackup[];
emptyIcon?: JSX.Element;
}) {
- const rows = () => buildBackupServerRows(props.servers);
+ const rows = () => buildBackupServerRows(props.servers, props.backups ?? []);
return (
<Show when={rows().length > 0}>
<TableCard class={PLATFORM_TABLE_CARD_CLASS}>
- <Table class="min-w-[760px] table-fixed text-xs">
+ <Table class="min-w-[820px] table-fixed text-xs">
<colgroup>
- <col style={{ width: '22%' }} />
- <col style={{ width: '14%' }} />
- <col style={{ width: '12%' }} />
<col style={{ width: '20%' }} />
- <col style={{ width: '22%' }} />
- <col style={{ width: '10%' }} />
+ <col style={{ width: '13%' }} />
+ <col style={{ width: '11%' }} />
+ <col style={{ width: '18%' }} />
+ <col style={{ width: '20%' }} />
+ <col style={{ width: '9%' }} />
+ <col style={{ width: '9%' }} />
</colgroup>
<TableHeader>
<TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
@@ -128,6 +157,9 @@ export function ProxmoxBackupServersTable(props: {
<TableHead class={getPlatformTableHeadClassForKind('text')}>Version</TableHead>
<TableHead class={getPlatformTableHeadClassForKind('text')}>Datastore</TableHead>
<TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>Used</TableHead>
+ <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>
+ Backups
+ </TableHead>
<TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>Dedup</TableHead>
</TableRow>
</TableHeader>
@@ -190,6 +222,13 @@ export function ProxmoxBackupServersTable(props: {
)}
</Show>
</TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content tabular-nums`}
+ >
+ <Show when={row.datastore} fallback={<span class="text-muted">—</span>}>
+ {row.backupCount.toLocaleString()}
+ </Show>
+ </TableCell>
<TableCell
class={`${getPlatformTableCellClassForKind('numeric-value')} text-muted tabular-nums text-[11px]`}
>
diff --git a/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx
index 49fa2f6467..0c6f0048dc 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx
@@ -1,18 +1,17 @@
-import {
- Show,
- createMemo,
- createResource,
- createSignal,
- type Component,
- type JSX,
-} from 'solid-js';
+import { Show, createMemo, createResource, createSignal, type Component, type JSX } from 'solid-js';
import ChevronRightIcon from 'lucide-solid/icons/chevron-right';
+import CalendarIcon from 'lucide-solid/icons/calendar';
+import ShieldCheckIcon from 'lucide-solid/icons/shield-check';
import { Card } from '@/components/shared/Card';
import { EmptyState } from '@/components/shared/EmptyState';
import { useSearchParams } from '@solidjs/router';
import { FilterBar, type FilterDef, type FilterSelectOption } from '@/components/shared/FilterBar';
import { useBreakpoint } from '@/hooks/useBreakpoint';
import { apiFetch } from '@/utils/apiClient';
+import {
+ getRecoveryFilterDateLabel,
+ recoveryDateKeyFromTimestamp,
+} from '@/utils/recoveryDatePresentation';
import type {
BackupTask,
GuestSnapshot,
@@ -24,36 +23,44 @@ import type {
StorageBackup,
} from '@/types/api';
import type { Resource } from '@/types/resource';
+import { BackupActivityChart } from './BackupActivityChart';
+import {
+ buildBackupActivityTimeline,
+ type BackupActivityMetricMode,
+ type BackupActivityRangeDays,
+ type BackupActivitySegmentKind,
+} from './proxmoxBackupActivityPresentation';
import {
buildProxmoxBackupRecoveryModel,
coverageRowMatchesSearch,
isCoverageAttention,
+ recoverableArtifactMatchesSearch,
+ type RecoverableArtifact,
} from './proxmoxBackupRecoveryModel';
import {
COVERAGE_SORT_DEFAULT_DIRECTION,
+ RECOVERABLE_SORT_DEFAULT_DIRECTION,
cmpNumber,
cmpString,
type CoverageFilterValue,
type CoverageSortKey,
+ type RecoverableFilterValue,
+ type RecoverableSortKey,
} from './proxmoxBackupsTableModel';
-import { COVERAGE_FILTERS } from './proxmoxBackupsTableShared';
+import {
+ COVERAGE_FILTERS,
+ RECOVERABLE_FILTERS,
+ artifactStateLabel,
+} from './proxmoxBackupsTableShared';
import { ProxmoxBackupsCoverageStrip } from './ProxmoxBackupsCoverageStrip';
import { ProxmoxBackupServersTable } from './ProxmoxBackupServersTable';
import { ProxmoxCoverageTable } from './ProxmoxCoverageTable';
+import { ProxmoxRecoverableTable } from './ProxmoxRecoverableTable';
-// The Proxmox backups surface answers one operator question: "is every guest
-// backed up, recently, and did the last job work?" That question IS the whole
-// surface — one row per workload, a posture dot, the latest restore point, and
-// the per-source evidence (PBS snapshots, PVE archives, guest snapshots) tucked
-// into each row's expansion for anyone who wants to drill in.
-//
-// The earlier per-source browsers (PBS artifacts / Snapshots / Backup files),
-// the "Restore points" and "Job history" tabs, and the per-day activity charts
-// were removed deliberately. A monitor is not a console: the live PBS and PVE
-// web UIs already own the forensic per-artifact view, and reproducing it
-// read-only here only buried the one question a backup monitor exists to
-// answer. Nothing was deleted that a power user needs — the evidence lives in
-// the row expansion (demote, not delete).
+// One backups surface, two operator views: a chronological recoverable-artifact
+// feed for "what ran when", and a guest coverage table for "what is protected".
+
+type BackupView = 'date' | 'guest';
async function fetchPVEBackups(): Promise<PVEBackupsPayload> {
const response = await apiFetch('/api/backups/pve');
@@ -90,10 +97,12 @@ export const ProxmoxBackupsTable: Component<{
// Structured scope filters (node, type) live in the URL so the view is
// shareable, survives reload, and can be captured by FilterBar saved views.
- // Search and the posture facet stay ephemeral signals.
+ // Search, the view toggle, and status facets stay ephemeral signals.
const [searchParams, setSearchParams] = useSearchParams();
const [search, setSearch] = createSignal('');
+ const [view, setView] = createSignal<BackupView>('date');
const [coverageFilter, setCoverageFilter] = createSignal<CoverageFilterValue>('all');
+ const [recoverableFilter, setRecoverableFilter] = createSignal<RecoverableFilterValue>('all');
const nodeFilter = (): string => (typeof searchParams.node === 'string' ? searchParams.node : '');
const setNodeFilter = (value: string): void => setSearchParams({ node: value || null });
@@ -134,6 +143,16 @@ export const ProxmoxBackupsTable: Component<{
// pile of nameless dead records sorted to the top.
const [showOrphaned, setShowOrphaned] = createSignal(false);
+ // Chronological feed sort and activity-chart controls.
+ const [recoverableSortKey, setRecoverableSortKey] = createSignal<RecoverableSortKey>('created');
+ const [recoverableSortDirection, setRecoverableSortDirection] = createSignal<'asc' | 'desc'>(
+ 'desc',
+ );
+ const [chartRange, setChartRange] = createSignal<BackupActivityRangeDays>(30);
+ const [selectedDateKey, setSelectedDateKey] = createSignal<string | null>(null);
+ const [recoverableMetricMode, setRecoverableMetricMode] =
+ createSignal<BackupActivityMetricMode>('count');
+
const handleCoverageSort = (key: CoverageSortKey) => {
if (coverageSortKey() === key) {
setCoverageSortDirection(coverageSortDirection() === 'asc' ? 'desc' : 'asc');
@@ -142,6 +161,14 @@ export const ProxmoxBackupsTable: Component<{
setCoverageSortDirection(COVERAGE_SORT_DEFAULT_DIRECTION[key]);
}
};
+ const handleRecoverableSort = (key: RecoverableSortKey) => {
+ if (recoverableSortKey() === key) {
+ setRecoverableSortDirection(recoverableSortDirection() === 'asc' ? 'desc' : 'asc');
+ } else {
+ setRecoverableSortKey(key);
+ setRecoverableSortDirection(RECOVERABLE_SORT_DEFAULT_DIRECTION[key]);
+ }
+ };
const toggleCoverageExpansion = (key: string) =>
setExpandedCoverageRows((current) => {
const next = new Set(current);
@@ -149,6 +176,8 @@ export const ProxmoxBackupsTable: Component<{
else next.add(key);
return next;
});
+ const toggleDay = (key: string) =>
+ setSelectedDateKey((current) => (current === key ? null : key));
const pbsArtifacts = createMemo<PBSBackup[]>(() => pbsBackups()?.backups ?? []);
const snapshots = createMemo<GuestSnapshot[]>(() => backups()?.guestSnapshots ?? []);
@@ -181,7 +210,9 @@ export const ProxmoxBackupsTable: Component<{
}
return [
{ value: '', label: 'All nodes' },
- ...[...nodes].sort((a, b) => a.localeCompare(b)).map((node) => ({ value: node, label: node })),
+ ...[...nodes]
+ .sort((a, b) => a.localeCompare(b))
+ .map((node) => ({ value: node, label: node })),
];
});
@@ -265,40 +296,142 @@ export const ProxmoxBackupsTable: Component<{
};
});
- // FilterBar catalog: Node + Type scope filters (in the "+ Filter" menu) and
- // the posture facet as an inline segmented control, matching the overview /
- // workloads / storage pages.
- const buildBackupsFilters = (): FilterDef[] => [
- {
- id: 'node',
- label: 'Node',
- group: 'scope',
- options: nodeOptions,
- value: nodeFilter,
- setValue: setNodeFilter,
- defaultValue: '',
- },
- {
- id: 'type',
- label: 'Type',
- group: 'scope',
- options: () => typeFilterOptions,
- value: typeFilter,
- setValue: setTypeFilter,
- defaultValue: '',
- },
- {
- id: 'posture',
- label: 'Posture',
- group: 'status',
- inline: true,
- options: () => COVERAGE_FILTERS,
- value: coverageFilter,
- setValue: (v) => setCoverageFilter(v as CoverageFilterValue),
- defaultValue: 'all',
- },
+ // Recoverable artifact feed: PBS, PVE archive, and guest snapshot rows.
+ const RECOVERABLE_SEGMENT_KINDS: readonly BackupActivitySegmentKind[] = [
+ 'pbs',
+ 'archive',
+ 'snapshot',
];
+ const recoverableTimeline = createMemo(() =>
+ buildBackupActivityTimeline<RecoverableArtifact>(
+ chartRange(),
+ recoveryModel().recoverableArtifacts,
+ (artifact) => artifact.createdMs,
+ (artifact) =>
+ artifact.sourceKind === 'pbs'
+ ? 'pbs'
+ : artifact.sourceKind === 'archive'
+ ? 'archive'
+ : 'snapshot',
+ {
+ getValue:
+ recoverableMetricMode() === 'volume'
+ ? (artifact) => (artifact.size && artifact.size > 0 ? artifact.size : 0)
+ : undefined,
+ },
+ ),
+ );
+
+ const filteredRecoverableArtifacts = createMemo(() => {
+ const term = search().trim().toLowerCase();
+ const filter = recoverableFilter();
+ const dateKey = selectedDateKey();
+ const list = recoveryModel().recoverableArtifacts.filter((artifact) => {
+ if (!nodeMatches(artifact.workload.node)) return false;
+ if (!typeMatches(artifact.workload.type)) return false;
+ if (
+ (filter === 'pbs' || filter === 'archive' || filter === 'snapshot') &&
+ artifact.sourceKind !== filter
+ ) {
+ return false;
+ }
+ if (filter === 'verified' && artifact.verified !== true) return false;
+ if (filter === 'unverified' && artifact.verified !== false) return false;
+ if (
+ dateKey &&
+ (artifact.createdMs === undefined ||
+ recoveryDateKeyFromTimestamp(artifact.createdMs) !== dateKey)
+ ) {
+ return false;
+ }
+ return recoverableArtifactMatchesSearch(artifact, term);
+ });
+ const sortKey = recoverableSortKey();
+ const direction = recoverableSortDirection();
+ list.sort((a, b) => {
+ switch (sortKey) {
+ case 'workload':
+ return cmpString(a.workload.label, b.workload.label, direction);
+ case 'source':
+ return cmpString(a.sourceLabel, b.sourceLabel, direction);
+ case 'location':
+ return cmpString(a.location, b.location, direction);
+ case 'created':
+ return cmpNumber(a.createdMs, b.createdMs, direction);
+ case 'size':
+ return cmpNumber(a.size, b.size, direction);
+ case 'state':
+ return cmpString(artifactStateLabel(a), artifactStateLabel(b), direction);
+ }
+ });
+ return list;
+ });
+
+ const recoverableSizeMaxBytes = createMemo(() => {
+ let max = 0;
+ for (const artifact of filteredRecoverableArtifacts()) {
+ if (artifact.size && artifact.size > max) max = artifact.size;
+ }
+ return max;
+ });
+
+ const totalRecoverableCount = createMemo(() => recoveryModel().recoverableArtifacts.length);
+ const visibleRecoverableCount = createMemo(() => filteredRecoverableArtifacts().length);
+
+ // Shared scope filters plus the per-view inline facet.
+ const buildBackupsFilters = (): FilterDef[] => {
+ const filters: FilterDef[] = [
+ {
+ id: 'node',
+ label: 'Node',
+ group: 'scope',
+ options: nodeOptions,
+ value: nodeFilter,
+ setValue: setNodeFilter,
+ defaultValue: '',
+ },
+ {
+ id: 'type',
+ label: 'Type',
+ group: 'scope',
+ options: () => typeFilterOptions,
+ value: typeFilter,
+ setValue: setTypeFilter,
+ defaultValue: '',
+ },
+ ];
+ if (view() === 'date') {
+ filters.push({
+ id: 'source',
+ label: 'Source',
+ group: 'status',
+ inline: true,
+ options: () => RECOVERABLE_FILTERS,
+ value: recoverableFilter,
+ setValue: (v) => setRecoverableFilter(v as RecoverableFilterValue),
+ defaultValue: 'all',
+ });
+ } else {
+ filters.push({
+ id: 'posture',
+ label: 'Posture',
+ group: 'status',
+ inline: true,
+ options: () => COVERAGE_FILTERS,
+ value: coverageFilter,
+ setValue: (v) => setCoverageFilter(v as CoverageFilterValue),
+ defaultValue: 'all',
+ });
+ }
+ return filters;
+ };
+
+ const viewButtonClass = (active: boolean): string =>
+ `inline-flex min-h-8 items-center gap-1.5 rounded-sm px-3 text-xs font-medium transition-colors ${
+ active ? 'bg-surface-hover text-base-content' : 'text-muted hover:text-base-content'
+ }`;
+
return (
<Show
when={!backups.error}
@@ -335,48 +468,113 @@ export const ProxmoxBackupsTable: Component<{
>
<div class="space-y-3">
<Show when={(props.servers?.length ?? 0) > 0}>
- <ProxmoxBackupServersTable servers={props.servers ?? []} />
+ <ProxmoxBackupServersTable servers={props.servers ?? []} backups={pbsArtifacts()} />
</Show>
- <ProxmoxBackupsCoverageStrip
- title="Backup health"
- tail={
- <span>
- {liveTotalCount()} guests ·{' '}
- {recoveryModel().coverageSummary.recoverableArtifacts} restore points
- <Show when={recoveryModel().coverageSummary.withPBS > 0}>
- {' · '}
- {recoveryModel().coverageSummary.withPBS} with PBS
+ <Show
+ when={view() === 'guest'}
+ fallback={
+ <div class="flex flex-wrap items-center gap-x-2 gap-y-1 px-1 text-[11px] text-muted">
+ <span class="font-semibold uppercase tracking-[0.18em]">Backup health</span>
+ <span class="text-base-content tabular-nums">{liveTotalCount()} guests</span>
+ <span aria-hidden="true">·</span>
+ <span class="tabular-nums">
+ {recoveryModel().coverageSummary.recoverableArtifacts} restore points
+ </span>
+ <Show when={liveHealthSummary().attention > 0}>
+ <span aria-hidden="true">·</span>
+ <span class="text-amber-600 tabular-nums dark:text-amber-300">
+ {liveHealthSummary().attention} need attention
+ </span>
</Show>
<Show when={orphanedTotalCount() > 0}>
- {' · '}
- {orphanedTotalCount()} orphaned
+ <span aria-hidden="true">·</span>
+ <span class="tabular-nums">{orphanedTotalCount()} orphaned</span>
</Show>
- </span>
+ </div>
}
- segments={[
- {
- key: 'current',
- value: liveHealthSummary().current,
- label: 'current',
- toneClass: 'bg-emerald-500',
- },
- {
- key: 'attention',
- value: liveHealthSummary().attention,
- label: 'attention',
- toneClass: 'bg-amber-500',
- muted: liveHealthSummary().attention === 0,
- },
- {
- key: 'uncovered',
- value: liveHealthSummary().uncovered,
- label: 'uncovered',
- toneClass: 'bg-red-500',
- muted: liveHealthSummary().uncovered === 0,
- },
- ]}
- />
+ >
+ <ProxmoxBackupsCoverageStrip
+ title="Backup health"
+ tail={
+ <span>
+ {liveTotalCount()} guests · {recoveryModel().coverageSummary.recoverableArtifacts}{' '}
+ restore points
+ <Show when={recoveryModel().coverageSummary.withPBS > 0}>
+ {' · '}
+ {recoveryModel().coverageSummary.withPBS} with PBS
+ </Show>
+ <Show when={orphanedTotalCount() > 0}>
+ {' · '}
+ {orphanedTotalCount()} orphaned
+ </Show>
+ </span>
+ }
+ segments={[
+ {
+ key: 'current',
+ value: liveHealthSummary().current,
+ label: 'current',
+ toneClass: 'bg-emerald-500',
+ },
+ {
+ key: 'attention',
+ value: liveHealthSummary().attention,
+ label: 'attention',
+ toneClass: 'bg-amber-500',
+ muted: liveHealthSummary().attention === 0,
+ },
+ {
+ key: 'uncovered',
+ value: liveHealthSummary().uncovered,
+ label: 'uncovered',
+ toneClass: 'bg-red-500',
+ muted: liveHealthSummary().uncovered === 0,
+ },
+ ]}
+ />
+ </Show>
+
+ <div
+ role="group"
+ aria-label="Backups view"
+ class="inline-flex items-center gap-1 rounded-md border border-border bg-surface p-1"
+ >
+ <button
+ type="button"
+ class={viewButtonClass(view() === 'date')}
+ aria-pressed={view() === 'date'}
+ onClick={() => setView('date')}
+ >
+ <CalendarIcon class="h-4 w-4" aria-hidden="true" />
+ <span>By date</span>
+ </button>
+ <button
+ type="button"
+ class={viewButtonClass(view() === 'guest')}
+ aria-pressed={view() === 'guest'}
+ onClick={() => setView('guest')}
+ >
+ <ShieldCheckIcon class="h-4 w-4" aria-hidden="true" />
+ <span>By guest</span>
+ </button>
+ </div>
+
+ <Show when={view() === 'date' && recoveryModel().recoverableArtifacts.length > 0}>
+ <BackupActivityChart
+ title={
+ recoverableMetricMode() === 'volume' ? 'Backup volume per day' : 'Backups per day'
+ }
+ noun="artifact"
+ segmentKinds={RECOVERABLE_SEGMENT_KINDS}
+ range={chartRange}
+ onRangeChange={setChartRange}
+ timeline={recoverableTimeline}
+ selectedDateKey={selectedDateKey}
+ onToggleDay={toggleDay}
+ metricToggle={{ mode: recoverableMetricMode, onChange: setRecoverableMetricMode }}
+ />
+ </Show>
<FilterBar
role="group"
@@ -385,80 +583,125 @@ export const ProxmoxBackupsTable: Component<{
search={{
value: search,
setValue: setSearch,
- placeholder: 'Search backups by workload, node, or status',
+ placeholder: 'Search backups by workload, node, source, or status',
}}
filters={buildBackupsFilters()}
savedViewsKey="proxmox-backups"
+ searchTrailing={
+ <Show when={view() === 'date' && selectedDateKey() !== null}>
+ <button
+ type="button"
+ onClick={() => setSelectedDateKey(null)}
+ class="inline-flex items-center gap-1 rounded-full border border-blue-300 bg-blue-50 px-2 py-0.5 text-[11px] font-medium text-blue-700 transition-colors hover:bg-blue-100 dark:border-blue-700 dark:bg-blue-900/30 dark:text-blue-200 dark:hover:bg-blue-900/50"
+ aria-label="Clear date filter"
+ >
+ <span class="uppercase tracking-wide text-[9px] text-blue-600 dark:text-blue-300">
+ Date
+ </span>
+ <span class="font-mono tabular-nums">
+ {getRecoveryFilterDateLabel(selectedDateKey()!)}
+ </span>
+ <span aria-hidden="true">×</span>
+ </button>
+ </Show>
+ }
viewOptionsTrailing={
<span class="whitespace-nowrap text-xs font-medium text-muted">
<Show
- when={visibleLiveCount() !== liveTotalCount()}
- fallback={<>{liveTotalCount()} guests</>}
+ when={view() === 'date'}
+ fallback={
+ <Show
+ when={visibleLiveCount() !== liveTotalCount()}
+ fallback={<>{liveTotalCount()} guests</>}
+ >
+ {visibleLiveCount()} of {liveTotalCount()} guests
+ </Show>
+ }
>
- {visibleLiveCount()} of {liveTotalCount()} guests
+ <Show
+ when={visibleRecoverableCount() !== totalRecoverableCount()}
+ fallback={<>{totalRecoverableCount()} backups</>}
+ >
+ {visibleRecoverableCount()} of {totalRecoverableCount()} backups
+ </Show>
</Show>
</span>
}
/>
- <ProxmoxCoverageTable
- rows={liveCoverageRows()}
- hasAnyRows={liveTotalCount() > 0}
- emptyIcon={props.emptyIcon}
- emptyTitle="No workload coverage"
- emptyDescription="VM and container restore posture will appear here once backup data exists."
- sortKey={coverageSortKey}
- sortDirection={coverageSortDirection}
- onSort={handleCoverageSort}
- expandedKeys={expandedCoverageRows()}
- onToggleExpand={toggleCoverageExpansion}
- showPbsColumn={coverageHasPbs()}
- showArchiveColumn={coverageHasArchive()}
- showSnapshotColumn={coverageHasSnapshot()}
- showTaskColumn={coverageHasTask()}
- />
+ <Show when={view() === 'date'}>
+ <ProxmoxRecoverableTable
+ artifacts={filteredRecoverableArtifacts()}
+ hasAnyArtifacts={recoveryModel().recoverableArtifacts.length > 0}
+ emptyIcon={props.emptyIcon}
+ emptyTitle="No backups yet"
+ emptyDescription="PBS snapshots, PVE backup files, and guest snapshots will appear here once backups run."
+ sortKey={recoverableSortKey}
+ sortDirection={recoverableSortDirection}
+ onSort={handleRecoverableSort}
+ sizeMaxBytes={recoverableSizeMaxBytes()}
+ groupByDay
+ />
+ </Show>
- <Show when={orphanedTotalCount() > 0}>
- <div class="rounded-lg border border-border-subtle bg-surface-alt/25">
- <button
- type="button"
- onClick={() => setShowOrphaned((v) => !v)}
- class="flex w-full items-center justify-between gap-2 px-3 py-2 text-left"
- aria-expanded={showOrphaned()}
- >
- <span class="flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.18em] text-muted">
- <ChevronRightIcon
- class={`h-3.5 w-3.5 transition-transform ${showOrphaned() ? 'rotate-90' : ''}`}
- aria-hidden="true"
- />
- {orphanedTotalCount()} orphaned{' '}
- {orphanedTotalCount() === 1 ? 'backup' : 'backups'}
- </span>
- <span class="text-[11px] text-muted">
- guest no longer exists in inventory
- </span>
- </button>
- <Show when={showOrphaned()}>
- <div class="border-t border-border-subtle p-2">
- <ProxmoxCoverageTable
- rows={orphanedCoverageRows()}
- hasAnyRows={orphanedTotalCount() > 0}
- emptyIcon={props.emptyIcon}
- emptyTitle="No orphaned backups"
- emptyDescription="Backups whose guest no longer exists will appear here."
- sortKey={coverageSortKey}
- sortDirection={coverageSortDirection}
- onSort={handleCoverageSort}
- expandedKeys={expandedCoverageRows()}
- onToggleExpand={toggleCoverageExpansion}
- showPbsColumn={coverageHasPbs()}
- showArchiveColumn={coverageHasArchive()}
- showSnapshotColumn={coverageHasSnapshot()}
- showTaskColumn={coverageHasTask()}
- />
- </div>
- </Show>
- </div>
+ <Show when={view() === 'guest'}>
+ <ProxmoxCoverageTable
+ rows={liveCoverageRows()}
+ hasAnyRows={liveTotalCount() > 0}
+ emptyIcon={props.emptyIcon}
+ emptyTitle="No workload coverage"
+ emptyDescription="VM and container restore posture will appear here once backup data exists."
+ sortKey={coverageSortKey}
+ sortDirection={coverageSortDirection}
+ onSort={handleCoverageSort}
+ expandedKeys={expandedCoverageRows()}
+ onToggleExpand={toggleCoverageExpansion}
+ showPbsColumn={coverageHasPbs()}
+ showArchiveColumn={coverageHasArchive()}
+ showSnapshotColumn={coverageHasSnapshot()}
+ showTaskColumn={coverageHasTask()}
+ />
+
+ <Show when={orphanedTotalCount() > 0}>
+ <div class="rounded-lg border border-border-subtle bg-surface-alt/25">
+ <button
+ type="button"
+ onClick={() => setShowOrphaned((v) => !v)}
+ class="flex w-full items-center justify-between gap-2 px-3 py-2 text-left"
+ aria-expanded={showOrphaned()}
+ >
+ <span class="flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.18em] text-muted">
+ <ChevronRightIcon
+ class={`h-3.5 w-3.5 transition-transform ${showOrphaned() ? 'rotate-90' : ''}`}
+ aria-hidden="true"
+ />
+ {orphanedTotalCount()} orphaned{' '}
+ {orphanedTotalCount() === 1 ? 'backup' : 'backups'}
+ </span>
+ <span class="text-[11px] text-muted">guest no longer exists in inventory</span>
+ </button>
+ <Show when={showOrphaned()}>
+ <div class="border-t border-border-subtle p-2">
+ <ProxmoxCoverageTable
+ rows={orphanedCoverageRows()}
+ hasAnyRows={orphanedTotalCount() > 0}
+ emptyIcon={props.emptyIcon}
+ emptyTitle="No orphaned backups"
+ emptyDescription="Backups whose guest no longer exists will appear here."
+ sortKey={coverageSortKey}
+ sortDirection={coverageSortDirection}
+ onSort={handleCoverageSort}
+ expandedKeys={expandedCoverageRows()}
+ onToggleExpand={toggleCoverageExpansion}
+ showPbsColumn={coverageHasPbs()}
+ showArchiveColumn={coverageHasArchive()}
+ showSnapshotColumn={coverageHasSnapshot()}
+ showTaskColumn={coverageHasTask()}
+ />
+ </div>
+ </Show>
+ </div>
+ </Show>
</Show>
</div>
</Show>
diff --git a/frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx
new file mode 100644
index 0000000000..bd91a8bfa9
--- /dev/null
+++ b/frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx
@@ -0,0 +1,260 @@
+import { For, Show, type Accessor, type JSX } from 'solid-js';
+
+import { Card } from '@/components/shared/Card';
+import { EmptyState } from '@/components/shared/EmptyState';
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from '@/components/shared/Table';
+import { TableCard } from '@/components/shared/TableCard';
+import { formatBytes, formatRelativeTime } from '@/utils/format';
+import {
+ getRecoveryFullDateLabel,
+ recoveryDateKeyFromTimestamp,
+} from '@/utils/recoveryDatePresentation';
+import {
+ PLATFORM_TABLE_BODY_CLASS,
+ PLATFORM_TABLE_CARD_CLASS,
+ PLATFORM_TABLE_HEADER_ROW_CLASS,
+ getPlatformTableCellClassForKind,
+ getPlatformTableHeadClassForKind,
+} from '@/features/platformPage/sharedPlatformPage';
+
+import type { RecoverableArtifact } from './proxmoxBackupRecoveryModel';
+import type { RecoverableSortKey } from './proxmoxBackupsTableModel';
+import {
+ ArtifactSourceBadge,
+ ArtifactStateBadge,
+ RowMetricBar,
+ SortableHead,
+ artifactStateLabel,
+} from './proxmoxBackupsTableShared';
+
+// Flat recoverable-artifact table. Parent state owns filtering, sorting, and
+// date/source facets; optional day grouping is presentation only.
+
+const COLUMN_COUNT = 8;
+
+interface DayGroup {
+ key: string;
+ label: string;
+ items: RecoverableArtifact[];
+}
+
+function groupByDay(artifacts: readonly RecoverableArtifact[]): DayGroup[] {
+ const groups: DayGroup[] = [];
+ let current: DayGroup | undefined;
+ for (const artifact of artifacts) {
+ const key =
+ artifact.createdMs === undefined
+ ? 'unknown'
+ : recoveryDateKeyFromTimestamp(artifact.createdMs);
+ if (!current || current.key !== key) {
+ current = {
+ key,
+ label: key === 'unknown' ? 'Unknown date' : getRecoveryFullDateLabel(key),
+ items: [],
+ };
+ groups.push(current);
+ }
+ current.items.push(artifact);
+ }
+ return groups;
+}
+
+export function ProxmoxRecoverableTable(props: {
+ artifacts: RecoverableArtifact[];
+ hasAnyArtifacts: boolean;
+ emptyIcon: JSX.Element;
+ emptyTitle: string;
+ emptyDescription: string;
+ sortKey: Accessor<RecoverableSortKey>;
+ sortDirection: Accessor<'asc' | 'desc'>;
+ onSort: (key: RecoverableSortKey) => void;
+ sizeMaxBytes: number;
+ groupByDay?: boolean;
+}) {
+ const showDayGroups = () => props.groupByDay && props.sortKey() === 'created';
+
+ const renderRow = (artifact: RecoverableArtifact): JSX.Element => (
+ <TableRow class="hover:bg-surface-hover">
+ <TableCell class={`${getPlatformTableCellClassForKind('name')} text-base-content`}>
+ <div class="min-w-0">
+ <div class="truncate font-semibold">
+ {artifact.workload.name || artifact.workload.label}
+ </div>
+ </div>
+ </TableCell>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('numeric-value')} text-muted font-mono text-[11px] tabular-nums`}
+ >
+ {artifact.workload.vmid || '—'}
+ </TableCell>
+ <TableCell class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>
+ <ArtifactSourceBadge artifact={artifact} />
+ </TableCell>
+ <TableCell class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>
+ <span class="inline-block max-w-[16rem] truncate" title={artifact.location}>
+ {artifact.location}
+ </span>
+ </TableCell>
+ <TableCell class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}>
+ {formatRelativeTime(artifact.createdAt, { compact: true })}
+ </TableCell>
+ <TableCell class={`${getPlatformTableCellClassForKind('metric-bar')} text-base-content`}>
+ <Show
+ when={artifact.size && artifact.size > 0}
+ fallback={<span class="text-muted">No size</span>}
+ >
+ <RowMetricBar
+ valuePct={
+ props.sizeMaxBytes > 0 && artifact.size
+ ? (artifact.size / props.sizeMaxBytes) * 100
+ : 0
+ }
+ fillClass="bg-blue-500/40 dark:bg-blue-500/40"
+ label={formatBytes(artifact.size ?? 0)}
+ tooltip={`${formatBytes(artifact.size ?? 0)} (relative to largest artifact in view)`}
+ />
+ </Show>
+ </TableCell>
+ <TableCell class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>
+ <ArtifactStateBadge artifact={artifact} label={artifactStateLabel(artifact)} />
+ </TableCell>
+ <TableCell class={`${getPlatformTableCellClassForKind('text')} text-base-content`}>
+ <span class="inline-block max-w-[20rem] truncate" title={artifact.detail}>
+ {artifact.detail || '—'}
+ </span>
+ </TableCell>
+ </TableRow>
+ );
+
+ return (
+ <Show
+ when={props.artifacts.length > 0}
+ fallback={
+ <Card padding="lg">
+ <EmptyState
+ icon={props.emptyIcon}
+ title={
+ !props.hasAnyArtifacts
+ ? props.emptyTitle
+ : 'No recoverable artifacts match current filters'
+ }
+ description={
+ !props.hasAnyArtifacts
+ ? props.emptyDescription
+ : 'Adjust the search, source filter, or selected day to see more artifacts.'
+ }
+ />
+ </Card>
+ }
+ >
+ <TableCard class={PLATFORM_TABLE_CARD_CLASS}>
+ <Table class="min-w-[1000px] table-fixed text-xs">
+ {/* Keep column widths stable; long locations/details truncate with title text. */}
+ <colgroup>
+ <col style={{ width: '20%' }} />
+ <col style={{ width: '7%' }} />
+ <col style={{ width: '8%' }} />
+ <col style={{ width: '15%' }} />
+ <col style={{ width: '11%' }} />
+ <col style={{ width: '14%' }} />
+ <col style={{ width: '10%' }} />
+ <col style={{ width: '15%' }} />
+ </colgroup>
+ <TableHeader>
+ <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>
+ <SortableHead
+ label="Workload"
+ sortKey="workload"
+ currentSort={props.sortKey}
+ direction={props.sortDirection}
+ onSort={props.onSort}
+ align="left"
+ headClass={getPlatformTableHeadClassForKind('name')}
+ />
+ <TableHead class={getPlatformTableHeadClassForKind('numeric-value')}>VMID</TableHead>
+ <SortableHead
+ label="Source"
+ sortKey="source"
+ currentSort={props.sortKey}
+ direction={props.sortDirection}
+ onSort={props.onSort}
+ align="left"
+ headClass={getPlatformTableHeadClassForKind('text')}
+ />
+ <SortableHead
+ label="Location"
+ sortKey="location"
+ currentSort={props.sortKey}
+ direction={props.sortDirection}
+ onSort={props.onSort}
+ align="left"
+ headClass={getPlatformTableHeadClassForKind('text')}
+ />
+ <SortableHead
+ label="Created"
+ sortKey="created"
+ currentSort={props.sortKey}
+ direction={props.sortDirection}
+ onSort={props.onSort}
+ align="right"
+ headClass={getPlatformTableHeadClassForKind('numeric-value')}
+ />
+ <SortableHead
+ label="Size"
+ sortKey="size"
+ currentSort={props.sortKey}
+ direction={props.sortDirection}
+ onSort={props.onSort}
+ align="center"
+ headClass={getPlatformTableHeadClassForKind('metric-bar')}
+ />
+ <SortableHead
+ label="State"
+ sortKey="state"
+ currentSort={props.sortKey}
+ direction={props.sortDirection}
+ onSort={props.onSort}
+ align="left"
+ headClass={getPlatformTableHeadClassForKind('text')}
+ />
+ <TableHead class={getPlatformTableHeadClassForKind('text')}>Details</TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody class={PLATFORM_TABLE_BODY_CLASS}>
+ <Show
+ when={showDayGroups()}
+ fallback={<For each={props.artifacts}>{(artifact) => renderRow(artifact)}</For>}
+ >
+ <For each={groupByDay(props.artifacts)}>
+ {(group) => (
+ <>
+ <TableRow>
+ {/* Cell-level background is reliable across table layout engines. */}
+ <TableCell
+ colspan={COLUMN_COUNT}
+ class="border-t border-border bg-surface-alt px-3 py-1.5 text-[11px] font-semibold uppercase tracking-[0.14em] text-base-content"
+ >
+ {group.label}
+ <span class="ml-2 normal-case tracking-normal text-muted">
+ {group.items.length} {group.items.length === 1 ? 'backup' : 'backups'}
+ </span>
+ </TableCell>
+ </TableRow>
+ <For each={group.items}>{(artifact) => renderRow(artifact)}</For>
+ </>
+ )}
+ </For>
+ </Show>
+ </TableBody>
+ </Table>
+ </TableCard>
+ </Show>
+ );
+}
diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
index f522eba71f..c77e81c6d9 100644
--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
@@ -128,67 +128,75 @@ afterEach(() => {
});
describe('ProxmoxBackupsTable', () => {
- it('renders one coverage row per workload with restore posture', async () => {
+ it('defaults to the By date chronological feed with source/location/state columns', async () => {
mockBackupAPIs();
renderInRouter(() => (
<ProxmoxBackupsTable emptyIcon={<span />} workloads={[workloadResource]} />
));
- expect(await screen.findByText('pbs-docker')).toBeInTheDocument();
- // The workload has a recent restore point, so its posture reads "Current".
- expect(screen.getAllByText('Current').length).toBeGreaterThan(0);
+ // Default view is the v5-parity backup feed: one row PER backup, so the
+ // guest with PBS + archive + snapshot artifacts appears on multiple rows,
+ // sourced and located, not collapsed to a single coverage-posture summary.
+ expect((await screen.findAllByText('pbs-docker')).length).toBeGreaterThan(1);
+ expect(screen.getByRole('columnheader', { name: /location/i })).toBeInTheDocument();
+ expect(screen.getByRole('columnheader', { name: /source/i })).toBeInTheDocument();
+ expect(screen.getAllByText('PBS').length).toBeGreaterThan(0);
+ expect(screen.getByText('main / minipc')).toBeInTheDocument();
expect(apiFetchMock).toHaveBeenCalledWith('/api/backups/pbs');
expect(apiFetchMock).toHaveBeenCalledWith('/api/backups/pve');
});
- it('collapses the surface to a single table — no inner source/job/restore tabs', async () => {
+ it('offers By date / By guest views and no legacy sub-tab tree', async () => {
mockBackupAPIs();
renderInRouter(() => (
<ProxmoxBackupsTable emptyIcon={<span />} workloads={[workloadResource]} />
));
- await screen.findByText('pbs-docker');
+ await screen.findAllByText('pbs-docker');
- // The old four-tab + sub-tab tree is gone; the surface is the coverage
- // table alone.
- expect(screen.queryByRole('button', { name: /workload coverage/i })).not.toBeInTheDocument();
- expect(screen.queryByRole('button', { name: /restore points/i })).not.toBeInTheDocument();
+ // The two top-level views exist...
+ expect(screen.getByRole('button', { name: /by date/i })).toBeInTheDocument();
+ expect(screen.getByRole('button', { name: /by guest/i })).toBeInTheDocument();
+ // ...and the old four-tab + sub-tab tree does not.
expect(screen.queryByRole('button', { name: /source details/i })).not.toBeInTheDocument();
expect(screen.queryByRole('button', { name: /job history/i })).not.toBeInTheDocument();
expect(screen.queryByRole('button', { name: /pbs artifacts/i })).not.toBeInTheDocument();
});
- it('keeps PBS / archive / snapshot evidence in the row expansion (demote, not delete)', async () => {
+ it('switches to By guest showing posture, and keeps per-source evidence in the row expansion', async () => {
mockBackupAPIs();
renderInRouter(() => (
<ProxmoxBackupsTable emptyIcon={<span />} workloads={[workloadResource]} />
));
- await screen.findByText('pbs-docker');
+ await screen.findAllByText('pbs-docker');
+ await fireEvent.click(screen.getByRole('button', { name: /by guest/i }));
+
+ // By guest is the coverage/posture view; the workload's recent backup reads
+ // "Current".
+ expect(screen.getByRole('columnheader', { name: /posture/i })).toBeInTheDocument();
+ expect(screen.getAllByText('Current').length).toBeGreaterThan(0);
+ // Per-source detail is one click down inside the workload's row.
await fireEvent.click(
screen.getByRole('button', { name: /show restore evidence for pbs-docker/i }),
);
-
- // The per-source detail that used to live behind Source details is now one
- // click down, inside the workload's row.
expect(screen.getByText('Restore evidence')).toBeInTheDocument();
- expect(screen.getAllByText('PBS').length).toBeGreaterThan(0);
expect(screen.getAllByText('PVE archive').length).toBeGreaterThan(0);
expect(screen.getAllByText('Snapshot').length).toBeGreaterThan(0);
});
- it('filters coverage rows by search term', async () => {
+ it('filters the backup feed by search term', async () => {
mockBackupAPIs();
renderInRouter(() => (
<ProxmoxBackupsTable emptyIcon={<span />} workloads={[workloadResource]} />
));
- await screen.findByText('pbs-docker');
+ await screen.findAllByText('pbs-docker');
const searchInput = screen.getByPlaceholderText(/search backups by workload/i);
await fireEvent.input(searchInput, { target: { value: 'no-such-guest' } });
diff --git a/frontend-modern/src/features/proxmox/proxmoxBackupActivityPresentation.ts b/frontend-modern/src/features/proxmox/proxmoxBackupActivityPresentation.ts
new file mode 100644
index 0000000000..c1b35e0caf
--- /dev/null
+++ b/frontend-modern/src/features/proxmox/proxmoxBackupActivityPresentation.ts
@@ -0,0 +1,210 @@
+import { formatBytes } from '@/utils/format';
+import {
+ getRecoveryNiceAxisMax,
+ recoveryDateKeyFromTimestamp,
+} from '@/utils/recoveryDatePresentation';
+import { getRecoveryTimelineLabelEvery } from '@/utils/recoveryTimelineChartPresentation';
+import { getRecoveryTimelineDayFilterStateLabel } from '@/utils/recoveryTimelinePresentation';
+
+export type BackupActivityRangeDays = 7 | 30 | 90 | 365;
+
+export const BACKUP_ACTIVITY_RANGE_DAYS = [
+ 7, 30, 90, 365,
+] as const satisfies readonly BackupActivityRangeDays[];
+
+// count accumulates one item per day; volume accumulates bytes per day.
+export type BackupActivityMetricMode = 'count' | 'volume';
+
+export type BackupActivitySegmentKind =
+ | 'archive'
+ | 'pbs'
+ | 'ok'
+ | 'failed'
+ | 'running'
+ | 'snapshot';
+
+interface BackupActivitySegmentPresentation {
+ label: string;
+ segmentClassName: string;
+ swatchClassName: string;
+}
+
+const SEGMENT_PRESENTATION: Record<BackupActivitySegmentKind, BackupActivitySegmentPresentation> = {
+ archive: {
+ label: 'Archives',
+ segmentClassName: 'bg-blue-500',
+ swatchClassName: 'bg-blue-500',
+ },
+ pbs: {
+ label: 'PBS artifacts',
+ segmentClassName: 'bg-cyan-500',
+ swatchClassName: 'bg-cyan-500',
+ },
+ ok: {
+ label: 'OK',
+ segmentClassName: 'bg-emerald-500',
+ swatchClassName: 'bg-emerald-500',
+ },
+ failed: {
+ label: 'Failed',
+ segmentClassName: 'bg-red-500',
+ swatchClassName: 'bg-red-500',
+ },
+ running: {
+ label: 'Running',
+ segmentClassName: 'bg-amber-500',
+ swatchClassName: 'bg-amber-500',
+ },
+ snapshot: {
+ label: 'Snapshots',
+ segmentClassName: 'bg-violet-500',
+ swatchClassName: 'bg-violet-500',
+ },
+};
+
+export function getBackupActivitySegmentPresentation(
+ kind: BackupActivitySegmentKind,
+): BackupActivitySegmentPresentation {
+ return SEGMENT_PRESENTATION[kind];
+}
+
+export interface BackupActivityPoint {
+ key: string;
+ total: number;
+ counts: Record<BackupActivitySegmentKind, number>;
+}
+
+export interface BackupActivityTimeline {
+ points: BackupActivityPoint[];
+ axisMax: number;
+ labelEvery: number;
+}
+
+function emptyCounts(): Record<BackupActivitySegmentKind, number> {
+ return { archive: 0, pbs: 0, ok: 0, failed: 0, running: 0, snapshot: 0 };
+}
+
+function startOfLocalDayMs(date: Date): number {
+ const copy = new Date(date);
+ copy.setHours(0, 0, 0, 0);
+ return copy.getTime();
+}
+
+export function buildBackupActivityTimeline<T>(
+ days: BackupActivityRangeDays,
+ items: readonly T[],
+ getTimestampMs: (item: T) => number | undefined,
+ classify: (item: T) => BackupActivitySegmentKind | null,
+ options?: {
+ now?: Date;
+ // Per-item contribution to the bucket total. Defaults to count mode.
+ getValue?: (item: T) => number;
+ },
+): BackupActivityTimeline {
+ const now = options?.now ?? new Date();
+ const getValue = options?.getValue ?? (() => 1);
+ const todayStart = startOfLocalDayMs(now);
+ const windowStart = todayStart - (days - 1) * 24 * 60 * 60 * 1000;
+
+ const buckets = new Map<string, BackupActivityPoint>();
+ const orderedKeys: string[] = [];
+
+ for (let i = 0; i < days; i += 1) {
+ const dayStart = windowStart + i * 24 * 60 * 60 * 1000;
+ const key = recoveryDateKeyFromTimestamp(dayStart);
+ orderedKeys.push(key);
+ buckets.set(key, { key, total: 0, counts: emptyCounts() });
+ }
+
+ for (const item of items) {
+ const ts = getTimestampMs(item);
+ if (ts === undefined || !Number.isFinite(ts)) continue;
+ if (ts < windowStart) continue;
+ if (ts >= todayStart + 24 * 60 * 60 * 1000) continue;
+ const kind = classify(item);
+ if (!kind) continue;
+ const value = getValue(item);
+ if (!Number.isFinite(value) || value <= 0) continue;
+ const key = recoveryDateKeyFromTimestamp(ts);
+ const bucket = buckets.get(key);
+ if (!bucket) continue;
+ bucket.counts[kind] += value;
+ bucket.total += value;
+ }
+
+ const points = orderedKeys.map((key) => buckets.get(key)!);
+ const rawMax = points.reduce((max, p) => (p.total > max ? p.total : max), 0);
+ const axisMax = Math.max(2, getRecoveryNiceAxisMax(rawMax));
+ const labelEvery = getRecoveryTimelineLabelEvery(points.length);
+
+ return { points, axisMax, labelEvery };
+}
+
+export interface BackupActivityTooltipRow {
+ kind: BackupActivitySegmentKind;
+ label: string;
+ count: number;
+ value: string;
+ segmentClassName: string;
+ muted: boolean;
+}
+
+export type BackupActivityNoun = 'archive' | 'artifact' | 'task' | 'snapshot';
+
+function formatActivityValue(value: number, mode: BackupActivityMetricMode): string {
+ if (mode === 'volume') return formatBytes(Math.max(0, value));
+ return String(Math.max(0, Math.round(value)));
+}
+
+export function getBackupActivityTooltipRows(
+ point: BackupActivityPoint,
+ kinds: readonly BackupActivitySegmentKind[],
+ mode: BackupActivityMetricMode = 'count',
+): BackupActivityTooltipRow[] {
+ const total = Math.max(0, point.total);
+ return kinds.map((kind) => {
+ const presentation = SEGMENT_PRESENTATION[kind];
+ const count = Math.max(0, point.counts[kind] ?? 0);
+ const percentage = total > 0 && count > 0 ? Math.round((count / total) * 100) : 0;
+ const formatted = formatActivityValue(count, mode);
+ return {
+ kind,
+ label: presentation.label,
+ count,
+ value: percentage > 0 && kinds.length > 1 ? `${formatted} (${percentage}%)` : formatted,
+ segmentClassName: presentation.segmentClassName,
+ muted: count === 0,
+ };
+ });
+}
+
+export function getBackupActivityPointTotalLabel(
+ total: number,
+ noun: BackupActivityNoun,
+ mode: BackupActivityMetricMode = 'count',
+): string {
+ if (mode === 'volume') {
+ return formatBytes(Math.max(0, total));
+ }
+ const normalized = Math.max(0, Math.round(total));
+ if (normalized === 1) return `1 ${noun}`;
+ return `${normalized} ${noun}s`;
+}
+
+export function getBackupActivityColumnAriaLabel(
+ dateLabel: string,
+ total: number,
+ selected: boolean,
+ noun: BackupActivityNoun,
+ mode: BackupActivityMetricMode = 'count',
+): string {
+ const countLabel = getBackupActivityPointTotalLabel(total, noun, mode);
+ return selected ? `${dateLabel}: ${countLabel}, selected` : `${dateLabel}: ${countLabel}`;
+}
+
+export function getBackupActivityAxisLabel(value: number, mode: BackupActivityMetricMode): string {
+ if (mode === 'volume') return formatBytes(Math.max(0, value));
+ return String(Math.max(0, Math.round(value)));
+}
+
+export { getRecoveryTimelineDayFilterStateLabel as getBackupActivityDayFilterStateLabel };