Fix ESLint errors breaking CI
- KubernetesClusters.tsx: Escape -> as → in JSX text to fix parsing error - Settings.tsx: Remove unused HostProxySummary interface (deprecated in v5) - AIOverviewTable.tsx: Prefix unused summarizeAction with underscore
This commit is contained in:
parent
b7312a22ac
commit
352a6d4213
3 changed files with 7 additions and 16 deletions
|
|
@ -606,11 +606,10 @@ export const KubernetesClusters: Component<KubernetesClustersProps> = (props) =>
|
||||||
type="button"
|
type="button"
|
||||||
onClick={handleAnalyzeCluster}
|
onClick={handleAnalyzeCluster}
|
||||||
disabled={analysisLoading() || !analysisClusterId() || !aiConfigured()}
|
disabled={analysisLoading() || !analysisClusterId() || !aiConfigured()}
|
||||||
class={`px-3 py-1.5 text-xs font-medium rounded-lg transition-colors ${
|
class={`px-3 py-1.5 text-xs font-medium rounded-lg transition-colors ${analysisLoading() || !analysisClusterId() || !aiConfigured()
|
||||||
analysisLoading() || !analysisClusterId() || !aiConfigured()
|
|
||||||
? 'bg-gray-200 dark:bg-gray-700 text-gray-500 dark:text-gray-400 cursor-not-allowed'
|
? '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'
|
: 'bg-blue-600 text-white hover:bg-blue-700'
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
{analysisLoading() ? 'Analyzing...' : 'Analyze'}
|
{analysisLoading() ? 'Analyzing...' : 'Analyze'}
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -621,7 +620,7 @@ export const KubernetesClusters: Component<KubernetesClustersProps> = (props) =>
|
||||||
|
|
||||||
<Show when={!aiLoading() && !aiConfigured()}>
|
<Show when={!aiLoading() && !aiConfigured()}>
|
||||||
<div class="text-xs text-amber-600 dark:text-amber-400">
|
<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>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -158,16 +158,7 @@ type TemperatureSocketCooldownInfo = {
|
||||||
lastError?: string;
|
lastError?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
interface HostProxySummary {
|
// HostProxySummary removed - pulse-sensor-proxy is deprecated in v5
|
||||||
requested?: boolean;
|
|
||||||
installed?: boolean;
|
|
||||||
hostSocketPresent?: boolean;
|
|
||||||
containerSocketPresent?: boolean | null;
|
|
||||||
lastUpdated?: string;
|
|
||||||
ctid?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
// HostProxyStatusResponse removed - pulse-sensor-proxy is deprecated in v5
|
|
||||||
|
|
||||||
interface TemperatureProxyDiagnostic {
|
interface TemperatureProxyDiagnostic {
|
||||||
legacySSHDetected: boolean;
|
legacySSHDetected: boolean;
|
||||||
|
|
|
||||||
|
|
@ -282,7 +282,8 @@ export const AIOverviewTable: Component<{ showWhenEmpty?: boolean }> = (props) =
|
||||||
};
|
};
|
||||||
|
|
||||||
// Summarize a shell command action into a human-readable description
|
// 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();
|
const cmd = action.trim();
|
||||||
|
|
||||||
// Common command patterns and their summaries
|
// Common command patterns and their summaries
|
||||||
|
|
@ -357,7 +358,7 @@ export const AIOverviewTable: Component<{ showWhenEmpty?: boolean }> = (props) =
|
||||||
if (cmd.startsWith('[host]') || cmd.startsWith('[')) {
|
if (cmd.startsWith('[host]') || cmd.startsWith('[')) {
|
||||||
// Agent command - extract the actual command
|
// Agent command - extract the actual command
|
||||||
const innerCmd = cmd.replace(/^\[[\w\s]+\]\s*/, '');
|
const innerCmd = cmd.replace(/^\[[\w\s]+\]\s*/, '');
|
||||||
const inner = summarizeAction(innerCmd);
|
const inner = _summarizeAction(innerCmd);
|
||||||
return {
|
return {
|
||||||
title: inner.title,
|
title: inner.title,
|
||||||
subtitle: `${inner.subtitle} (via agent)`
|
subtitle: `${inner.subtitle} (via agent)`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue