replace daemon indicator with ptyc/pql tool status

The status bar now shows whether ptyc and pql are findable on PATH
(green = found, amber = missing) instead of the obsolete daemon
connection state. Per D-056 there is no daemon to connect to.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-23 00:43:18 +02:00
co-authored by Claude Opus 4.6
parent f2c20fe2d0
commit 3df0a3f026
3 changed files with 85 additions and 91 deletions
+5 -29
View File
@@ -1,9 +1,7 @@
import 'dart:ui';
import 'package:clide/builtin/ipc_status/ipc_status.dart';
import 'package:clide/builtin/ipc_status/src/status_item.dart';
import 'package:clide/extension/extension.dart';
import 'package:clide/kernel/kernel.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import '../../helpers/kernel_fixture.dart';
@@ -14,18 +12,7 @@ void main() {
late KernelFixture f;
setUp(() async {
f = await KernelFixture.create(
i18nCatalogs: {
'builtin.ipc-status': {
const Locale('en', 'US'): const {
'connected': {'translation': 'connected'},
'connected.hint': {'translation': 'daemon reachable'},
'disconnected': {'translation': 'disconnected'},
'disconnected.hint': {'translation': 'daemon down'},
},
},
},
);
f = await KernelFixture.create();
});
tearDown(() async => f.dispose());
@@ -41,21 +28,10 @@ void main() {
expect(items.first.priority, 100);
});
testWidgets('renders "disconnected" label until connected', (tester) async {
await tester.pumpWidget(
harness(f, IpcStatusItem(ipc: f.services.ipc)),
);
expect(find.text('disconnected'), findsOneWidget);
});
testWidgets('flips to "connected" when the client reports connected',
(tester) async {
await tester.pumpWidget(
harness(f, IpcStatusItem(ipc: f.services.ipc)),
);
f.ipc.setConnected(true);
testWidgets('renders without crashing', (tester) async {
await tester.pumpWidget(harness(f, const ToolStatusItem()));
await tester.pumpAndSettle();
expect(find.text('connected'), findsOneWidget);
expect(tester.takeException(), isNull);
});
});
}