From 945c34590677e161a711ccaff0e1077197b1b178 Mon Sep 17 00:00:00 2001 From: Doot Agent Date: Mon, 6 Jul 2026 00:00:59 +0000 Subject: 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 --- internal/models/atom.go | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'internal/models/atom.go') diff --git a/internal/models/atom.go b/internal/models/atom.go index 967b489..9f40de6 100644 --- a/internal/models/atom.go +++ b/internal/models/atom.go @@ -10,7 +10,6 @@ type AtomSource string const ( SourceTrello AtomSource = "trello" - SourceTodoist AtomSource = "todoist" SourceMeal AtomSource = "plantoeat" SourceGTasks AtomSource = "gtasks" SourceClaudomator AtomSource = "claudomator" @@ -74,35 +73,6 @@ func (a *Atom) ComputeUIFields() { a.HasSetTime = dueInTZ.Hour() != 0 || dueInTZ.Minute() != 0 } -// TaskToAtom converts a Todoist Task to an Atom -func TaskToAtom(t Task) Atom { - // Todoist priority: 1 (normal) to 4 (urgent) - // Keep as-is since it already matches our 1-4 scale - priority := t.Priority - if priority < 1 { - priority = 1 - } - if priority > 4 { - priority = 4 - } - - return Atom{ - ID: t.ID, - Title: t.Content, - Description: t.Description, - Source: SourceTodoist, - Type: TypeTask, - URL: t.URL, - DueDate: t.DueDate, - CreatedAt: t.CreatedAt, - Priority: priority, - SourceIcon: "🔴", // Red circle for Todoist - ColorClass: "border-red-500", - IsRecurring: t.IsRecurring, - Raw: t, - } -} - // NativeTaskToAtom converts a native doot Task to an Atom. func NativeTaskToAtom(t Task) Atom { priority := t.Priority -- cgit v1.2.3