From 23c670442392af1c75b935b3296ae2fc4fd094ba Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Mon, 23 Mar 2026 08:59:35 +0000 Subject: fix: support multiple enabled Google Task lists and Calendars - Update Google API interfaces with setters for list/calendar IDs - Update fetchCalendarEvents and fetchGoogleTasks to use enabled IDs from source_configs - Update timeline logic tests to reflect interface changes and seed config data - Ensure dashboard respects user-selected lists from settings --- internal/api/google_tasks.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/api/google_tasks.go') diff --git a/internal/api/google_tasks.go b/internal/api/google_tasks.go index 8a6488e..da3cd3b 100644 --- a/internal/api/google_tasks.go +++ b/internal/api/google_tasks.go @@ -175,6 +175,11 @@ func (c *GoogleTasksClient) UncompleteTask(ctx context.Context, listID, taskID s return nil } +// SetTaskListID updates the task list ID(s) used by the client +func (c *GoogleTasksClient) SetTaskListID(id string) { + c.tasklistID = id +} + // GetTaskLists returns all task lists accessible to the user func (c *GoogleTasksClient) GetTaskLists(ctx context.Context) ([]models.TaskListInfo, error) { list, err := c.srv.Tasklists.List().Context(ctx).Do() -- cgit v1.2.3