summaryrefslogtreecommitdiff
path: root/internal/models/atom.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-21 21:24:02 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-21 21:24:02 +0000
commit764d4d2d07449aec72c87afe941b7c63ea05e08c (patch)
tree042b157cfff2ab358b5bb9b891f26944133b7065 /internal/models/atom.go
parent5f4f59fc6302a4e44773d4a939ae7b3304d61f1f (diff)
feat: Phase 1 — remove bug feature and dead code
- Delete Bug struct, BugToAtom, SourceBug, TypeBug, TypeNote - Remove bug store methods (SaveBug, GetBugs, ResolveBug, etc.) - Remove HandleGetBugs, HandleReportBug, bug branches in handlers - Remove bug routes, bugs.html template, bug UI from index.html - Remove AddMealToPlanner stub + interface method - Migration 018: DROP TABLE IF EXISTS bugs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/models/atom.go')
-rw-r--r--internal/models/atom.go24
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,
- }
-}