Commit Graph

4531 Commits

Author SHA1 Message Date
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
hunteraraujo
3b710b3c7c Add TaskResponse model to encapsulate tasks and pagination data
This commit introduces a new class called TaskResponse, which holds both the tasks and pagination information returned from the API. The class includes a factory constructor to create an instance from JSON data, ensuring that the API response is neatly packaged into an easily manageable object. This enhances code readability and maintainability.

- Create a TaskResponse class with tasks and pagination fields
- Add a factory constructor for JSON to TaskResponse conversion
2023-09-02 15:06:23 -07:00
hunteraraujo
855c7fe8ea Update Task model to include optional fields and adapt factory method
This commit updates the Task model to include optional fields for
'additionalInput' and 'artifacts'. The 'fromMap' factory method is also
adapted to populate these fields if they exist in the JSON response.

This change aligns the Task model with the expected server responses,
making it more flexible and robust.
2023-09-02 15:04:00 -07:00
hunteraraujo
e3200d87ba Add Pagination Model for API Responses
Added a new Pagination class to model the pagination data that comes with API responses. This will help in handling paginated data more effectively and transparently.

The Pagination class includes fields for total items, total pages, current page, and page size. It also includes a factory constructor for creating an instance from a JSON object.
2023-09-02 14:58:49 -07:00
hunteraraujo
d7b2a952da Update baseURL to point at forge 2023-09-02 14:47:55 -07:00
hunteraraujo
291f7f2b85 Add CORS Middleware to Resolve XMLHttpRequest Error (#26) 2023-09-02 14:19:45 -07:00
Auto-GPT-Bot
4c236b16e4 beebot-20230902082647 2023-09-02 08:26:48 +00:00
Auto-GPT-Bot
618d1975b2 Auto-GPT-20230902082232 2023-09-02 08:22:32 +00:00
Auto-GPT-Bot
0cac00d5f8 mini-agi-20230902082116 2023-09-02 08:21:16 +00:00
Auto-GPT-Bot
04e7ecb3e5 PolyGPT-20230902081843 2023-09-02 08:18:44 +00:00
Auto-GPT-Bot
21773c3789 gpt-engineer-20230902081833 2023-09-02 08:18:34 +00:00
Auto-GPT-Bot
54861833b5 Turbo-20230902081621 2023-09-02 08:16:21 +00:00
Auto-GPT-Bot
d54f7948f1 BabyAGI-20230902081503 2023-09-02 08:15:04 +00:00
Auto-GPT-Bot
64aaf0640a smol-developer-20230902081341 2023-09-02 08:13:41 +00:00
Silen Naihin
6eeefbd800 bug fixes, sha frontend, updating file locations 2023-09-01 10:54:35 -07:00
Silen Naihin
abed1ae879 Added script to load data into a df (#348)
Co-authored-by: SwiftyOS <craigswift13@gmail.com>
2023-09-01 10:31:04 -07:00
Auto-GPT-Bot
819764372e smol-developer-20230901172047 2023-09-01 17:20:47 +00:00
merwanehamadi
f1ce7f628e Remove chart generation for now (#347) 2023-09-01 10:13:39 -07:00
Auto-GPT-Bot
36955cd4e3 Add combined charts - 20230901171057 2023-09-01 17:10:57 +00:00
Auto-GPT-Bot
c8756022cf Turbo-20230901170906 2023-09-01 17:09:06 +00:00
Auto-GPT-Bot
c8351ff054 Add combined charts - 20230901161315 2023-09-01 16:13:15 +00:00
Auto-GPT-Bot
69fd7d15dd smol-developer-20230901161037 2023-09-01 16:10:37 +00:00