diff --git a/frontend-modern/src/components/Kubernetes/KubernetesClusters.tsx b/frontend-modern/src/components/Kubernetes/KubernetesClusters.tsx index 2b8400aa7..bec4fecc1 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 = (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'} @@ -621,7 +620,7 @@ export const KubernetesClusters: Component = (props) =>
- AI is not configured. Configure it in Settings -> AI. + AI is not configured. Configure it in Settings → AI.
diff --git a/frontend-modern/src/components/Settings/Settings.tsx b/frontend-modern/src/components/Settings/Settings.tsx index 0f5a97dd0..f17f39155 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 c40377ae5..59ca6bbde 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)`