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
refactor(mobile): drop the account avatar from the Agents header
bubu-dudu66b400756603
diff --git a/mobile/lib/phone/account_button.dart b/mobile/lib/phone/account_button.dartdeleted file mode 100644index e670a8227..000000000--- a/mobile/lib/phone/account_button.dart+++ /dev/null@@ -1,96 +0,0 @@-import 'dart:async';--import 'package:flutter/material.dart';--import 'package:harness_mobile/shared/theme/app_theme.dart';-import 'package:harness_mobile/state/app_state.dart';--/// Who is signed in, as a round initial in the corner of the machine list — and, on a tap, the-/// one account action a viewer has: signing out.-class AccountButton extends StatelessWidget {- const AccountButton({super.key, required this.notifier});-- final AppNotifier notifier;-- String get _initial {- final user = notifier.currentUser;- final name = user?.name?.trim() ?? '';- final source = name.isNotEmpty ? name : (user?.email ?? '');- return source.isEmpty ? '?' : source.substring(0, 1).toUpperCase();- }-- @override- Widget build(BuildContext context) {- AppTheme.watch(context);- return Semantics(- button: true,- label: 'Account',- child: GestureDetector(- onTap: () => _showAccountSheet(context),- child: Container(- width: 40,- height: 40,- decoration: BoxDecoration(- color: AppPalette.avatarFill,- shape: BoxShape.circle,- ),- alignment: Alignment.center,- child: Text(- _initial,- style: const TextStyle(- color: Colors.white,- fontSize: 16,- fontWeight: FontWeight.w600,- ),- ),- ),- ),- );- }-- void _showAccountSheet(BuildContext context) {- final user = notifier.currentUser;- showModalBottomSheet<void>(- context: context,- useRootNavigator: true,- showDragHandle: true,- backgroundColor: AppPalette.panelBg,- builder: (sheetContext) => SafeArea(- child: Padding(- padding: const EdgeInsets.fromLTRB(20, 0, 20, 16),- child: Column(- mainAxisSize: MainAxisSize.min,- crossAxisAlignment: CrossAxisAlignment.stretch,- children: [- Text(- user?.name ?? 'Signed in',- style: TextStyle(- color: AppPalette.textPrimary,- fontSize: 17,- fontWeight: FontWeight.w600,- ),- ),- const SizedBox(height: 4),- Text(- user?.email ?? '',- style: TextStyle(color: AppPalette.textSecondary, fontSize: 14),- ),- const SizedBox(height: 20),- FilledButton(- style: FilledButton.styleFrom(- backgroundColor: AppPalette.dangerFill,- minimumSize: const Size.fromHeight(48),- ),- onPressed: () {- Navigator.of(sheetContext).pop();- unawaited(notifier.logout());- },- child: const Text('Sign out'),- ),- ],- ),- ),- ),- );- }-}diff --git a/mobile/lib/phone/agents_tab.dart b/mobile/lib/phone/agents_tab.dartindex 1bdc3d833..1194e415d 100644--- a/mobile/lib/phone/agents_tab.dart+++ b/mobile/lib/phone/agents_tab.dart@@ -8,7 +8,6 @@ import 'package:harness_mobile/state/app_state.dart';import 'agent_index.dart';import 'agent_row.dart';import 'agents_page.dart';-import 'account_button.dart';import 'machine_filter_bar.dart';import 'phone_card.dart';import 'phone_fab.dart';@@ -81,11 +80,10 @@ class _AgentsTabState extends State<AgentsTab> {bottom: false,child: Column(children: [- PhoneHeader(- large: true,- title: 'Agents',- trailing: [AccountButton(notifier: widget.notifier)],- ),+ // No account avatar here. Settings ▸ Account carries the address+ // and the sign-out, and a second copy in the corner of the home+ // screen bought nothing but a place for them to disagree.+ const PhoneHeader(large: true, title: 'Agents'),if (error != null)_ErrorStrip(message: error, notifier: widget.notifier),if (machines.isNotEmpty)