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.

Merge branch 'feat/mobile-ios-android' of https://github.com/autonomous-ai/autonomous-harness into feat/mobile-ios-android

Dev jacob05dd3babd8f6
diff --cc mobile/lib/phone/machines_tab.dart
index 566448bfb,d52e0f08f..58cc7ced1
--- a/mobile/lib/phone/machines_tab.dart
+++ b/mobile/lib/phone/machines_tab.dart
@@@ -14,10 -15,7 +15,8 @@@ import 'phone_card.dart'
import 'phone_header.dart';
import 'phone_navigation.dart';
import 'phone_search_button.dart';
+import 'phone_section_label.dart';
import 'phone_status.dart';
- import 'phone_sheet.dart';
- import 'unlink_machine.dart';
/// The machines on the account, grouped by what they need.
///
@@@ -159,26 -160,32 +162,9 @@@ class _Body extends StatelessWidget
);
return;
}
- // ⚠️ One row, and it is load-bearing rather than a menu waiting to grow. Unlinking asks for no
- // confirmation, so this sheet IS the confirmation: the step between a finger landing on a row
- // in a list and this phone losing its pairing. Collapsing it into the tap would leave nothing
- // between them.
- //
- // No "Re-enter password" here. A machine that is linked has a working password already, and the
- // way to replace one is to give this one up and enter the new one — the row below, then the row
- // the machine lands on in "Needs your attention".
- showPhoneSheet(
- context,
- title: state.machine.displayName,
- actions: [
- // No trailing `…`: this acts on the tap rather than opening anything.
- PhoneSheetAction(
- icon: LucideIcons.unlink300,
- label: 'Unlink this phone',
- destructive: true,
- onTap: () => unawaited(unlinkThisPhone(context, notifier, state)),
- ),
- ],
- );
+ // The same sheet the terminal's `⋯` used to open for a machine — reload its agents, re-enter its
+ // password, unlink this phone. One place decides what a machine offers, so a machine tapped here
+ // and a machine tapped from there cannot drift apart.
+ openMachineActions(context, notifier, state.machine.machineId);
}
}
-
-class _SectionLabel extends StatelessWidget {
- const _SectionLabel(this.text);
-
- final String text;
-
- @override
- Widget build(BuildContext context) {
- AppTheme.watch(context);
- return Padding(
- padding: const EdgeInsets.fromLTRB(4, 8, 4, 8),
- child: Text(
- text.toUpperCase(),
- style: TextStyle(
- color: AppPalette.textFaint,
- fontSize: 11.5,
- fontWeight: FontWeight.w600,
- letterSpacing: 0.5,
- ),
- ),
- );
- }
-}