fix(ui): add missing animate property to connection indicator

- Add animate: false to connected state config to fix TypeScript error
- Integrate fixImageAnalysisConfig() into auto-repair for Fix 5
This commit is contained in:
kaitranntt
2026-02-03 23:54:29 -05:00
parent 3c1cf91da4
commit 57f7a70d67
2 changed files with 16 additions and 1 deletions
+15
View File
@@ -15,6 +15,7 @@ import {
import { getPortProcess, isCLIProxyProcess } from '../../utils/port-utils';
import { killProcessOnPort, getPlatformName } from '../../utils/platform-commands';
import { createSpinner } from '../checks/types';
import { fixImageAnalysisConfig } from '../checks/image-analysis-check';
const ora = createSpinner();
@@ -132,6 +133,20 @@ export async function runAutoRepair(): Promise<void> {
symlinkSpinner.fail(`${fail('Error')} Could not fix symlink: ${(err as Error).message}`);
}
// Fix 5: Image analysis config validation
const imageSpinner = ora('Checking image analysis config').start();
try {
const imageFixed = await fixImageAnalysisConfig();
if (imageFixed) {
imageSpinner.succeed(`${ok('Fixed')} Repaired image analysis configuration`);
fixed++;
} else {
imageSpinner.succeed(`${ok('OK')} Image analysis config is valid`);
}
} catch (err) {
imageSpinner.fail(`${fail('Error')} Could not fix image config: ${(err as Error).message}`);
}
// Summary
console.log('');
if (fixed > 0) {
@@ -11,7 +11,7 @@ export function ConnectionIndicator() {
const { status, isReconnecting } = useWebSocket();
const statusConfig = {
connected: { icon: Wifi, color: 'text-green-600', label: 'Connected' },
connected: { icon: Wifi, color: 'text-green-600', label: 'Connected', animate: false },
connecting: {
icon: RefreshCw,
color: 'text-yellow-500',