summaryrefslogtreecommitdiff
path: root/internal/models/atom.go
diff options
context:
space:
mode:
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