mirror of
https://github.com/block/buzz.git
synced 2026-10-28 13:01:10 +00:00
Move optional instructions copy into placeholder
Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
@@ -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) ...[
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user