Label machine provenance and choose server before chat harness
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import 'package:pipelines_app/core/servers/server_catalog.dart';
|
||||
import 'package:pipelines_app/core/servers/server_catalog_store.dart';
|
||||
import 'package:pipelines_app/features/settings/server_connections.dart';
|
||||
import 'health_probe_fixture.dart';
|
||||
import 'package:pipelines_app/ui/motion/quick_switch_animation.dart';
|
||||
import 'package:pipelines_app/ui/motion/animation_speed.dart';
|
||||
@@ -791,7 +794,33 @@ Future<void> main() async {
|
||||
final query = params['q'];
|
||||
if (query != null && query.isNotEmpty) _typeSearchWhenShown(query);
|
||||
useAppUrlStrategy();
|
||||
ServerConnections? machines;
|
||||
if (params['machines'] == '1') {
|
||||
machines = ServerConnections(
|
||||
store: MemoryServerCatalogStore(
|
||||
catalog: ServerCatalog(
|
||||
servers: [
|
||||
SavedServer.validated(
|
||||
id: 'mac',
|
||||
name: 'Alan’s Mac',
|
||||
endpoints: ['ws://mac.fixture/connect'],
|
||||
),
|
||||
SavedServer.validated(
|
||||
id: 'linux',
|
||||
name: 'Linux desktop',
|
||||
endpoints: ['ws://linux.fixture/connect'],
|
||||
),
|
||||
],
|
||||
selectedId: 'mac',
|
||||
),
|
||||
),
|
||||
onSelected: (_) async {},
|
||||
);
|
||||
await machines.load();
|
||||
}
|
||||
final app = PipelinesApp(
|
||||
serverId: machines?.catalog.active?.id,
|
||||
servers: machines,
|
||||
server: fixtureServer(params),
|
||||
client: PipelinesClient(channelFactory: (_) => _FixtureChannel()),
|
||||
cupertino: cupertino,
|
||||
|
||||
Reference in New Issue
Block a user