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 history table density
rcourtmanfecc271a36ff
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 37e07a162d..5e4ff6f2e7 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -738,6 +738,10 @@ primary identity cell. `RecoveryHistoryTable.tsx` should lead each event rowwith a compact outcome status cue plus the canonical item name, so operatorscan scan event health by row without relying only on the far-right outcomecolumn.+That same density rule should also keep history grouping and badges restrained.+Day-group headers should read as slim dividers instead of banner rows, and+platform/method/outcome pills should stay compact enough that the event grid+still scans like a monitoring table rather than a report export.That shared unified-resource dependency now also includes policy-governedresource metadata on the frontend decode path: storage and recovery surfacesthat route through `frontend-modern/src/hooks/useUnifiedResources.ts` mustdiff --git a/frontend-modern/src/components/Recovery/RecoveryHistoryTable.tsx b/frontend-modern/src/components/Recovery/RecoveryHistoryTable.tsxindex bcfd3ebbbb..f5b6a72296 100644--- a/frontend-modern/src/components/Recovery/RecoveryHistoryTable.tsx+++ b/frontend-modern/src/components/Recovery/RecoveryHistoryTable.tsx@@ -150,14 +150,9 @@ export const RecoveryHistoryTable: Component<RecoveryHistoryTableProps> = (props<span class="truncate" title={group.label}>{group.label}</span>- <Show when={group.tone === 'recent'}>- <span class="inline-flex rounded px-1.5 py-px text-[9px] font-medium border border-border bg-surface">- recent- </span>- </Show></div>- <span class="shrink-0 font-mono text-[10px] tabular-nums text-muted">- {group.items.length}+ <span class="shrink-0 text-[10px] tabular-nums text-muted">+ {group.items.length} event{group.items.length === 1 ? '' : 's'}</span></div></TableCell>@@ -257,38 +252,6 @@ export const RecoveryHistoryTable: Component<RecoveryHistoryTableProps> = (props<span class="min-w-0 flex-1 truncate text-[12px] font-medium">{item}</span>- <span class="inline-flex shrink-0 items-center gap-1">- <Show when={point.immutable === true}>- <svg- class="h-3 w-3 text-emerald-500 dark:text-emerald-400"- fill="none"- stroke="currentColor"- viewBox="0 0 24 24"- aria-hidden="true"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M12 3l7 4v5c0 5-3.5 7.5-7 9-3.5-1.5-7-4-7-9V7l7-4z"- />- </svg>- </Show>- <Show when={point.encrypted === true}>- <svg- class="h-3 w-3 text-amber-500 dark:text-amber-400"- fill="currentColor"- viewBox="0 0 20 20"- aria-hidden="true"- >- <path- fill-rule="evenodd"- d="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2V7a3 3 0 016 0z"- clip-rule="evenodd"- />- </svg>- </Show>- </span></div></TableCell>);@@ -321,7 +284,7 @@ export const RecoveryHistoryTable: Component<RecoveryHistoryTableProps> = (propsreturn (<TableCell class="whitespace-nowrap px-3 py-1 text-center"><span- class={`${badge?.classes || ''} inline-flex min-w-[3.25rem] justify-center px-1.5 py-px text-[10px] font-medium`}+ class={`${badge?.classes || ''} inline-flex justify-center px-1.5 py-px text-[9px] font-medium`}>{badge?.label || getSourcePlatformLabel(platform)}</span>@@ -388,7 +351,7 @@ export const RecoveryHistoryTable: Component<RecoveryHistoryTableProps> = (propsreturn (<TableCell class="whitespace-nowrap px-3 py-1 text-center"><span- class={`inline-flex min-w-[3.5rem] justify-center rounded px-1.5 py-px text-[10px] font-medium ${getRecoveryArtifactModePresentation(+ class={`inline-flex min-w-[3.25rem] justify-center rounded px-1.5 py-px text-[9px] font-medium ${getRecoveryArtifactModePresentation(mode as ArtifactMode,).badgeClassName}`}>@@ -418,7 +381,7 @@ export const RecoveryHistoryTable: Component<RecoveryHistoryTableProps> = (propsreturn (<TableCell class="whitespace-nowrap px-3 py-1 text-center"><span- class={`inline-flex min-w-[4.75rem] justify-center rounded px-1.5 py-px text-[10px] font-medium ${getRecoveryOutcomeBadgeClass(+ class={`inline-flex min-w-[4.5rem] justify-center rounded px-1.5 py-px text-[9px] font-medium ${getRecoveryOutcomeBadgeClass(outcome,)}`}>@@ -488,7 +451,7 @@ export const RecoveryHistoryTable: Component<RecoveryHistoryTableProps> = (props</Table></div>- <div class="flex items-center justify-between gap-2 px-3 py-2 text-xs text-muted border-t border-border">+ <div class="flex items-center justify-between gap-2 px-3 py-1.5 text-[11px] text-muted border-t border-border"><div><Showwhen={(props.recoveryPoints.meta().total || 0) > 0}diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsxindex 09d16881d0..5ee651ffef 100644--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx@@ -246,7 +246,7 @@ describe('Recovery', () => {expect(screen.getAllByRole('table')).toHaveLength(1);});const historyTable = screen.getAllByRole('table')[0];- expect(screen.getByText(/1 event/i)).toBeInTheDocument();+ expect(screen.getAllByText(/1 event/i).length).toBeGreaterThan(0);expect(screen.getByText(/1 day group/i)).toBeInTheDocument();expect(within(historyTable).getByText('Item Type')).toBeInTheDocument();expect(within(historyTable).getByText('Item')).toBeInTheDocument();diff --git a/frontend-modern/src/utils/__tests__/recoveryTablePresentation.test.ts b/frontend-modern/src/utils/__tests__/recoveryTablePresentation.test.tsindex 489207e6d4..d913fdec82 100644--- a/frontend-modern/src/utils/__tests__/recoveryTablePresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/recoveryTablePresentation.test.ts@@ -29,7 +29,7 @@ import {describe('recoveryTablePresentation', () => {it('exposes shared recovery table classes', () => {expect(RECOVERY_GROUP_HEADER_ROW_CLASS).toContain('bg-surface-alt');- expect(RECOVERY_GROUP_HEADER_TEXT_CLASS).toContain('font-semibold');+ expect(RECOVERY_GROUP_HEADER_TEXT_CLASS).toContain('font-medium');expect(RECOVERY_ADVANCED_FILTER_LABEL_CLASS).toContain('text-muted');expect(RECOVERY_ADVANCED_FILTER_FIELD_CLASS).toContain('focus:border-blue-500');expect(RECOVERY_GROUP_NO_TIMESTAMP_LABEL).toBe('No Timestamp');@@ -78,9 +78,8 @@ describe('recoveryTablePresentation', () => {} as RecoveryPoint;expect(getRecoveryPointItemTypeLabel(point)).toBe('VM');- expect(getRecoveryPointItemTypeBadgeClass(point)).toBe(- 'bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-300',- );+ expect(getRecoveryPointItemTypeBadgeClass(point)).toContain('bg-blue-100');+ expect(getRecoveryPointItemTypeBadgeClass(point)).toContain('text-blue-700');});it('normalizes proxmox lxc subjects to the canonical container badge', () => {@@ -90,9 +89,8 @@ describe('recoveryTablePresentation', () => {} as RecoveryPoint;expect(getRecoveryPointItemTypeLabel(point)).toBe('Container');- expect(getRecoveryPointItemTypeBadgeClass(point)).toBe(- 'bg-green-100 text-green-700 dark:bg-green-900 dark:text-green-300',- );+ expect(getRecoveryPointItemTypeBadgeClass(point)).toContain('bg-green-100');+ expect(getRecoveryPointItemTypeBadgeClass(point)).toContain('text-green-700');});it('falls back cleanly for unknown subject types', () => {@@ -102,7 +100,8 @@ describe('recoveryTablePresentation', () => {} as RecoveryPoint;expect(getRecoveryPointItemTypeLabel(point)).toBe('Custom Thing');- expect(getRecoveryPointItemTypeBadgeClass(point)).toBe('bg-surface-alt text-base-content');+ expect(getRecoveryPointItemTypeBadgeClass(point)).toContain('bg-surface-alt');+ expect(getRecoveryPointItemTypeBadgeClass(point)).toContain('text-base-content');});it('derives artifact header and row classes', () => {diff --git a/frontend-modern/src/utils/recoveryTablePresentation.ts b/frontend-modern/src/utils/recoveryTablePresentation.tsindex 7bcc2c0078..d485cfe34c 100644--- a/frontend-modern/src/utils/recoveryTablePresentation.ts+++ b/frontend-modern/src/utils/recoveryTablePresentation.ts@@ -11,9 +11,9 @@ import type { RecoveryIssueTone } from '@/utils/recoveryIssuePresentation';export const STALE_ISSUE_THRESHOLD_MS = 7 * 24 * 60 * 60 * 1000;export const AGING_THRESHOLD_MS = 2 * 24 * 60 * 60 * 1000;-export const RECOVERY_GROUP_HEADER_ROW_CLASS = 'bg-surface-alt hover:bg-surface-alt';+export const RECOVERY_GROUP_HEADER_ROW_CLASS = 'bg-surface-alt/55 hover:bg-surface-alt/55';export const RECOVERY_GROUP_HEADER_TEXT_CLASS =- 'py-1.5 pr-3 pl-4 text-[12px] sm:text-sm font-semibold text-base-content';+ 'py-1 pr-3 pl-4 text-[11px] font-medium text-base-content';export const RECOVERY_ADVANCED_FILTER_LABEL_CLASS = 'text-[11px] font-medium text-muted';export const RECOVERY_ADVANCED_FILTER_FIELD_CLASS ='min-h-[2.25rem] w-full rounded-md border border-border bg-surface px-2.5 py-1.5 text-sm text-base-content outline-none focus:border-blue-500';