summaryrefslogtreecommitdiff
path: root/internal/models/atom.go
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 /internal/models/atom.go
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 'internal/models/atom.go')
-rw-r--r--internal/models/atom.go30
1 files changed, 0 insertions, 30 deletions
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