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.

feat(frontend): improve AI settings UX and update defaults

rcourtman3d44a9e5178d
diff --git a/frontend-modern/src/components/Settings/AISettings.tsx b/frontend-modern/src/components/Settings/AISettings.tsx
index 8b20d93a20..f55ecd6481 100644
--- a/frontend-modern/src/components/Settings/AISettings.tsx
+++ b/frontend-modern/src/components/Settings/AISettings.tsx
@@ -1,5 +1,6 @@
import { Component, Show, createSignal, onMount, For, createMemo } from 'solid-js';
import { createStore } from 'solid-js/store';
+import { useNavigate } from '@solidjs/router';
import SettingsPanel from '@/components/shared/SettingsPanel';
import { Toggle } from '@/components/shared/Toggle';
import { HelpIcon } from '@/components/shared/HelpIcon';
@@ -91,6 +92,7 @@ function groupModelsByProvider(models: { id: string; name: string; description?:
}
export const AISettings: Component = () => {
+ const navigate = useNavigate();
const [settings, setSettings] = createSignal<AISettingsType | null>(null);
const [loading, setLoading] = createSignal(false);
const [saving, setSaving] = createSignal(false);
@@ -787,6 +789,27 @@ export const AISettings: Component = () => {
</Show>
<Show when={!loading()}>
+ <Show when={form.enabled}>
+ <div class="flex items-start gap-2 text-xs text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg p-3 mb-4">
+ <svg class="w-4 h-4 mt-0.5 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
+ </svg>
+ <span>
+ Patrol runs automatically every{' '}
+ {form.patrolIntervalMinutes >= 60
+ ? `${Math.round(form.patrolIntervalMinutes / 60)} hour${Math.round(form.patrolIntervalMinutes / 60) === 1 ? '' : 's'}`
+ : `${form.patrolIntervalMinutes} minute${form.patrolIntervalMinutes === 1 ? '' : 's'}`}{' '}
+ to monitor your infrastructure.{' '}
+ <button
+ type="button"
+ class="underline hover:text-blue-800 dark:hover:text-blue-300"
+ onClick={() => navigate('/ai')}
+ >
+ Configure schedule & autonomy
+ </button>
+ </span>
+ </div>
+ </Show>
<div class="space-y-6">
{/* Default Model Selection - Always visible */}
<div class={formField}>
diff --git a/frontend-modern/src/components/Settings/NetworkSettingsPanel.tsx b/frontend-modern/src/components/Settings/NetworkSettingsPanel.tsx
index 07201d3513..f875681efd 100644
--- a/frontend-modern/src/components/Settings/NetworkSettingsPanel.tsx
+++ b/frontend-modern/src/components/Settings/NetworkSettingsPanel.tsx
@@ -173,8 +173,9 @@ export const NetworkSettingsPanel: Component<NetworkSettingsPanelProps> = (props
Auto (slower, full scan)
</p>
<p class="text-xs text-gray-500 dark:text-gray-400">
- Scans container, local, and gateway networks. Large networks may time out
- after two minutes.
+ Scans all network interfaces on this host, including container bridges, local
+ subnets, and gateways. On large or shared networks, consider using a custom
+ subnet instead.
</p>
</div>
</label>
@@ -378,8 +379,8 @@ export const NetworkSettingsPanel: Component<NetworkSettingsPanelProps> = (props
</Show>
<Show when={!props.discoverySubnetError() && props.discoveryMode() === 'auto'}>
<p class="text-xs text-gray-500 dark:text-gray-400">
- Auto scans every reachable network phase. Large networks may time out — switch
- to custom subnets to narrow the search.
+ Auto scans all host network interfaces, which may include corporate or shared
+ networks. Switch to a custom subnet for faster, more targeted scans.
</p>
</Show>
<Show when={!props.discoverySubnetError() && props.discoveryMode() === 'custom'}>
diff --git a/frontend-modern/src/components/Settings/Settings.tsx b/frontend-modern/src/components/Settings/Settings.tsx
index f6c0a4bf01..5bc723c38e 100644
--- a/frontend-modern/src/components/Settings/Settings.tsx
+++ b/frontend-modern/src/components/Settings/Settings.tsx
@@ -609,7 +609,7 @@ const Settings: Component<SettingsProps> = (props) => {
PVE_POLLING_MIN_SECONDS,
);
const [pvePollingCustomSeconds, setPVEPollingCustomSeconds] = createSignal(30);
- const [allowedOrigins, setAllowedOrigins] = createSignal('*');
+ const [allowedOrigins, setAllowedOrigins] = createSignal('');
const [discoveryEnabled, setDiscoveryEnabled] = createSignal(false);
const [discoverySubnet, setDiscoverySubnet] = createSignal('auto');
const [discoveryMode, setDiscoveryMode] = createSignal<'auto' | 'custom'>('auto');
@@ -1741,7 +1741,7 @@ const Settings: Component<SettingsProps> = (props) => {
setPVEPollingSelection('custom');
setPVEPollingCustomSeconds(clampedPVESecs);
}
- setAllowedOrigins(systemSettings.allowedOrigins || '*');
+ setAllowedOrigins(systemSettings.allowedOrigins ?? '');
// Connection timeout is backend-only
// Load discovery settings (default to false when unset)
setDiscoveryEnabled(systemSettings.discoveryEnabled ?? false);
diff --git a/frontend-modern/src/components/patrol/RunHistoryEntry.tsx b/frontend-modern/src/components/patrol/RunHistoryEntry.tsx
index 659cc45027..7a43ac5001 100644
--- a/frontend-modern/src/components/patrol/RunHistoryEntry.tsx
+++ b/frontend-modern/src/components/patrol/RunHistoryEntry.tsx
@@ -300,6 +300,7 @@ export function RunHistoryEntry(props: RunHistoryEntryProps) {
<Show when={showRunAnalysis()}>
<div
class="mt-2 p-3 rounded bg-white dark:bg-gray-900 text-sm leading-relaxed text-gray-700 dark:text-gray-200 max-h-64 overflow-auto prose prose-sm max-w-none dark:prose-invert prose-headings:text-sm prose-headings:mt-2 prose-headings:mb-1 prose-p:my-1 prose-ul:my-1 prose-li:my-0"
+ // eslint-disable-next-line solid/no-innerhtml
innerHTML={renderMarkdown(sanitizeAnalysis(run.ai_analysis))}
/>
</Show>
diff --git a/frontend-modern/src/types/ai.ts b/frontend-modern/src/types/ai.ts
index 5baf8aa843..3220e24115 100644
--- a/frontend-modern/src/types/ai.ts
+++ b/frontend-modern/src/types/ai.ts
@@ -113,10 +113,10 @@ export interface AITestResult {
// Default models for each provider
export const DEFAULT_MODELS: Record<AIProvider, string> = {
- anthropic: 'claude-opus-4-5-20251101',
+ anthropic: 'claude-haiku-4-5',
openai: 'gpt-4o',
ollama: 'llama3',
- deepseek: 'deepseek-reasoner',
+ deepseek: 'deepseek-chat',
gemini: 'gemini-2.5-flash',
};