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.

Fix ESLint errors breaking CI

rcourtman13c19aeeeb8d
diff --git a/frontend-modern/src/components/Kubernetes/KubernetesClusters.tsx b/frontend-modern/src/components/Kubernetes/KubernetesClusters.tsx
index 2b8400aa72..bec4fecc11 100644
--- a/frontend-modern/src/components/Kubernetes/KubernetesClusters.tsx
+++ b/frontend-modern/src/components/Kubernetes/KubernetesClusters.tsx
@@ -606,11 +606,10 @@ export const KubernetesClusters: Component<KubernetesClustersProps> = (props) =>
type="button"
onClick={handleAnalyzeCluster}
disabled={analysisLoading() || !analysisClusterId() || !aiConfigured()}
- class={`px-3 py-1.5 text-xs font-medium rounded-lg transition-colors ${
- analysisLoading() || !analysisClusterId() || !aiConfigured()
+ class={`px-3 py-1.5 text-xs font-medium rounded-lg transition-colors ${analysisLoading() || !analysisClusterId() || !aiConfigured()
? 'bg-gray-200 dark:bg-gray-700 text-gray-500 dark:text-gray-400 cursor-not-allowed'
: 'bg-blue-600 text-white hover:bg-blue-700'
- }`}
+ }`}
>
{analysisLoading() ? 'Analyzing...' : 'Analyze'}
</button>
@@ -621,7 +620,7 @@ export const KubernetesClusters: Component<KubernetesClustersProps> = (props) =>
<Show when={!aiLoading() && !aiConfigured()}>
<div class="text-xs text-amber-600 dark:text-amber-400">
- AI is not configured. Configure it in Settings -> AI.
+ AI is not configured. Configure it in Settings → AI.
</div>
</Show>
diff --git a/frontend-modern/src/components/Settings/Settings.tsx b/frontend-modern/src/components/Settings/Settings.tsx
index 0f5a97dd0b..f17f391555 100644
--- a/frontend-modern/src/components/Settings/Settings.tsx
+++ b/frontend-modern/src/components/Settings/Settings.tsx
@@ -158,16 +158,7 @@ type TemperatureSocketCooldownInfo = {
lastError?: string;
};
-interface HostProxySummary {
- requested?: boolean;
- installed?: boolean;
- hostSocketPresent?: boolean;
- containerSocketPresent?: boolean | null;
- lastUpdated?: string;
- ctid?: string;
-}
-
-// HostProxyStatusResponse removed - pulse-sensor-proxy is deprecated in v5
+// HostProxySummary removed - pulse-sensor-proxy is deprecated in v5
interface TemperatureProxyDiagnostic {
legacySSHDetected: boolean;
diff --git a/frontend-modern/src/components/shared/AIOverviewTable.tsx b/frontend-modern/src/components/shared/AIOverviewTable.tsx
index c40377ae51..59ca6bbdee 100644
--- a/frontend-modern/src/components/shared/AIOverviewTable.tsx
+++ b/frontend-modern/src/components/shared/AIOverviewTable.tsx
@@ -282,7 +282,8 @@ export const AIOverviewTable: Component<{ showWhenEmpty?: boolean }> = (props) =
};
// Summarize a shell command action into a human-readable description
- const summarizeAction = (action: string): { title: string; subtitle: string } => {
+ // Prefixed with underscore - not currently used but kept for future expansion
+ const _summarizeAction = (action: string): { title: string; subtitle: string } => {
const cmd = action.trim();
// Common command patterns and their summaries
@@ -357,7 +358,7 @@ export const AIOverviewTable: Component<{ showWhenEmpty?: boolean }> = (props) =
if (cmd.startsWith('[host]') || cmd.startsWith('[')) {
// Agent command - extract the actual command
const innerCmd = cmd.replace(/^\[[\w\s]+\]\s*/, '');
- const inner = summarizeAction(innerCmd);
+ const inner = _summarizeAction(innerCmd);
return {
title: inner.title,
subtitle: `${inner.subtitle} (via agent)`