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): restore canonical table separators

rcourtman75129b9b19fd
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index c2e0424520..2efba21a5b 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -746,10 +746,11 @@ rows. Recovery inventory and event tables should use the same restrained
title-case header typography, compact control heights, and thin row density as
the established Pulse monitoring tables instead of drifting into report-style
uppercase 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 protected-items table contract should stay on the canonical shared
+table separator treatment used by the rest of Pulse. Recovery inventory should
+use the standard shared header/body dividers and avoid both local suppression
+of those separators and local duplicate row or header borders that make the
+lines read heavier than other monitoring tables.
That same workspace-shell rule should also avoid a dedicated recovery-only
status strip above the control bar. Recovery should use the same handoff shape
as storage: one canonical `Subtabs.tsx` row first, then one shared page-controls
diff --git a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx
index 5887f3121d..f5d83771e7 100644
--- a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx
+++ b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx
@@ -338,7 +338,7 @@ export const RecoveryProtectedInventorySection: Component<
class="w-full border-collapse whitespace-nowrap"
style={{ 'table-layout': 'fixed', 'min-width': props.isMobile ? '100%' : '640px' }}
>
- <TableHeader class="border-b-0">
+ <TableHeader>
<TableRow class="bg-surface-alt/95 text-muted">
{(
[
@@ -379,7 +379,7 @@ export const RecoveryProtectedInventorySection: Component<
))}
</TableRow>
</TableHeader>
- <TableBody class="divide-y-0">
+ <TableBody>
<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.tsx
index dfe2a71717..342a2fb6ee 100644
--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
@@ -248,8 +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(inventoryBody?.className).toContain('divide-y');
+ expect(inventoryBody?.className).toContain('divide-border');
expect(within(inventoryTable).getAllByText('VM').length).toBeGreaterThan(0);
const vmRow = screen.getByText('VM 123').closest('tr');
expect(vmRow).not.toBeNull();