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.

Fix Patrol latest-run text spacing

rcourtmane859a34e49d2
diff --git a/frontend-modern/src/components/patrol/PatrolStatusBar.tsx b/frontend-modern/src/components/patrol/PatrolStatusBar.tsx
index 51145d775c..5cde018a65 100644
--- a/frontend-modern/src/components/patrol/PatrolStatusBar.tsx
+++ b/frontend-modern/src/components/patrol/PatrolStatusBar.tsx
@@ -162,9 +162,8 @@ export const PatrolStatusBar: Component<PatrolStatusBarProps> = (props) => {
<Show when={s().lastRun}>
<span class="text-xs text-muted">
- Latest: {s().lastRunTypeLabel}
- <span class="mx-1 text-muted">·</span>
- <span class={`ml-1.5 px-1.5 py-0.5 rounded ${s().lastRunStatus.badgeClass}`}>
+ Latest: {s().lastRunTypeLabel} <span class="text-muted">·</span>{' '}
+ <span class={`px-1.5 py-0.5 rounded ${s().lastRunStatus.badgeClass}`}>
{s().lastRunStatus.label}
</span>
</span>
diff --git a/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx b/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx
index 1133ee158c..9ae3d9dda7 100644
--- a/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx
+++ b/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx
@@ -192,7 +192,7 @@ describe('PatrolStatusBar', () => {
const latestRunSection = screen.getByText('Latest: Scoped run').closest('span');
expect(latestRunSection).not.toBeNull();
- expect(within(latestRunSection as HTMLElement).getByText('·')).toBeInTheDocument();
+ expect(latestRunSection).toHaveTextContent('Latest: Scoped run · error');
expect(within(latestRunSection as HTMLElement).queryByText('healthy')).not.toBeInTheDocument();
expect(within(latestRunSection as HTMLElement).getByText('error')).toBeInTheDocument();
});