The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
feat(mobile): add download and sign-in steps under the QR camera
tony1399b887ddbd
diff --git a/mobile/lib/phone/welcome/scan_to_connect.dart b/mobile/lib/phone/welcome/scan_to_connect.dartindex 67a8e14d8..c14da99c8 100644--- a/mobile/lib/phone/welcome/scan_to_connect.dart+++ b/mobile/lib/phone/welcome/scan_to_connect.dart@@ -30,8 +30,10 @@ const kAddPhoneWhere = 'Harness menu → Add Phone';/// │ [ camera view ] │/// └──────────────────────────────┘/// How to get the QR code ([steps]; "Signing in…" over them while it does)-/// (1) Open Harness on your computer-/// (2) Click "Add Phone"+/// (1) Go to autonomous.ai/go+/// Download and install on your computer+/// (2) Sign in+/// (3) Click "Add Phone"/// Harness menu → Add Phone////// Use email instead ([fallbackLabel]; none without [onUseEmail])diff --git a/mobile/lib/phone/welcome/set_up_computer.dart b/mobile/lib/phone/welcome/set_up_computer.dartindex 921d0f57d..aea5c7246 100644--- a/mobile/lib/phone/welcome/set_up_computer.dart+++ b/mobile/lib/phone/welcome/set_up_computer.dart@@ -20,13 +20,19 @@ import 'scan_to_connect.dart' show kAddPhoneWhere;/// One step: what to do, and a quieter line under it when one is needed — its lines split on `\n`.typedef ComputerStep = ({String title, String? note});-/// The first step on the computer, for the camera.+/// The first step on the computer, for the camera: getting Harness there from ②'s address,+/// [OnboardingCopy.goAddress] — the download for whatever computer opens it (owner, 2026-10-14).+/// No link stands over the camera's steps, so the step names it.////// ⚠️ **"On your computer" is said once on a screen** (owner, 2026-10-12: three times on one screen/// read as noise) — by the title over ②'s steps ("On your computer, go to"), and under the camera-/// by this first step: the camera has no title of its own, and "Open Harness" on its own, on a-/// phone already in Harness, read as opening this app.-const _openHarness = 'Open Harness on your computer';+/// by this first step: the camera has no title of its own, and a step on its own, on a phone+/// already in Harness, read as being about this phone. The address is the title and the rest its+/// note: a title is one line ending in "…" ([StepsTimeline]).+const ComputerStep _getHarness = (+ title: 'Go to ${OnboardingCopy.goAddress}',+ note: 'Download and install on your computer',+);/// The steps under "On your computer, go to"'s link: get Harness from it, and sign in — with/// [account], the phone's, when there is one to name. Signed in with this account, the computer@@ -39,8 +45,8 @@ List<ComputerStep> goToSteps(String? account) => [/// The steps under the camera that reads Add Phone's code — the welcome's Scan QR from computer,/// and Computers' "Or scan the QR code on your computer" — where the page it came from says none-/// of them ([ScanToConnectPage.steps]): open Harness on the computer, then Add Phone and where it-/// is.+/// of them ([ScanToConnectPage.steps]): get Harness on the computer, sign in, then Add Phone and+/// where it is.////// ⚠️ **One set for the camera (owner, 2026-10-12).** It used to be two: signed out "Click Add/// Phone ③ Scan the QR code", signed in "Sign in on your computer ③ Not showing up? Click Add@@ -48,10 +54,12 @@ List<ComputerStep> goToSteps(String? account) => [/// somebody already scanning. Both halves hold either way: Add Phone asks a computer that is not/// signed in to sign in before it shows a code, and a computer that turns up by itself is paired/// just as well by its code. The scan is the camera itself, so it is not a step of its own.-/// Two steps, signing in not among them (owner, 2026-10-12): the desktop now has its person sign-/// in before anything else, Add Phone included. [account] is kept for the callers that pass it.+/// Three steps (owner, 2026-10-14): somebody who has never had Harness on the computer starts from+/// the download, and signing in is back between it and Add Phone — ②'s sign-in, word for word,+/// with [account] when there is one to name.List<ComputerStep> computerSteps(String? account) => [- (title: _openHarness, note: null),+ _getHarness,+ _signIn(account),(title: 'Click "Add Phone"', note: kAddPhoneWhere),];diff --git a/mobile/test/phone_welcome_first_screen_test.dart b/mobile/test/phone_welcome_first_screen_test.dartindex c81472229..132119bc0 100644--- a/mobile/test/phone_welcome_first_screen_test.dart+++ b/mobile/test/phone_welcome_first_screen_test.dart@@ -9,6 +9,7 @@ import 'package:harness_mobile/phone/welcome/onboarding_copy.dart';import 'package:harness_mobile/phone/welcome/onboarding_picture.dart';import 'package:harness_mobile/phone/welcome/phone_welcome.dart';import 'package:harness_mobile/phone/welcome/scan_to_connect.dart';+import 'package:harness_mobile/phone/welcome/set_up_computer.dart';import 'package:harness_mobile/phone/welcome/sign_in_provider_button.dart';import 'package:harness_mobile/state/app_state.dart';@@ -329,12 +330,51 @@ void main() {expect(find.byType(ScanToConnectPage), findsOneWidget);// Continue with email is beside QR code on the welcome, one back away (owner, 2026-10-14).expect(find.text('Use email instead'), findsNothing);++ // Under the camera, how the code comes up on the computer (owner, 2026-10-14): Harness from+ // ②'s address, signed in, then Add Phone — in that order.+ expect(find.text('How to get the QR code'), findsOneWidget);+ final steps = [+ find.text('Go to autonomous.ai/go'),+ find.text('Sign in'),+ find.text('Click "Add Phone"'),+ ];+ for (final step in steps) {+ expect(step, findsOneWidget);+ }+ for (var i = 1; i < steps.length; i++) {+ expect(+ tester.getTopLeft(steps[i - 1]).dy,+ lessThan(tester.getTopLeft(steps[i]).dy),+ );+ }+ expect(+ find.text('Download and install on your computer'),+ findsOneWidget,+ );+ expect(find.text(kAddPhoneWhere), findsOneWidget);+ // Signed out, there is no account for the sign-in to name.+ expect(find.textContaining('Use '), findsNothing);+await tester.binding.handlePopRoute();await tester.pump();expect(find.text(OnboardingCopy.welcome), findsOneWidget);expect(email, findsOneWidget);});+ test('the camera\'s sign-in step names the account, when there is one', () {+ final signedIn = computerSteps('[email protected]');+ expect(signedIn.map((s) => s.title), [+ 'Go to autonomous.ai/go',+ 'Sign in',+ 'Click "Add Phone"',+ ]);+ expect(signedIn[1].note, 'Use [email protected]');+ // ②'s sign-in step, word for word.+ expect(signedIn[1], goToSteps('[email protected]')[1]);+ expect(computerSteps(null)[1].note, isNull);+ });+testWidgets('the emailed code: the address, then the four digits, and back', (tester,) async {