mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-21 02:33:32 +00:00
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:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user