From b58787cfec0bd07abc316c66dc9be6c10b8113c6 Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Wed, 25 Mar 2026 05:17:35 +0000 Subject: feat: add Claudomator stories as atom source in Doot tasks tab Co-Authored-By: Claude Sonnet 4.6 --- internal/models/atom.go | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'internal/models/atom.go') diff --git a/internal/models/atom.go b/internal/models/atom.go index 767ccdd..3d9ce54 100644 --- a/internal/models/atom.go +++ b/internal/models/atom.go @@ -9,10 +9,11 @@ import ( type AtomSource string const ( - SourceTrello AtomSource = "trello" - SourceTodoist AtomSource = "todoist" - SourceMeal AtomSource = "plantoeat" - SourceGTasks AtomSource = "gtasks" + SourceTrello AtomSource = "trello" + SourceTodoist AtomSource = "todoist" + SourceMeal AtomSource = "plantoeat" + SourceGTasks AtomSource = "gtasks" + SourceClaudomator AtomSource = "claudomator" ) type AtomType string @@ -123,6 +124,22 @@ func CardToAtom(c Card) Atom { } } +// StoryToAtom converts a ClaudomatorStory to an Atom +func StoryToAtom(s ClaudomatorStory) Atom { + return Atom{ + ID: s.ID, + Title: s.Title, + Description: s.Description + " [" + s.ProjectID + "]", + Source: SourceClaudomator, + Type: TypeTask, + Priority: 3, + SourceIcon: "🤖", + ColorClass: "border-purple-500", + CreatedAt: s.CreatedAt, + Raw: s, + } +} + // GoogleTaskToAtom converts a Google Task to an Atom func GoogleTaskToAtom(t GoogleTask) Atom { // Google Tasks don't have explicit priority, default to medium (2) -- cgit v1.2.3