summaryrefslogtreecommitdiff
path: root/internal/handlers/atoms.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/handlers/atoms.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/handlers/atoms.go')
-rw-r--r--internal/handlers/atoms.go14
1 files changed, 1 insertions, 13 deletions
diff --git a/internal/handlers/atoms.go b/internal/handlers/atoms.go
index 0b59060..fe092a3 100644
--- a/internal/handlers/atoms.go
+++ b/internal/handlers/atoms.go
@@ -12,11 +12,6 @@ import (
// BuildUnifiedAtomList creates a list of atoms from tasks, cards, and google tasks
func BuildUnifiedAtomList(s *store.Store, claudomator api.ClaudomatorClient) ([]models.Atom, []models.Board, error) {
- tasks, err := s.GetTasks()
- if err != nil {
- return nil, nil, err
- }
-
boards, err := s.GetBoards()
if err != nil {
return nil, nil, err
@@ -33,20 +28,13 @@ func BuildUnifiedAtomList(s *store.Store, claudomator api.ClaudomatorClient) ([]
log.Printf("Warning: failed to fetch native tasks: %v", err)
}
- atoms := make([]models.Atom, 0, len(tasks)+len(gTasks)+len(nativeTasks))
+ atoms := make([]models.Atom, 0, len(gTasks)+len(nativeTasks))
// Add native doot tasks (GetNativeTasks already filters completed=0)
for _, task := range nativeTasks {
atoms = append(atoms, models.NativeTaskToAtom(task))
}
- // Add incomplete tasks
- for _, task := range tasks {
- if !task.Completed {
- atoms = append(atoms, models.TaskToAtom(task))
- }
- }
-
// Add incomplete google tasks
for _, gTask := range gTasks {
if !gTask.Completed {