From e859a34e49d27677faafd5d1b6610ff5fa01a359 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Wed, 25 Mar 2026 11:34:02 +0000 Subject: [PATCH] Fix Patrol latest-run text spacing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patrol recent-activity rendering now emits a real textual separator so compact and extracted text reads as "Scoped run · error" instead of collapsing the words. --- frontend-modern/src/components/patrol/PatrolStatusBar.tsx | 5 ++--- .../src/components/patrol/__tests__/PatrolStatusBar.test.tsx | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend-modern/src/components/patrol/PatrolStatusBar.tsx b/frontend-modern/src/components/patrol/PatrolStatusBar.tsx index 51145d775..5cde018a6 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 = (props) => { - Latest: {s().lastRunTypeLabel} - · - + Latest: {s().lastRunTypeLabel} ·{' '} + {s().lastRunStatus.label} diff --git a/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx b/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx index 1133ee158..9ae3d9dda 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(); });