mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-27 19:04:25 +01:00
This commit includes a significant overhaul of the TaskViewModel to use the newly created TaskService and integrate it with the task API. Specifically: - Removed dependency on mock data for tasks. - Added real API calls through the TaskService for task operations like creating and fetching tasks. - Updated createTask to return the ID of the newly created task. - Updated fetchTasks method to fetch tasks from the API and update the local list. - Updated selectTask to handle selection based on string IDs. These changes make the TaskViewModel ready for real-world usage and remove dependencies on mock data.