summaryrefslogtreecommitdiff
path: root/cmd/dashboard
diff options
context:
space:
mode:
authorDoot Agent <agent@doot.local>2026-07-06 00:00:59 +0000
committerDoot Agent <agent@doot.local>2026-07-06 00:00:59 +0000
commit945c34590677e161a711ccaff0e1077197b1b178 (patch)
treedf26e8ba5a369b3323649c2fab95bd8e7a49b58e /cmd/dashboard
parentcd14604bbef17f696475cf8737f1e41c9fa2dd06 (diff)
feat: remove Todoist integration entirely
Native tasks (native_tasks table) fully replace Todoist. All Todoist API code, store functions, handlers, routes, templates, and tests have been removed. Migration 021 drops the now-unused tasks cache table. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'cmd/dashboard')
-rw-r--r--cmd/dashboard/main.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go
index fc26c06..b38b9e1 100644
--- a/cmd/dashboard/main.go
+++ b/cmd/dashboard/main.go
@@ -106,7 +106,6 @@ func main() {
authHandlers := auth.NewHandlers(authService, sessionManager, authTemplates, wa)
// Initialize API clients
- todoistClient := api.NewTodoistClient(cfg.TodoistAPIKey)
trelloClient := api.NewTrelloClient(cfg.TrelloAPIKey, cfg.TrelloToken)
var planToEatClient api.PlanToEatAPI
@@ -151,7 +150,7 @@ func main() {
}
// Initialize handlers
- h := handlers.New(db, todoistClient, trelloClient, planToEatClient, googleCalendarClient, googleTasksClient, claudomatorClient, cfg, buildCommit, wa != nil)
+ h := handlers.New(db, trelloClient, planToEatClient, googleCalendarClient, googleTasksClient, claudomatorClient, cfg, buildCommit, wa != nil)
// Set up router
r := chi.NewRouter()
@@ -305,7 +304,6 @@ func main() {
// Dashboard
r.Get("/", h.HandleDashboard)
r.Post("/api/refresh", h.HandleRefresh)
- r.Get("/api/tasks", h.HandleGetTasks)
r.Get("/api/meals", h.HandleGetMeals)
r.Get("/api/boards", h.HandleGetBoards)
r.Get("/api/shopping", h.HandleGetShoppingList)
@@ -322,10 +320,6 @@ func main() {
r.Post("/cards", h.HandleCreateCard)
r.Post("/cards/complete", h.HandleCompleteCard)
- // Todoist task operations
- r.Post("/tasks", h.HandleCreateTask)
- r.Post("/tasks/complete", h.HandleCompleteTask)
-
// Unified task completion (for Tasks tab Atoms)
r.Post("/complete-atom", h.HandleCompleteAtom)
r.Post("/uncomplete-atom", h.HandleUncompleteAtom)
@@ -355,9 +349,6 @@ func main() {
r.Post("/passkeys/register/finish", authHandlers.HandlePasskeyRegisterFinish)
r.Delete("/passkeys/{id}", authHandlers.HandleDeletePasskey)
- // Native task management
- r.Post("/settings/import-from-todoist", h.HandleImportFromTodoist)
-
// Settings
r.Get("/settings", h.HandleSettingsPage)
r.Post("/settings/sync", h.HandleSyncSources)