Skip to content

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.

feat(mobile): move sign-out under the account on go-to screen

tony001e4ff95e37
diff --git a/mobile/lib/phone/agent_home.dart b/mobile/lib/phone/agent_home.dart
index c721f208f..6488d3ca0 100644
--- a/mobile/lib/phone/agent_home.dart
+++ b/mobile/lib/phone/agent_home.dart
@@ -1128,11 +1128,13 @@ class _AgentHomeState extends State<AgentHome>
enterFrom: notifier.signedInThisRun ? OnboardingScene.welcome : null,
underHeadline: ComputerWatch(
notifier: notifier,
- child: GoToComputer(account: notifier.currentUser?.email),
+ child: GoToComputer(
+ account: notifier.currentUser?.email,
+ notYou: NotYouSignOut(notifier: notifier),
+ ),
),
status: const OnboardingStatus(OnboardingCopy.looking),
trailing: PhoneSettingsButton(notifier: notifier),
- actions: NotYouSignOut(notifier: notifier),
);
}
diff --git a/mobile/lib/phone/settings_page.dart b/mobile/lib/phone/settings_page.dart
index e09625f12..7e110a2fc 100644
--- a/mobile/lib/phone/settings_page.dart
+++ b/mobile/lib/phone/settings_page.dart
@@ -305,7 +305,7 @@ class _Body extends StatelessWidget {
}
/// Sign out, asked first — from the account sheet here, and from "Not you? Sign out" on the page a
-/// phone waits for its first computer on (`welcome/connect_computer.dart`).
+/// phone waits for its first computer on (`welcome/your_computer.dart`).
///
/// Asked first, because a sign-out is more than leaving this screen: the phone's key leaves the
/// account's devices ([AppNotifier.logout]), and signing in again makes a new one — which every
diff --git a/mobile/lib/phone/welcome/onboarding_copy.dart b/mobile/lib/phone/welcome/onboarding_copy.dart
index 5ef8fa020..0b452a02b 100644
--- a/mobile/lib/phone/welcome/onboarding_copy.dart
+++ b/mobile/lib/phone/welcome/onboarding_copy.dart
@@ -7,7 +7,7 @@
/// ② Your computer On your computer, go to [autonomous.ai/go ⇪]
/// under the picture: Looking for your computer▌
/// under the link: (1) Install Harness (2) Sign in, With you@…
-/// at the foot: Not you? Sign out
+/// under the account: Not you? Sign out
/// The Mac joins MacBook Pro is ready.
/// ③ The session by the mic, once: Send it, or say anything.
/// ```
@@ -50,8 +50,9 @@ abstract final class OnboardingCopy {
/// this account).
static const installStep = 'Install Harness';
- /// ② The quiet line at the foot, the account named in the steps above.
- static const notYou = 'Not you? Sign out';
+ /// ② Right under the account the steps name, at home: the question, and the way out after it.
+ static const notYou = 'Not you?';
+ static const signOut = 'Sign out';
/// The moment the computer joins — its own name, as the account knows it.
static String ready(String computer) => '$computer is ready.';
diff --git a/mobile/lib/phone/welcome/onboarding_frame.dart b/mobile/lib/phone/welcome/onboarding_frame.dart
index 564fc0996..c8be08589 100644
--- a/mobile/lib/phone/welcome/onboarding_frame.dart
+++ b/mobile/lib/phone/welcome/onboarding_frame.dart
@@ -14,7 +14,9 @@ enum OnboardingLayout {
/// ① A headline of up to three lines; the two accounts and the quiet line at the foot.
welcome,
- /// ② The headline, the link and the steps on the computer under it; one quiet line at the foot.
+ /// ② The headline, the link and the steps on the computer under it — "Not you? Sign out" under
+ /// the account among them; one quiet line at the foot, the wait's "See your computers ›" once it
+ /// is slow.
goTo,
}
@@ -127,8 +129,8 @@ class OnboardingFrame extends StatelessWidget {
_underGap +
button +
stepsAbove +
- // With an account named, as it is once signed in.
- StepsTimeline.heightOf(goToSteps('you'), scaler),
+ // With an account named, as it is once signed in, and "Not you? Sign out" under it.
+ StepsTimeline.heightOf(goToSteps('you'), scaler, under: true),
quiet + 8,
),
};
diff --git a/mobile/lib/phone/welcome/set_up_computer.dart b/mobile/lib/phone/welcome/set_up_computer.dart
index 492188318..073cf554b 100644
--- a/mobile/lib/phone/welcome/set_up_computer.dart
+++ b/mobile/lib/phone/welcome/set_up_computer.dart
@@ -77,19 +77,35 @@ class ComputerSteps extends StatelessWidget {
/// │
/// (2) Sign in
+/// Not you? Sign out [under], at home
/// ```
///
/// ⚠️ **A line each, ending in "…" rather than wrapping** — a title, and each line of a note — so
/// [heightOf] is exact: "On your computer, go to" holds that much room under its link, and the
/// picture under the steps stays put.
class StepsTimeline extends StatelessWidget {
- const StepsTimeline({super.key, required this.steps});
+ const StepsTimeline({super.key, required this.steps, this.under});
final List<ComputerStep> steps;
+ /// Under the last step's note, as one more line of it: at home, "Not you? Sign out" under the
+ /// account the sign-in names (`your_computer.dart`'s NotYouSignOut). Set in [noteStyle], and
+ /// counted by [heightOf] as one line of it.
+ final Widget? under;
+
+ /// A note's face: the meta size, faint, its lines a little apart.
+ static TextStyle noteStyle(Tty tty) => tty
+ .style(color: tty.faint, size: TtySize.meta)
+ .copyWith(height: _HowItWorksRow._noteHeight);
+
/// How tall [steps] stand at [scaler]'s text size: each title at least a ring tall, each note's
- /// lines and the room round them, the gap under every step but the last.
- static double heightOf(List<ComputerStep> steps, TextScaler scaler) {
+ /// lines and the room round them, the gap under every step but the last — and with [under], one
+ /// more line under the last note.
+ static double heightOf(
+ List<ComputerStep> steps,
+ TextScaler scaler, {
+ bool under = false,
+ }) {
final title = math.max(
_HowItWorksRow._ring,
scaler.scale(TtySize.row) * 1.2,
@@ -106,6 +122,7 @@ class StepsTimeline extends StatelessWidget {
}
if (i < steps.length - 1) height += _HowItWorksRow._gap;
}
+ if (under) height += line;
return height;
}
@@ -119,6 +136,7 @@ class StepsTimeline extends StatelessWidget {
number: i + 1,
title: step.title,
note: step.note,
+ under: i == steps.length - 1 ? under : null,
last: i == steps.length - 1,
),
],
@@ -126,18 +144,20 @@ class StepsTimeline extends StatelessWidget {
}
/// One step: its number in a ring, a thread down to the next one's, what to do, and under it a
-/// quieter line when one is needed.
+/// quieter line when one is needed — and [under] it, the last step's [StepsTimeline.under].
class _HowItWorksRow extends StatelessWidget {
const _HowItWorksRow({
required this.number,
required this.title,
this.note,
+ this.under,
this.last = false,
});
final int number;
final String title;
final String? note;
+ final Widget? under;
final bool last;
static const double _ring = 24;
@@ -234,10 +254,9 @@ class _HowItWorksRow extends StatelessWidget {
maxLines: 1,
softWrap: false,
overflow: TextOverflow.ellipsis,
- style: tty
- .style(color: tty.faint, size: TtySize.meta)
- .copyWith(height: _noteHeight),
+ style: StepsTimeline.noteStyle(tty),
),
+ ?under,
],
),
),
diff --git a/mobile/lib/phone/welcome/your_computer.dart b/mobile/lib/phone/welcome/your_computer.dart
index bcfec4457..872ff9929 100644
--- a/mobile/lib/phone/welcome/your_computer.dart
+++ b/mobile/lib/phone/welcome/your_computer.dart
@@ -35,11 +35,12 @@ import 'set_up_computer.dart' show StepsTimeline, goToSteps;
/// │
/// (2) Sign in
+/// Not you? Sign out at home only ([NotYouSignOut])
/// ```
///
/// At home this is what an account with no computer stands on (`agent_home.dart`, which builds it
/// from [ComputerWatch] and [GoToComputer] on its own [OnboardingStage], with
-/// "Not you? Sign out" under the steps). This page is the same
+/// "Not you? Sign out" under the account). This page is the same
/// step pushed from Computers ▸ Add computer, with back: a second computer is set up the way the
/// first was (`docs/research/2026-10-11-phone-onboarding`, "More computers, more phones").
///
@@ -143,11 +144,15 @@ class _YourComputerPageState extends State<YourComputerPage>
/// Signed in there with it, the computer joins the account, and the screen moves on by itself
/// ([ComputerWatch]): no Add Phone, nothing to scan.
class GoToComputer extends StatelessWidget {
- const GoToComputer({super.key, required this.account});
+ const GoToComputer({super.key, required this.account, this.notYou});
/// The account the computer has to sign in to — this phone's.
final String? account;
+ /// Under the account, at home: [NotYouSignOut]. None on the page pushed from Computers, and
+ /// none with no account to name — "Not you?" would ask about nobody.
+ final Widget? notYou;
+
@override
Widget build(BuildContext context) => Column(
mainAxisSize: MainAxisSize.min,
@@ -155,29 +160,70 @@ class GoToComputer extends StatelessWidget {
children: [
const GoAddressButton(),
const SizedBox(height: OnboardingFrame.stepsAbove),
- StepsTimeline(steps: goToSteps(account)),
+ StepsTimeline(
+ steps: goToSteps(account),
+ under: account == null ? null : notYou,
+ ),
],
);
}
-/// "Not you? Sign out", the quiet line at the foot of "On your computer, go to" at home — where this
-/// screen is all an account with no computer has, and the account it names in its steps may be the
-/// wrong one. Asks first ([confirmSignOut]).
+/// "Not you? Sign out", right under the account "On your computer, go to" names at home — where
+/// this screen is all an account with no computer has, and that account may be the wrong one. Next
+/// to it, not at the foot (owner, 2026-10-12): the question is about the line above it. Asks first
+/// ([confirmSignOut]).
+///
+/// ⚠️ **One line of the note to the eye, a 44pt target all the same.** [StepsTimeline.heightOf]
+/// counts it as the one line it shows; the rest of the target reaches down into the room the frame
+/// leaves under the steps, where nothing else is.
class NotYouSignOut extends StatelessWidget {
const NotYouSignOut({super.key, required this.notifier});
final AppNotifier notifier;
@override
- Widget build(BuildContext context) => Center(
- child: TtyTextButton(
- key: const ValueKey('home-sign-out'),
- label: OnboardingCopy.notYou,
- size: OnboardingFrame.quietSize,
- color: Tty.of(context).faint,
- onPressed: () => unawaited(confirmSignOut(context, notifier)),
- ),
- );
+ Widget build(BuildContext context) {
+ final tty = Tty.of(context);
+ return Semantics(
+ button: true,
+ label: '${OnboardingCopy.notYou} ${OnboardingCopy.signOut}',
+ excludeSemantics: true,
+ child: GestureDetector(
+ key: const ValueKey('home-sign-out'),
+ behavior: HitTestBehavior.opaque,
+ onTap: () {
+ HapticFeedback.selectionClick();
+ unawaited(confirmSignOut(context, notifier));
+ },
+ child: ConstrainedBox(
+ constraints: const BoxConstraints(minHeight: 44),
+ child: Align(
+ alignment: Alignment.topLeft,
+ widthFactor: 1,
+ // The question as quiet as the account over it; the way out in the text's colour.
+ child: Text.rich(
+ TextSpan(
+ text: '${OnboardingCopy.notYou} ',
+ children: [
+ TextSpan(
+ text: OnboardingCopy.signOut,
+ style: TextStyle(
+ color: tty.text,
+ fontWeight: FontWeight.w500,
+ ),
+ ),
+ ],
+ ),
+ maxLines: 1,
+ softWrap: false,
+ overflow: TextOverflow.ellipsis,
+ style: StepsTimeline.noteStyle(tty),
+ ),
+ ),
+ ),
+ ),
+ );
+ }
}
/// Asks the account for its computers every few seconds while it is up: nothing pushes a new