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): Set up a device under Add computer on Computers

bubu-dudu129c8e1a0bdb
diff --git a/mobile/lib/phone/machines_tab.dart b/mobile/lib/phone/machines_tab.dart
index 2453d5371..5c00aa066 100644
--- a/mobile/lib/phone/machines_tab.dart
+++ b/mobile/lib/phone/machines_tab.dart
@@ -10,6 +10,7 @@ import 'package:harness_mobile/shared/theme/app_theme.dart';
import 'package:harness_mobile/shared/widgets/empty_state.dart';
import 'package:harness_mobile/state/app_state.dart';
+import 'add_device/add_device_page.dart';
import 'welcome/connect_computer.dart';
import 'welcome/set_up_computer.dart' show ComputerSteps;
import 'welcome/your_computer.dart';
@@ -535,6 +536,20 @@ class _ConnectBarState extends State<_ConnectBar> {
label: 'Add computer',
onPressed: widget.onSetUp,
),
+ // A Harness with no screen, or one locked as it starts: Settings' Set up a device,
+ // here too, where the computers are.
+ const SizedBox(height: 4),
+ Center(
+ child: TtyTextButton(
+ key: const ValueKey('machines-set-up-device'),
+ label: 'Set up a device',
+ onPressed: () => Navigator.of(context).push(
+ phoneRoute(
+ (_) => AddDevicePage(notifier: widget.notifier),
+ ),
+ ),
+ ),
+ ),
// A desktop from before shows its Add Phone QR code rather than an address: the
// camera pairs with it. "QR code", not "Add Phone code" — a desktop menu's name
// read as a noun stack under a button named for the other side.