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.

Rename Patrol schedule "Disabled" preset to "Off"

rcourtman77479fb9ca2f
diff --git a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx
index d20d897cb7..82301d85d1 100644
--- a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx
+++ b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx
@@ -410,7 +410,7 @@ export function PatrolIntelligenceHeader(props: { state: PatrolIntelligenceState
<div class="rounded-md border border-border-subtle bg-surface-alt/60 px-3 py-2.5">
<p class="text-[11px] font-medium text-base-content">
{state.patrolInterval() === 0
- ? 'Full patrols are disabled.'
+ ? 'Scheduled full patrols are off. Manual runs and alert/anomaly triggers still work.'
: `Full patrols run every ${selectedScheduleLabel().toLowerCase()}.`}
</p>
<p class="mt-1 text-[11px] leading-tight text-muted">
diff --git a/frontend-modern/src/utils/__tests__/aiPatrolSchedulePresentation.test.ts b/frontend-modern/src/utils/__tests__/aiPatrolSchedulePresentation.test.ts
index af4645eb50..06c1da6600 100644
--- a/frontend-modern/src/utils/__tests__/aiPatrolSchedulePresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/aiPatrolSchedulePresentation.test.ts
@@ -7,7 +7,7 @@ import {
describe('aiPatrolSchedulePresentation', () => {
it('returns canonical patrol schedule presets', () => {
- expect(PATROL_SCHEDULE_PRESETS).toContainEqual({ value: 0, label: 'Disabled' });
+ expect(PATROL_SCHEDULE_PRESETS).toContainEqual({ value: 0, label: 'Off' });
expect(PATROL_SCHEDULE_PRESETS).toContainEqual({ value: 360, label: '6 hours' });
});
diff --git a/frontend-modern/src/utils/aiPatrolSchedulePresentation.ts b/frontend-modern/src/utils/aiPatrolSchedulePresentation.ts
index 49b4bfce21..2c4c4df4a0 100644
--- a/frontend-modern/src/utils/aiPatrolSchedulePresentation.ts
+++ b/frontend-modern/src/utils/aiPatrolSchedulePresentation.ts
@@ -4,7 +4,7 @@ export interface PatrolScheduleOption {
}
export const PATROL_SCHEDULE_PRESETS: readonly PatrolScheduleOption[] = [
- { value: 0, label: 'Disabled' },
+ { value: 0, label: 'Off' },
{ value: 10, label: '10 min' },
{ value: 15, label: '15 min' },
{ value: 30, label: '30 min' },