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
style: replace emojis with text indicators in UI components
rcourtmaned76030b0332
diff --git a/frontend-modern/src/components/SecurityWarning.tsx b/frontend-modern/src/components/SecurityWarning.tsxindex a037852ad4..96635f156f 100644--- a/frontend-modern/src/components/SecurityWarning.tsx+++ b/frontend-modern/src/components/SecurityWarning.tsx@@ -92,11 +92,11 @@ export const SecurityWarning: Component = () => {return 'text-red-600 dark:text-red-400';};- const getScoreEmoji = (score: number, max: number) => {+ const getScoreIcon = (score: number, max: number) => {const percentage = (score / max) * 100;- if (percentage >= 80) return 'π‘οΈ';- if (percentage >= 60) return 'β οΈ';- return 'π¨';+ if (percentage >= 80) return 'shield';+ if (percentage >= 60) return 'warning';+ return 'alert';};// Show more aggressively if public access detected@@ -120,16 +120,17 @@ export const SecurityWarning: Component = () => {return (<Portal><div- class={`fixed top-0 left-0 right-0 z-50 border-b shadow-sm ${- status()!.publicAccess && !status()!.hasAuthentication+ class={`fixed top-0 left-0 right-0 z-50 border-b shadow-sm ${status()!.publicAccess && !status()!.hasAuthentication? 'bg-red-50 dark:bg-red-900/20 border-red-200 dark:border-red-800': 'bg-yellow-50 dark:bg-yellow-900/20 border-yellow-200 dark:border-yellow-800'- }`}+ }`}><div class="max-w-7xl mx-auto px-4 py-3"><div class="flex items-start justify-between"><div class="flex items-start space-x-3">- <span class="text-2xl">{getScoreEmoji(status()!.score, status()!.maxScore)}</span>+ <span class={`text-2xl ${getScoreIcon(status()!.score, status()!.maxScore) === 'shield' ? 'text-green-600' : getScoreIcon(status()!.score, status()!.maxScore) === 'warning' ? 'text-yellow-600' : 'text-red-600'}`}>+ {getScoreIcon(status()!.score, status()!.maxScore) === 'shield' ? 'β' : getScoreIcon(status()!.score, status()!.maxScore) === 'warning' ? '!' : '!!'}+ </span><div><div class="flex items-center gap-3"><SectionHeader@@ -157,7 +158,7 @@ export const SecurityWarning: Component = () => {<p class="text-sm text-gray-700 dark:text-gray-300 mt-1">{status()!.publicAccess ? (<span class="font-semibold text-red-700 dark:text-red-300">- β οΈ PUBLIC NETWORK ACCESS DETECTED - Your Proxmox credentials are exposed to+ WARNING: PUBLIC NETWORK ACCESS DETECTED - Your Proxmox credentials are exposed tothe internet!</span>) : (@@ -172,13 +173,13 @@ export const SecurityWarning: Component = () => {<spanclass={status()!.credentialsEncrypted ? 'text-green-600' : 'text-red-600'}>- {status()!.credentialsEncrypted ? 'β ' : 'β'}+ {status()!.credentialsEncrypted ? 'Yes' : 'No'}</span><span>Credentials encrypted at rest</span></div><div class="flex items-center gap-2"><span class={status()!.exportProtected ? 'text-green-600' : 'text-red-600'}>- {status()!.exportProtected ? 'β ' : 'β'}+ {status()!.exportProtected ? 'Yes' : 'No'}</span><span>Export requires authentication</span></div>@@ -186,19 +187,19 @@ export const SecurityWarning: Component = () => {<spanclass={status()!.hasAuthentication ? 'text-green-600' : 'text-red-600'}>- {status()!.hasAuthentication ? 'β ' : 'β'}+ {status()!.hasAuthentication ? 'Yes' : 'No'}</span><span>Authentication enabled</span></div><div class="flex items-center gap-2"><span class={status()!.hasHTTPS ? 'text-green-600' : 'text-red-600'}>- {status()!.hasHTTPS ? 'β ' : 'β'}+ {status()!.hasHTTPS ? 'Yes' : 'No'}</span><span>HTTPS connection</span></div><div class="flex items-center gap-2"><span class={status()!.hasAuditLogging ? 'text-green-600' : 'text-red-600'}>- {status()!.hasAuditLogging ? 'β ' : 'β'}+ {status()!.hasAuditLogging ? 'Yes' : 'No'}</span><span>Audit logging enabled</span></div>diff --git a/frontend-modern/src/components/Settings/NodeModal.tsx b/frontend-modern/src/components/Settings/NodeModal.tsxindex fd6c2ffb65..584f69da64 100644--- a/frontend-modern/src/components/Settings/NodeModal.tsx+++ b/frontend-modern/src/components/Settings/NodeModal.tsx@@ -35,15 +35,15 @@ interface NodeModalProps {}type TemperatureTransportDetail = {- tone: 'info' | 'success' | 'warning' | 'danger';- message: string;- disable?: boolean;+ tone: 'info' | 'success' | 'warning' | 'danger';+ message: string;+ disable?: boolean;};interface ProxyInstallResponse {- command: string;- pulseURL: string;- node?: string;+ command: string;+ pulseURL: string;+ node?: string;}const deriveNameFromHost = (host: string): string => {@@ -280,11 +280,11 @@ export const NodeModal: Component<NodeModalProps> = (props) => {const pmgConfig =node.type === 'pmg'? (node as NodeConfig & {- monitorMailStats?: boolean;- monitorQueues?: boolean;- monitorQuarantine?: boolean;- monitorDomainStats?: boolean;- })+ monitorMailStats?: boolean;+ monitorQueues?: boolean;+ monitorQuarantine?: boolean;+ monitorDomainStats?: boolean;+ }): undefined;const formSource: ReturnType<typeof getCleanFormData> = {@@ -776,11 +776,10 @@ export const NodeModal: Component<NodeModalProps> = (props) => {<buttontype="button"onClick={() => updateField('setupMode', 'agent')}- class={`inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-md border border-transparent transition-colors ${- formData().setupMode === 'agent'- ? 'bg-white dark:bg-gray-800 text-blue-600 dark:text-blue-300 border-gray-300 dark:border-gray-600 shadow-sm'- : 'text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-300 hover:bg-gray-200/60 dark:hover:bg-gray-700/60'- }`}+ class={`inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-md border border-transparent transition-colors ${formData().setupMode === 'agent'+ ? 'bg-white dark:bg-gray-800 text-blue-600 dark:text-blue-300 border-gray-300 dark:border-gray-600 shadow-sm'+ : 'text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-300 hover:bg-gray-200/60 dark:hover:bg-gray-700/60'+ }`}>Agent Install<span class="ml-1.5 px-1.5 py-0.5 text-[10px] font-semibold bg-green-100 dark:bg-green-900/50 text-green-700 dark:text-green-300 rounded">@@ -790,22 +789,20 @@ export const NodeModal: Component<NodeModalProps> = (props) => {<buttontype="button"onClick={() => updateField('setupMode', 'auto')}- class={`inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-md border border-transparent transition-colors ${- formData().setupMode === 'auto'- ? 'bg-white dark:bg-gray-800 text-blue-600 dark:text-blue-300 border-gray-300 dark:border-gray-600 shadow-sm'- : 'text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-300 hover:bg-gray-200/60 dark:hover:bg-gray-700/60'- }`}+ class={`inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-md border border-transparent transition-colors ${formData().setupMode === 'auto'+ ? 'bg-white dark:bg-gray-800 text-blue-600 dark:text-blue-300 border-gray-300 dark:border-gray-600 shadow-sm'+ : 'text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-300 hover:bg-gray-200/60 dark:hover:bg-gray-700/60'+ }`}>API Only</button><buttontype="button"onClick={() => updateField('setupMode', 'manual')}- class={`inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-md border border-transparent transition-colors ${- formData().setupMode === 'manual'- ? 'bg-white dark:bg-gray-800 text-blue-600 dark:text-blue-300 border-gray-300 dark:border-gray-600 shadow-sm'- : 'text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-300 hover:bg-gray-200/60 dark:hover:bg-gray-700/60'- }`}+ class={`inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-md border border-transparent transition-colors ${formData().setupMode === 'manual'+ ? 'bg-white dark:bg-gray-800 text-blue-600 dark:text-blue-300 border-gray-300 dark:border-gray-600 shadow-sm'+ : 'text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-300 hover:bg-gray-200/60 dark:hover:bg-gray-700/60'+ }`}>Manual</button>@@ -1007,7 +1004,7 @@ export const NodeModal: Component<NodeModalProps> = (props) => {<code class="text-blue-400">{formData().host? 'Click the button above to copy the setup command'- : 'β οΈ Please enter the Host URL above first'}+ : 'Please enter the Host URL above first'}</code>}>@@ -1153,7 +1150,7 @@ export const NodeModal: Component<NodeModalProps> = (props) => {</li></ul><p class="text-xs text-green-600 dark:text-green-400 mt-2 font-semibold">- β¨ Fully automatic - no manual token copying needed!+ Fully automatic - no manual token copying needed!</p></div></Show>@@ -1252,7 +1249,7 @@ export const NodeModal: Component<NodeModalProps> = (props) => {</code></div><p class="text-amber-600 dark:text-amber-400 text-xs mt-1">- β οΈ Copy the token value immediately - it won't be shown again!+ Important: Copy the token value immediately - it won't be shown again!</p></div>@@ -1337,7 +1334,7 @@ export const NodeModal: Component<NodeModalProps> = (props) => {</code></div><p class="text-gray-600 dark:text-gray-400 text-xs mt-1">- βΉοΈ PVEAuditor gives read-only API access. PulseMonitor adds+ Note: PVEAuditor gives read-only API access. PulseMonitor addsSys.Audit plus either VM.Monitor (PVE 8) or VM.GuestAgent.Audit(PVE 9+) for disk and guest metrics. PVEDatastoreAdmin on/storage adds backup visibility.@@ -1374,11 +1371,10 @@ export const NodeModal: Component<NodeModalProps> = (props) => {<buttontype="button"onClick={() => updateField('setupMode', 'agent')}- class={`inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium rounded-md border border-transparent transition-colors ${- formData().setupMode === 'agent'- ? 'bg-white dark:bg-gray-800 text-blue-600 dark:text-blue-300 border-gray-300 dark:border-gray-600 shadow-sm'- : 'text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-300 hover:bg-gray-200/60 dark:hover:bg-gray-700/60'- }`}+ class={`inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium rounded-md border border-transparent transition-colors ${formData().setupMode === 'agent'+ ? 'bg-white dark:bg-gray-800 text-blue-600 dark:text-blue-300 border-gray-300 dark:border-gray-600 shadow-sm'+ : 'text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-300 hover:bg-gray-200/60 dark:hover:bg-gray-700/60'+ }`}>Agent Install<span class="text-[10px] px-1.5 py-0.5 bg-green-100 dark:bg-green-900/50 text-green-700 dark:text-green-300 rounded">Recommended</span>@@ -1386,22 +1382,20 @@ export const NodeModal: Component<NodeModalProps> = (props) => {<buttontype="button"onClick={() => updateField('setupMode', 'auto')}- class={`inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-md border border-transparent transition-colors ${- formData().setupMode === 'auto'- ? 'bg-white dark:bg-gray-800 text-blue-600 dark:text-blue-300 border-gray-300 dark:border-gray-600 shadow-sm'- : 'text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-300 hover:bg-gray-200/60 dark:hover:bg-gray-700/60'- }`}+ class={`inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-md border border-transparent transition-colors ${formData().setupMode === 'auto'+ ? 'bg-white dark:bg-gray-800 text-blue-600 dark:text-blue-300 border-gray-300 dark:border-gray-600 shadow-sm'+ : 'text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-300 hover:bg-gray-200/60 dark:hover:bg-gray-700/60'+ }`}>API Only</button><buttontype="button"onClick={() => updateField('setupMode', 'manual')}- class={`inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-md border border-transparent transition-colors ${- formData().setupMode === 'manual'- ? 'bg-white dark:bg-gray-800 text-blue-600 dark:text-blue-300 border-gray-300 dark:border-gray-600 shadow-sm'- : 'text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-300 hover:bg-gray-200/60 dark:hover:bg-gray-700/60'- }`}+ class={`inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-md border border-transparent transition-colors ${formData().setupMode === 'manual'+ ? 'bg-white dark:bg-gray-800 text-blue-600 dark:text-blue-300 border-gray-300 dark:border-gray-600 shadow-sm'+ : 'text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-300 hover:bg-gray-200/60 dark:hover:bg-gray-700/60'+ }`}>Manual Setup</button>@@ -1931,30 +1925,30 @@ export const NodeModal: Component<NodeModalProps> = (props) => {</ul></div></div>+ </Show>+ </div>+ </Show>+ <Show when={props.nodeType === 'pmg'}>+ <div class="space-y-3 text-xs text-gray-700 dark:text-gray-200">+ <p>+ Generate a dedicated API token in <strong>Configuration β API Tokens</strong> on your+ Mail Gateway. We recommend creating a service user such as <code class="font-mono">pulse-monitor@pmg</code>+ with <em>Auditor</em> privileges.+ </p>+ <ol class="list-decimal ml-4 space-y-1">+ <li>Click <em>Add</em> and choose the service user (or create one if needed).</li>+ <li>Enable <em>Privilege Separation</em> and assign the <em>Auditor</em> role.</li>+ <li>Copy the generated Token ID (e.g. <code class="font-mono">pulse-monitor@pmg!pulse-edge</code>) and the secret value into the fields below.</li>+ </ol>+ <p class="text-xs text-gray-500 dark:text-gray-400">+ Pulse only requires read-only access. Avoid granting administrator permissions to the token.+ </p>+ </div></Show></div>- </Show>- <Show when={props.nodeType === 'pmg'}>- <div class="space-y-3 text-xs text-gray-700 dark:text-gray-200">- <p>- Generate a dedicated API token in <strong>Configuration β API Tokens</strong> on your- Mail Gateway. We recommend creating a service user such as <code class="font-mono">pulse-monitor@pmg</code>- with <em>Auditor</em> privileges.- </p>- <ol class="list-decimal ml-4 space-y-1">- <li>Click <em>Add</em> and choose the service user (or create one if needed).</li>- <li>Enable <em>Privilege Separation</em> and assign the <em>Auditor</em> role.</li>- <li>Copy the generated Token ID (e.g. <code class="font-mono">pulse-monitor@pmg!pulse-edge</code>) and the secret value into the fields below.</li>- </ol>- <p class="text-xs text-gray-500 dark:text-gray-400">- Pulse only requires read-only access. Avoid granting administrator permissions to the token.- </p>- </div>- </Show>- </div>- {/* Token Input Fields */}- <div class="grid grid-cols-1 gap-4 md:grid-cols-2">+ {/* Token Input Fields */}+ <div class="grid grid-cols-1 gap-4 md:grid-cols-2"><div class={formField}><label class={labelClass()}>Token ID <span class="text-red-500">*</span>@@ -2261,13 +2255,12 @@ export const NodeModal: Component<NodeModalProps> = (props) => {return null;})()}<div- class={`mx-6 p-3 rounded-lg text-sm ${- testResult()?.status === 'success'- ? 'bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 text-green-800 dark:text-green-200'- : testResult()?.status === 'warning'- ? 'bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-800 text-amber-800 dark:text-amber-200'- : 'bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 text-red-800 dark:text-red-200'- }`}+ class={`mx-6 p-3 rounded-lg text-sm ${testResult()?.status === 'success'+ ? 'bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 text-green-800 dark:text-green-200'+ : testResult()?.status === 'warning'+ ? 'bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-800 text-amber-800 dark:text-amber-200'+ : 'bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 text-red-800 dark:text-red-200'+ }`}><div class="flex items-start gap-2"><Show when={testResult()?.status === 'success'}>