From 764d4d2d07449aec72c87afe941b7c63ea05e08c Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sat, 21 Mar 2026 21:24:02 +0000 Subject: feat: Phase 1 — remove bug feature and dead code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- internal/models/atom.go | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'internal/models/atom.go') 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, - } -} -- cgit v1.2.3