feat(app): the native app signs in at the web login and carries the session on its socket and downloads

This commit is contained in:
2026-10-23 19:51:43 +01:00
parent d6fbea1665
commit 2fc0a4394b
13 changed files with 335 additions and 1 deletions
+4
View File
@@ -1,3 +1,4 @@
import '../core/session/server_session.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
@@ -43,6 +44,9 @@ Future<void> runPipelinesApp({
SettingsStore? settingsStore,
}) async {
useAppUrlStrategy();
WidgetsFlutterBinding.ensureInitialized();
// A phone behind the web login reconnects with its kept session.
await ServerSession.load();
final server = await resolveLaunchServer(
base: base,
configured: configured,
+2
View File
@@ -468,6 +468,8 @@ class _PipelinesAppState extends State<PipelinesApp>
),
AppDestination.settings: (_) => SettingsScreen(
client: _session.client,
// A phone signs in at the web login; a browser has its own.
showSignIn: !kIsWeb,
initialEndpoint: _session.endpoint,
embedded: true,
onOpenTemplates: _delegate.openTemplates,