Fix Patrol latest-run text spacing

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.
This commit is contained in:
rcourtman
2026-03-25 11:34:02 +00:00
parent e15486d3c3
commit e859a34e49
2 changed files with 3 additions and 4 deletions
@@ -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>
@@ -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();
});