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): remove protected table separators
rcourtmana822ea34f788
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex a1ebf72eb4..540a9b7612 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -777,6 +777,11 @@ contained styling should come from the same canonical subtabs shell, list, andbutton class treatment already used by established Pulse surfaces rather thanfrom a recovery-only variant boundary, adjacent chip row, or recovery-localfilter-row embedding.+The shared table primitives now also need to preserve caller-owned separator+styling. `TableHeader` and `TableBody` may provide canonical default borders+and dividers, but when a caller supplies explicit border or divide classes the+shared primitive must defer to that local contract instead of silently forcing+the default separator treatment back into the rendered DOM.That same shared-boundary rule applies to summary density. The shared compactmode on `SummaryPanel.tsx` and `SummaryMetricCard.tsx` exists for genuinelydense monitoring surfaces, but pages that are trying to align with the normaldiff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 11b0330a05..c2e0424520 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -746,6 +746,10 @@ rows. Recovery inventory and event tables should use the same restrainedtitle-case header typography, compact control heights, and thin row density asthe established Pulse monitoring tables instead of drifting into report-styleuppercase headers or oversized filter chrome.+That same protected-items table contract should avoid visible horizontal row+rules when they read as white underlines through workload names. The protected+inventory scan should rely on spacing, zebra contrast, and hover state instead+of explicit horizontal separators between every row.That same workspace-shell rule should also avoid a dedicated recovery-onlystatus strip above the control bar. Recovery should use the same handoff shapeas storage: one canonical `Subtabs.tsx` row first, then one shared page-controlsdiff --git a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsxindex 32bb56aad0..5887f3121d 100644--- a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx+++ b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx@@ -338,8 +338,8 @@ export const RecoveryProtectedInventorySection: Component<class="w-full border-collapse whitespace-nowrap"style={{ 'table-layout': 'fixed', 'min-width': props.isMobile ? '100%' : '640px' }}>- <TableHeader>- <TableRow class="border-b border-border bg-surface-alt/95 text-muted">+ <TableHeader class="border-b-0">+ <TableRow class="bg-surface-alt/95 text-muted">{([['item', getRecoveryArtifactColumnLabel('item', 'Item')],@@ -379,7 +379,7 @@ export const RecoveryProtectedInventorySection: Component<))}</TableRow></TableHeader>- <TableBody class="divide-y divide-border-subtle/60">+ <TableBody class="divide-y-0"><For each={visibleRollups()}>{(rollup) => {const resourceIndex = props.resourcesById();diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsxindex 885daf8b1d..dfe2a71717 100644--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx@@ -236,6 +236,7 @@ describe('Recovery', () => {expect(screen.getAllByRole('table')).toHaveLength(1);});const inventoryTable = screen.getAllByRole('table')[0];+ const inventoryBody = inventoryTable.querySelector('tbody');expect(workspaceTablist.compareDocumentPosition(inventoryControls) & Node.DOCUMENT_POSITION_FOLLOWING,).not.toBe(0);@@ -247,6 +248,8 @@ describe('Recovery', () => {expect(within(inventoryTable).getByText('Platform')).toBeInTheDocument();expect(within(inventoryTable).queryByText('ITEM TYPE')).not.toBeInTheDocument();expect(within(inventoryTable).queryByText('PLATFORM')).not.toBeInTheDocument();+ expect(inventoryBody?.className).toContain('divide-y-0');+ expect(inventoryBody?.className).not.toContain('divide-border ');expect(within(inventoryTable).getAllByText('VM').length).toBeGreaterThan(0);const vmRow = screen.getByText('VM 123').closest('tr');expect(vmRow).not.toBeNull();diff --git a/frontend-modern/src/components/shared/Table.tsx b/frontend-modern/src/components/shared/Table.tsxindex 0192993a24..93436d9915 100644--- a/frontend-modern/src/components/shared/Table.tsx+++ b/frontend-modern/src/components/shared/Table.tsx@@ -27,8 +27,10 @@ export type TableHeaderProps = JSX.HTMLAttributes<HTMLTableSectionElement>;export function TableHeader(props: TableHeaderProps) {const [local, rest] = splitProps(props, ['class', 'children']);+ const customBorderPattern = /(?:^|\s)border-[^\s]+/;+ const borderClass = customBorderPattern.test(local.class ?? '') ? '' : 'border-b border-border';return (- <thead class={`bg-surface text-muted border-b border-border ${local.class || ''}`} {...rest}>+ <thead class={`bg-surface text-muted ${borderClass} ${local.class || ''}`.trim()} {...rest}>{local.children}</thead>);@@ -38,8 +40,12 @@ export type TableBodyProps = JSX.HTMLAttributes<HTMLTableSectionElement>;export function TableBody(props: TableBodyProps) {const [local, rest] = splitProps(props, ['class', 'children']);+ const customDividePattern = /(?:^|\s)divide-[^\s]+/;+ const bodyClass = customDividePattern.test(local.class ?? '')+ ? (local.class ?? '')+ : `divide-y divide-border ${local.class || ''}`;return (- <tbody class={`divide-y divide-border ${local.class || ''}`} {...rest}>+ <tbody class={bodyClass.trim()} {...rest}>{local.children}</tbody>);diff --git a/frontend-modern/src/components/shared/__tests__/PulseDataGrid.test.tsx b/frontend-modern/src/components/shared/__tests__/PulseDataGrid.test.tsxindex a7fc32ae0f..e4dd6ee39c 100644--- a/frontend-modern/src/components/shared/__tests__/PulseDataGrid.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/PulseDataGrid.test.tsx@@ -5,6 +5,7 @@ import pulseDataGridSource from '@/components/shared/PulseDataGrid.tsx?raw';import pulseDataGridModelSource from '@/components/shared/pulseDataGridModel.ts?raw';import pulseDataGridStateSource from '@/components/shared/usePulseDataGridState.ts?raw';import { PulseDataGrid } from '@/components/shared/PulseDataGrid';+import tableSource from '@/components/shared/Table.tsx?raw';type TestRow = {id: string;@@ -32,6 +33,8 @@ describe('PulseDataGrid', () => {expect(pulseDataGridModelSource).toContain('export const getPulseDataGridAlignClass');expect(pulseDataGridModelSource).toContain('export const isPulseDataGridInteractiveTarget');expect(pulseDataGridModelSource).toContain('target.closest(');+ expect(tableSource).toContain('customDividePattern');+ expect(tableSource).toContain('customBorderPattern');});it('triggers the row handler when a non-interactive cell is clicked', () => {diff --git a/frontend-modern/src/components/shared/__tests__/Table.test.tsx b/frontend-modern/src/components/shared/__tests__/Table.test.tsxnew file mode 100644index 0000000000..52d9def9a4--- /dev/null+++ b/frontend-modern/src/components/shared/__tests__/Table.test.tsx@@ -0,0 +1,78 @@+import { render, screen } from '@solidjs/testing-library';+import { describe, expect, it } from 'vitest';++import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/shared/Table';++describe('TableBody', () => {+ it('keeps default dividers when no custom divider classes are provided', () => {+ render(() => (+ <Table>+ <TableBody>+ <TableRow>+ <TableCell>default</TableCell>+ </TableRow>+ </TableBody>+ </Table>+ ));++ const tbody = screen.getByText('default').closest('tbody');+ expect(tbody).not.toBeNull();+ expect(tbody!.className).toContain('divide-y');+ expect(tbody!.className).toContain('divide-border');+ });++ it('lets callers fully own divider classes when custom divider classes are provided', () => {+ render(() => (+ <Table>+ <TableBody class="divide-y divide-border-subtle/60">+ <TableRow>+ <TableCell>custom</TableCell>+ </TableRow>+ </TableBody>+ </Table>+ ));++ const tbody = screen.getByText('custom').closest('tbody');+ expect(tbody).not.toBeNull();+ expect(tbody!.className).toContain('divide-y');+ expect(tbody!.className).toContain('divide-border-subtle/60');+ expect(tbody!.className).not.toContain('divide-border ');+ });+});++describe('TableHeader', () => {+ it('keeps default header borders when no custom border classes are provided', () => {+ render(() => (+ <Table>+ <TableHeader>+ <TableRow>+ <TableHead>default header</TableHead>+ </TableRow>+ </TableHeader>+ </Table>+ ));++ const thead = screen.getByText('default header').closest('thead');+ expect(thead).not.toBeNull();+ expect(thead!.className).toContain('border-b');+ expect(thead!.className).toContain('border-border');+ });++ it('lets callers own header border classes when custom border classes are provided', () => {+ render(() => (+ <Table>+ <TableHeader class="border-b border-border-subtle/60">+ <TableRow>+ <TableHead>custom header</TableHead>+ </TableRow>+ </TableHeader>+ </Table>+ ));++ const thead = screen.getByText('custom header').closest('thead');+ expect(thead).not.toBeNull();+ expect(thead!.className).toContain('border-b');+ expect(thead!.className).toContain('border-border-subtle/60');+ expect(thead!.className).not.toContain('border-border ');+ });+});