Commit Graph

7702 Commits

Author SHA1 Message Date
merwanehamadi
0bb45be584 Rename three sum (#354)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-09-04 19:50:27 -07:00
Silen Naihin
2dc1a0a9cd working regex (#352) 2023-09-04 18:19:35 -07:00
merwanehamadi
57907bcda1 Url shortener challenge (#353)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-09-04 16:31:01 -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
merwanehamadi
613dd111f0 Add battleship game (#351)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-09-04 14:11:56 -07:00
SwiftyOS
4ce962db74 Added image to the Readme 2023-09-04 17:03:15 +02:00
SwiftyOS
11c1bc3aa9 Renamed gui to frontend 2023-09-04 16:43:51 +02:00
SwiftyOS
009eeebb70 Cleaned notebooks removing the stored output 2023-09-04 16:35:41 +02:00
SwiftyOS
b9be0f7834 removed script 2023-09-04 16:33:39 +02:00
SwiftyOS
011be8f2ca Added License for the main directory remvoing sub-licenses 2023-09-04 16:32:10 +02:00
SwiftyOS
f1133af05c Added a readme and gitignore 2023-09-04 16:30:32 +02:00
SwiftyOS
bbfaf555b2 Added git ignore 2023-09-04 16:24:15 +02:00
SwiftyOS
16be886ba0 Removed extra dirs 2023-09-04 16:23:45 +02:00
SwiftyOS
e5cef441e2 Re-Organised project and added benchmark code 2023-09-04 16:21:09 +02:00
Auto-GPT-Bot
de60cf8e56 beebot-20230904085735 2023-09-04 08:57:36 +00:00
Auto-GPT-Bot
c539866f7c Auto-GPT-20230904084850 2023-09-04 08:48:51 +00:00
Auto-GPT-Bot
fc44da3161 mini-agi-20230904083608 2023-09-04 08:36:09 +00:00
Auto-GPT-Bot
e598fe95b4 PolyGPT-20230904083452 2023-09-04 08:34:52 +00:00
Auto-GPT-Bot
abefbddda2 Turbo-20230904082958 2023-09-04 08:29:58 +00:00
Auto-GPT-Bot
59265a4d56 BabyAGI-20230904081904 2023-09-04 08:19:04 +00:00
Auto-GPT-Bot
44b19c4b58 smol-developer-20230904081630 2023-09-04 08:16:30 +00:00
Auto-GPT-Bot
4c54b4637e gpt-engineer-20230904081545 2023-09-04 08:15:45 +00:00
hunteraraujo
bc211827ad Add local persistence for deleted tasks
- Extended TaskService to manage a list of deleted tasks using shared_preferences.
- Modified TaskViewModel to filter out tasks that have been marked as deleted locally.
- Loaded the list of deleted tasks during app initialization in main.dart.
2023-09-03 20:35:39 -07:00
Silen Naihin
99bbed24ef challenge logs to json (#350) 2023-09-03 14:12:40 -07:00
hunteraraujo
f3f7fdf381 Add 'gui/' from commit '1b314a5782c42d4c1d2e55e1792e5ed240522b74'
git-subtree-dir: gui
git-subtree-mainline: 9cebc85193
git-subtree-split: 1b314a5782
2023-09-03 13:02:46 -07:00
hunteraraujo
9cebc85193 Remove GUI subdirectory 2023-09-03 13:02:11 -07:00
hunteraraujo
1b314a5782 Helpful TODOs 2023-09-03 12:54:00 -07:00
Auto-GPT-Bot
c0f0a48540 beebot-20230903085728 2023-09-03 08:57:29 +00:00
Auto-GPT-Bot
1789821aa5 Auto-GPT-20230903084604 2023-09-03 08:46:05 +00:00
Auto-GPT-Bot
222c10e9ee Turbo-20230903083206 2023-09-03 08:32:06 +00:00
Auto-GPT-Bot
1935d5504c mini-agi-20230903082926 2023-09-03 08:29:27 +00:00
Auto-GPT-Bot
dc6e1372dc PolyGPT-20230903082655 2023-09-03 08:26:55 +00:00
Auto-GPT-Bot
7a8a6ff8f4 gpt-engineer-20230903081739 2023-09-03 08:17:40 +00:00
Auto-GPT-Bot
cd64b26545 BabyAGI-20230903081702 2023-09-03 08:17:03 +00:00
Auto-GPT-Bot
5bbcf0d876 smol-developer-20230903081529 2023-09-03 08:15:29 +00:00
Silen Naihin
cd7c6139c1 combined reports with json (#349) 2023-09-02 22:28:47 -07:00
hunteraraujo
aa26cad9e7 Refactor Dependency Injection in main.dart Using ProxyProvider
- Replaced direct service initialization with Provider and ProxyProvider in main.dart.
- Introduced a ChangeNotifierProxyProvider for ApiSettingsViewModel to include a reference to RestApiUtility.
- Refactored MyApp class to fetch services from providers instead of direct instantiation.

This commit enhances the dependency injection pattern to support dynamic updates to the API base URL. The use of ProxyProvider allows for more flexible and efficient management of dependencies, particularly between RestApiUtility and other services.
2023-09-02 20:45:18 -07:00
hunteraraujo
bf60feaa7e Refactor TaskView to Include API Base URL Field
- Added ApiBaseUrlField widget to the TaskView.
- Included a TextEditingController to manage the API base URL value.
- Initialized the text field with the current base URL value from ApiSettingsViewModel.
- Modified the layout to place the API base URL field and associated buttons below the task list.

The commit introduces a user interface enhancement that allows the user to update the API base URL directly from the TaskView. This ensures better configurability and user experience.
2023-09-02 20:34:40 -07:00
hunteraraujo
c9bde250b1 Integrate RestApiUtility with ApiSettingsViewModel for Dynamic URL Updates
- Added a reference to RestApiUtility within ApiSettingsViewModel.
- Modified _loadBaseURL and updateBaseURL methods to update the base URL in RestApiUtility whenever a change is made.
- This ensures that changes to the base URL in the settings are propagated to the utility responsible for making API calls.

This integration allows the application to dynamically update the base URL for API calls through the user interface, enhancing flexibility and configurability.
2023-09-02 20:27:16 -07:00
hunteraraujo
eaa4825e6b Refactor ApiBaseUrlField into a Separate Widget
- Extracted the API Base URL field and associated buttons into a new ApiBaseUrlField widget.
- Utilized Consumer to listen for changes in ApiSettingsViewModel.
- Maintained the look and feel consistent with the application's existing UI elements.

This refactor enhances code modularity and readability by isolating the API settings UI in its own widget.
2023-09-02 20:22:43 -07:00
hunteraraujo
e69e683f70 Integrate ApiSettingsViewModel into main.dart
Updated main.dart to provide ApiSettingsViewModel at the top-level using MultiProvider. This ensures that the ViewModel is accessible throughout the app, allowing for dynamic updates to the API's base URL.
2023-09-02 17:42:58 -07:00
hunteraraujo
b0bd42a57e Update RestApiUtility to allow dynamic baseURL
Modified RestApiUtility to include a method for updating the base URL dynamically. This allows the application to adapt to changes in the API's base URL without requiring a restart.
2023-09-02 17:42:35 -07:00
hunteraraujo
1049a4d868 Add ApiSettingsViewModel for managing API base URL
Created a new ViewModel called ApiSettingsViewModel that is responsible for getting and setting the API's base URL. Utilized the shared_preferences package for persistent storage of the base URL.
2023-09-02 17:42:14 -07:00
hunteraraujo
32c977f7f1 Add shared_preferences dependency 2023-09-02 17:20:16 -07:00
hunteraraujo
7966b81e96 Update ViewModel classes for Chat and Task to handle structured responses
This commit updates the ViewModel classes for both Chat and Task to accommodate the new structured responses received from the API. These changes are essential for the correct functioning of the application as they deal with the new TaskResponse and Step objects.

Updates in ChatViewModel:
- Modified `fetchChatsForTask` to handle structured step data
- Updated how steps are retrieved and processed

Updates in TaskViewModel:
- Updated `fetchTasks` to use the new TaskResponse object
- Refactored task fetching and selection logic

These updates ensure that the ViewModel classes are aligned with the new structured API responses, improving data handling and UI updates.
2023-09-02 15:42:54 -07:00
hunteraraujo
7a817f4989 Remove getList implementation 2023-09-02 15:22:08 -07:00
hunteraraujo
bda3b8b649 Refactor service classes to use api.get and handle structured responses
This commit updates the ChatService and TaskService classes to use the api.get method instead of the previous api.getList. This change allows us to handle structured API responses more effectively, particularly those containing pagination information and detailed task and step data.

- Update ChatService methods to use api.get
- Update TaskService methods to use api.get
- Handle structured TaskResponse in TaskService.listAllTasks
2023-09-02 15:21:52 -07:00