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: Remove duplicate NodeConfigWithStatus definitions

rcourtman1c9b42a94843
diff --git a/frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx b/frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx
index ab2dfb33e5..845ca57e13 100644
--- a/frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx
+++ b/frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx
@@ -1,14 +1,8 @@
import { Component, For, Show, createMemo } from 'solid-js';
-import type { NodeConfig } from '@/types/nodes';
+import type { NodeConfig, NodeConfigWithStatus } from '@/types/nodes';
import type { Node, PBSInstance, PMGInstance, Host } from '@/types/api';
import { Card } from '@/components/shared/Card';
-type NodeConfigWithStatus = NodeConfig & {
- hasPassword?: boolean;
- hasToken?: boolean;
- status: 'connected' | 'disconnected' | 'offline' | 'error' | 'pending';
-};
-
export interface TemperatureTransportInfo {
httpMap: Record<string, { reachable: boolean; error?: string; url?: string }>;
socketStatus: 'healthy' | 'error' | 'missing';
@@ -21,11 +15,7 @@ type TemperatureSocketCooldownInfo = {
lastError?: string;
};
-// Host agent info passed from state
-interface HostAgentInfo {
- hostname: string;
- status: string;
-}
+
interface PveNodesTableProps {
nodes: NodeConfigWithStatus[];
diff --git a/frontend-modern/src/components/Settings/ProxmoxAgentNodesPanel.tsx b/frontend-modern/src/components/Settings/ProxmoxAgentNodesPanel.tsx
index 1de0578b92..8c3d988cff 100644
--- a/frontend-modern/src/components/Settings/ProxmoxAgentNodesPanel.tsx
+++ b/frontend-modern/src/components/Settings/ProxmoxAgentNodesPanel.tsx
@@ -32,13 +32,7 @@ interface DiscoveryScanStatus {
errors?: string[];
}
-type NodeConfigWithStatus = NodeConfig & {
- hasPassword?: boolean;
- hasToken?: boolean;
- connectionStatus?: 'connected' | 'error' | 'pending' | 'unknown';
- connectionError?: string;
- status?: 'connected' | 'error' | 'pending' | 'unknown';
-};
+
interface ProxmoxAgentNodesPanelProps {
agentType: AgentType;