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.

Polish: Fix Login tests and standardise DiagnosticsPanel types

rcourtman2e3fa66e8d36
diff --git a/frontend-modern/src/components/Settings/DiagnosticsPanel.tsx b/frontend-modern/src/components/Settings/DiagnosticsPanel.tsx
index 8bc6a5ef61..bc7e4439ed 100644
--- a/frontend-modern/src/components/Settings/DiagnosticsPanel.tsx
+++ b/frontend-modern/src/components/Settings/DiagnosticsPanel.tsx
@@ -150,12 +150,16 @@ function formatRelativeTime(timestamp?: string | number): string {
return `${Math.floor(diffSec / 86400)}d ago`;
}
+import type { JSX } from 'solid-js';
+
+// ...
+
// DiagnosticCard - a mini card component for individual diagnostic items
const DiagnosticCard: Component<{
title: string;
icon: Component<{ class?: string }>;
status?: 'success' | 'warning' | 'error' | 'info';
- children: any;
+ children: JSX.Element;
}> = (props) => {
const statusColors = {
success: 'border-green-200 dark:border-green-800 bg-green-50/50 dark:bg-green-900/20',