From 8fb7de82ed12a7e5ba21346543f0132ee74e4290 Mon Sep 17 00:00:00 2001 From: Tom Brow Date: Mon, 19 Oct 2026 17:57:56 -0700 Subject: [PATCH] Move optional instructions copy into placeholder Signed-off-by: Tom Brow --- mobile/lib/prototype/create_agent_sheet.dart | 4 ++-- mobile/test/prototype/agents_ui_test.dart | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/mobile/lib/prototype/create_agent_sheet.dart b/mobile/lib/prototype/create_agent_sheet.dart index 3417adb09a..01d9c429f2 100644 --- a/mobile/lib/prototype/create_agent_sheet.dart +++ b/mobile/lib/prototype/create_agent_sheet.dart @@ -167,8 +167,8 @@ class CreatePrototypeAgentSheet extends HookConsumerWidget { textCapitalization: TextCapitalization.sentences, textInputAction: TextInputAction.newline, decoration: fieldDecoration( - 'Instructions (optional)', - hint: 'Describe what this agent should do.', + 'Instructions', + hint: 'Describe what this agent should do (optional).', ), ), if (controller.busy) ...[ diff --git a/mobile/test/prototype/agents_ui_test.dart b/mobile/test/prototype/agents_ui_test.dart index fe1f800ac5..69a6ff8816 100644 --- a/mobile/test/prototype/agents_ui_test.dart +++ b/mobile/test/prototype/agents_ui_test.dart @@ -155,12 +155,9 @@ void main() { await tester.pumpAndSettle(); await tester.tap(find.text('Agents list')); await tester.pumpAndSettle(); + await tester.enterText(find.widgetWithText(TextField, 'Name'), 'Scout'); await tester.enterText( - find.widgetWithText(TextField, 'Display name'), - 'Scout', - ); - await tester.enterText( - find.widgetWithText(TextField, 'Instructions (optional)'), + find.widgetWithText(TextField, 'Instructions'), 'Reply concisely.', ); await tester.pump();