Commit Graph

16 Commits

Author SHA1 Message Date
hunteraraujo
d3b4b50a5c Update parameters for ChatInputField to support continuous mode 2023-09-06 11:46:43 -07:00
hunteraraujo
d80053e8dc Refactor ChatInputField to Support Continuous Mode
- Added a new boolean state `isContinuousMode` to the `ChatInputField` widget to handle the continuous mode feature.
- Introduced a new callback function `onContinuousModePressed` to manage the state of the continuous mode from an external source.
- Conditionally rendered the send button based on the `isContinuousMode` state.
- Enhanced the UI by adding a button to toggle between continuous mode and single message mode, which triggers the `onContinuousModePressed` callback.
2023-09-06 11:46:03 -07:00
hunteraraujo
5cd1abab94 Implement Continuous Mode in ChatViewModel
Added a new state variable `_isContinuousMode` to the ChatViewModel to track whether the chat is in continuous mode or not. This state is toggled via a setter and triggers UI updates through `notifyListeners()`.

Enhanced the `sendChatMessage` method to automatically send a null message if continuous mode is active, triggering the next step in the chat.
2023-09-06 11:42:45 -07:00
hunteraraujo
a7c37da713 Make input and additionalInput optional in StepRequestBody
Updated the StepRequestBody class to allow both 'input' and 'additionalInput' to be optional. Added logic in toJson() method to return an empty JSON object if both fields are null.
2023-09-06 11:41:23 -07:00
hunteraraujo
ef2d64513b Merge commit 'e5d30a9f6d0854e20049309333c2f637cd03025c' as 'frontend' 2023-09-06 11:22:37 -07:00
hunteraraujo
4e7ea36490 Delete frontend subdirectory 2023-09-06 11:22:33 -07:00
hunteraraujo
121e79410b Add frontend subdirectory to project 2023-09-06 10:43:26 -07:00
Silen Naihin
8d9f6a21b2 Merge branch 'develop' of https://github.com/Significant-Gravitas/Auto-GPT into develop 2023-09-05 18:23:11 -07:00
hunteraraujo
a15f391c96 Update README.md 2023-09-05 17:30:48 -07:00
Merwane Hamadi
668fc8c352 Fix forge and benchmark 2 2023-09-05 17:05:45 -07:00
Merwane Hamadi
9c4aca255a remove extraneous code 2023-09-05 10:32:38 -07:00
hunteraraujo
994bdca948 Prevent TaskView and ChatView from Being Obscured by CupertinoTabView
This commit wraps the TaskView and ChatView in a SafeArea widget to ensure that they are not hidden behind the CupertinoTabView. This addresses the issue where parts of these views were obscured, particularly when using the app on smaller screens.

- Wrapped TaskView in SafeArea
- Wrapped ChatView in SafeArea

This change improves the user experience by ensuring that all content is visible and accessible.
2023-09-04 16:19:06 -07:00
hunteraraujo
e1d45645ae Integrate JSON Response into AgentMessageTile
This commit integrates the actual JSON response received from the API into the AgentMessageTile. Now, each AgentMessageTile will display the associated JSON response when expanded.

- Converted Map<String, dynamic> JSON response to a string using jsonEncode.
- Passed the JSON-formatted string to JsonCodeSnippetView.
- Updated AgentMessageTile to include this change.

This change enhances the debugging and transparency features of the chat interface.
2023-09-04 15:47:15 -07:00
hunteraraujo
2c0c2e7663 Truncate task titles in TaskListTile
Update TaskListTile to truncate task titles that overflow.

- Modify the Text widget to limit it to a single line.
- Add TextOverflow.ellipsis to show an ellipsis when the text overflows.
2023-09-04 14:31:12 -07:00
hunteraraujo
a470a30311 Fix multiple selection issue in TaskListTile
Ensure that only one TaskListTile can be selected at a time.

- Refactor TaskListTile to be a StatelessWidget.
- Remove internal state `_isSelected` from TaskListTile.
- Add a `selected` boolean prop to TaskListTile to control its selection state from the parent.
- Update the parent widget to manage the selection state and pass it down to TaskListTile.
2023-09-04 14:26:25 -07:00
SwiftyOS
11c1bc3aa9 Renamed gui to frontend 2023-09-04 16:43:51 +02:00