Move optional instructions copy into placeholder

Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
Tom Brow
2026-10-19 17:57:56 -07:00
parent b72a438d01
commit 8fb7de82ed
2 changed files with 4 additions and 7 deletions

View File

@@ -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) ...[

View File

@@ -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();