mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 10:16:49 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user