diff options
Diffstat (limited to 'internal/models/atom.go')
| -rw-r--r-- | internal/models/atom.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/internal/models/atom.go b/internal/models/atom.go index 3804de4..9c519ba 100644 --- a/internal/models/atom.go +++ b/internal/models/atom.go @@ -1,7 +1,6 @@ package models import ( - "fmt" "time" "task-dashboard/internal/config" @@ -13,16 +12,13 @@ const ( SourceTrello AtomSource = "trello" SourceTodoist AtomSource = "todoist" SourceMeal AtomSource = "plantoeat" - SourceBug AtomSource = "bug" ) type AtomType string const ( TypeTask AtomType = "task" - TypeNote AtomType = "note" TypeMeal AtomType = "meal" - TypeBug AtomType = "bug" ) // Atom represents a unified unit of work or information @@ -147,23 +143,3 @@ func MealToAtom(m Meal) Atom { } } -// BugToAtom converts a Bug to an Atom -func BugToAtom(b Bug) Atom { - // Bugs get high priority (3) to encourage fixing - priority := 3 - - return Atom{ - ID: fmt.Sprintf("bug-%d", b.ID), - Title: b.Description, - Description: "Bug Report", - Source: SourceBug, - Type: TypeBug, - URL: "", - DueDate: nil, // Bugs don't have due dates - CreatedAt: b.CreatedAt, - Priority: priority, - SourceIcon: "🐛", - ColorClass: "border-red-700", - Raw: b, - } -} |
