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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Fix NaN propagation in alert grouping window and AI duration display
rcourtman7b2849d16d09
diff --git a/frontend-modern/src/components/Settings/AIModelSelectionSection.tsx b/frontend-modern/src/components/Settings/AIModelSelectionSection.tsxindex 3998a85e45..7ce7e46e15 100644--- a/frontend-modern/src/components/Settings/AIModelSelectionSection.tsx+++ b/frontend-modern/src/components/Settings/AIModelSelectionSection.tsx@@ -126,7 +126,8 @@ export const PatrolPreflightControl: Component<{ state: AISettingsState }> = (co};const formatDuration = (ms: number) => {- if (ms < 1000) return `${ms}ms`;+ if (!Number.isFinite(ms) || ms < 0) return '-';+ if (ms < 1000) return `${Math.round(ms)}ms`;return `${(ms / 1000).toFixed(1)}s`;};diff --git a/frontend-modern/src/features/alerts/useAlertScheduleState.ts b/frontend-modern/src/features/alerts/useAlertScheduleState.tsindex be1be54a3f..28297c3fa1 100644--- a/frontend-modern/src/features/alerts/useAlertScheduleState.ts+++ b/frontend-modern/src/features/alerts/useAlertScheduleState.ts@@ -254,9 +254,10 @@ export function useAlertScheduleState(props: UseAlertScheduleStateProps) {};const setGroupingWindow = (rawValue: string) => {+ const parsed = Number.parseInt(rawValue, 10);props.setGrouping({...props.grouping(),- window: Number.parseInt(rawValue, 10),+ window: Number.isNaN(parsed) ? props.grouping().window : parsed,});markUnsaved();};