Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Include tooltips for single message + continuous mode

hunteraraujo2e62c517e216
diff --git a/frontend/lib/views/chat/chat_input_field.dart b/frontend/lib/views/chat/chat_input_field.dart
index e516799b61..19bf72f06e 100644
--- a/frontend/lib/views/chat/chat_input_field.dart
+++ b/frontend/lib/views/chat/chat_input_field.dart
@@ -67,30 +67,36 @@ class _ChatInputFieldState extends State<ChatInputField> {
mainAxisSize: MainAxisSize.min, // Set to minimum space
children: [
if (!widget.isContinuousMode)
- // TODO: Include tool tip to explain single message sending
- IconButton(
+ Tooltip(
+ message: 'Send a single message',
+ child: IconButton(
+ splashRadius: 0.1,
+ icon: const Icon(Icons.send),
+ onPressed: () {
+ widget.onSendPressed(_controller.text);
+ _controller.clear();
+ },
+ ),
+ ),
+ // TODO: Include pop up to explain continuous mode reprecussions
+ Tooltip(
+ message: widget.isContinuousMode
+ ? ''
+ : 'Enable continuous mode',
+ child: IconButton(
splashRadius: 0.1,
- icon: const Icon(Icons.send),
+ icon: Icon(widget.isContinuousMode
+ ? Icons.pause
+ : Icons.fast_forward),
onPressed: () {
- widget.onSendPressed(_controller.text);
- _controller.clear();
+ if (!widget.isContinuousMode) {
+ widget.onSendPressed(_controller.text);
+ _controller.clear();
+ _focusNode.unfocus();
+ }
+ widget.onContinuousModePressed();
},
),
- // TODO: Include tool tip to explain continuous mode
- // TODO: Include pop up to explain continuous mode reprecussions
- IconButton(
- splashRadius: 0.1,
- icon: Icon(widget.isContinuousMode
- ? Icons.pause
- : Icons.fast_forward),
- onPressed: () {
- if (!widget.isContinuousMode) {
- widget.onSendPressed(_controller.text);
- _controller.clear();
- _focusNode.unfocus();
- }
- widget.onContinuousModePressed();
- },
)
],
),