mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-11 03:13:12 +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:
1 parent
3c1cf91da4
commit
57f7a70d67
2 files changed
+16
-1
No files matched your search
@@ -15,6 +15,7 @@ import {
|
|||||||
import { getPortProcess, isCLIProxyProcess } from '../../utils/port-utils';
|
import { getPortProcess, isCLIProxyProcess } from '../../utils/port-utils';
|
||||||
import { killProcessOnPort, getPlatformName } from '../../utils/platform-commands';
|
import { killProcessOnPort, getPlatformName } from '../../utils/platform-commands';
|
||||||
import { createSpinner } from '../checks/types';
|
import { createSpinner } from '../checks/types';
|
||||||
|
import { fixImageAnalysisConfig } from '../checks/image-analysis-check';
|
||||||
|
|
||||||
const ora = createSpinner();
|
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}`);
|
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
|
// Summary
|
||||||
console.log('');
|
console.log('');
|
||||||
if (fixed > 0) {
|
if (fixed > 0) {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export function ConnectionIndicator() {
|
|||||||
const { status, isReconnecting } = useWebSocket();
|
const { status, isReconnecting } = useWebSocket();
|
||||||
|
|
||||||
const statusConfig = {
|
const statusConfig = {
|
||||||
connected: { icon: Wifi, color: 'text-green-600', label: 'Connected' },
|
connected: { icon: Wifi, color: 'text-green-600', label: 'Connected', animate: false },
|
||||||
connecting: {
|
connecting: {
|
||||||
icon: RefreshCw,
|
icon: RefreshCw,
|
||||||
color: 'text-yellow-500',
|
color: 'text-yellow-500',
|
||||||
|
|||||||
Reference in new issue
Block a user