mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-26 15:40:12 +00:00
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
598da7fbf7
commit
13c19aeeeb
3 changed files with 7 additions and 16 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue