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.

Use the existing copy style for unknown backup sizes

pulse-triage[bot]588afd65cd02
diff --git a/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx
index 07560f8c32..6fe93d9438 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx
@@ -910,7 +910,7 @@ export const ProxmoxBackupsTable: Component<{
<p class="text-xs text-amber-700 dark:text-amber-300" role="status">
Sizes are unavailable for {unknownVolumeCount()} completed restore{' '}
{unknownVolumeCount() === 1 ? 'point' : 'points'} in this window. Bars show
- known volume only; amber marks days with unknown sizes, not zero volume.
+ known volume only. Amber marks days with unknown sizes, not zero volume.
</p>
</Show>
<BackupActivityChart
diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
index a617b4c78d..c5f639d55f 100644
--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
@@ -1789,7 +1789,7 @@ describe('completed restore-point summary and activity', () => {
await fireEvent.click(screen.getByRole('button', { name: 'Volume' }));
expect(screen.getByText('Known restore volume per day')).toBeInTheDocument();
expect(
- screen.getByRole('button', { name: /: 3.00 KB known; 1 size unknown$/ }),
+ screen.getByRole('button', { name: /: 3.00 KB known · 1 size unknown$/ }),
).toBeInTheDocument();
expect(screen.getAllByText('Running').length).toBeGreaterThan(0);
expect(screen.getAllByText('Failed').length).toBeGreaterThan(0);
@@ -1904,17 +1904,17 @@ describe('restore volume with unavailable sizes', () => {
expect(
screen.getByText(/Sizes are unavailable for 2 completed restore points in this window/),
).toBeInTheDocument();
- const today = screen.getByRole('button', { name: /: 3.00 KB known; 1 size unknown$/ });
+ const today = screen.getByRole('button', { name: /: 3.00 KB known · 1 size unknown$/ });
const yesterday = screen.getByRole('button', { name: /: 1 size unknown$/ });
expect(screen.getAllByRole('button', { name: /: 0 B$/ }).length).toBeGreaterThan(0);
await fireEvent.focus(today);
- expect(screen.getByText('3.00 KB known; 1 size unknown')).toBeInTheDocument();
+ expect(screen.getByText('3.00 KB known · 1 size unknown')).toBeInTheDocument();
expect(screen.getByText('Unknown size')).toBeInTheDocument();
expect(screen.queryByText('1.00 KB (33%)')).not.toBeInTheDocument();
await fireEvent.click(yesterday);
expect(document.querySelectorAll('[data-proxmox-backup-row="recoverable"]')).toHaveLength(1);
expect(
- screen.getByRole('button', { name: /: 3.00 KB known; 1 size unknown$/ }),
+ screen.getByRole('button', { name: /: 3.00 KB known · 1 size unknown$/ }),
).toBeInTheDocument();
await fireEvent.click(screen.getByRole('button', { name: 'Count' }));
expect(
diff --git a/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupActivityPresentation.test.ts b/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupActivityPresentation.test.ts
index 5bb88ade56..c648bbf118 100644
--- a/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupActivityPresentation.test.ts
+++ b/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupActivityPresentation.test.ts
@@ -459,7 +459,7 @@ describe('proxmoxBackupActivityPresentation', () => {
'1 size unknown',
);
expect(getBackupActivityPointTotalLabel(1024, 'restore point', 'volume', 2)).toBe(
- '1.00 KB known; 2 sizes unknown',
+ '1.00 KB known · 2 sizes unknown',
);
expect(getBackupActivityPointTotalLabel(3, 'restore point', 'count', 2)).toBe(
'3 restore points',
diff --git a/frontend-modern/src/features/proxmox/proxmoxBackupActivityPresentation.ts b/frontend-modern/src/features/proxmox/proxmoxBackupActivityPresentation.ts
index a2216210e4..56031e23e8 100644
--- a/frontend-modern/src/features/proxmox/proxmoxBackupActivityPresentation.ts
+++ b/frontend-modern/src/features/proxmox/proxmoxBackupActivityPresentation.ts
@@ -202,7 +202,7 @@ export function getBackupActivityPointTotalLabel(
if (mode === 'volume') {
if (unknownCount > 0) {
const unknown = `${unknownCount} ${unknownCount === 1 ? 'size' : 'sizes'} unknown`;
- return total > 0 ? `${formatBytes(total)} known; ${unknown}` : unknown;
+ return total > 0 ? `${formatBytes(total)} known · ${unknown}` : unknown;
}
return formatBytes(Math.max(0, total));
}