feat(app): phone onboarding (server, then password) kept across launches; a known server opens straight into the app; a refused session asks for the password

This commit is contained in:
2026-10-23 23:52:34 +01:00
parent 57504b73d4
commit 636115bb22
12 changed files with 650 additions and 33 deletions
@@ -0,0 +1,13 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:pipelines_app/application/app_session.dart';
void main() {
test('a known server opens the app instead of the connection screen', () {
final fresh = AppSession(endpoint: null);
final known = AppSession(endpoint: null, knownServer: true);
addTearDown(fresh.dispose);
addTearDown(known.dispose);
expect(fresh.everConnected, isFalse);
expect(known.everConnected, isTrue);
});
}