diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-21 21:24:02 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-21 21:24:02 +0000 |
| commit | 764d4d2d07449aec72c87afe941b7c63ea05e08c (patch) | |
| tree | 042b157cfff2ab358b5bb9b891f26944133b7065 /internal/handlers/atoms.go | |
| parent | 5f4f59fc6302a4e44773d4a939ae7b3304d61f1f (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/handlers/atoms.go')
| -rw-r--r-- | internal/handlers/atoms.go | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/internal/handlers/atoms.go b/internal/handlers/atoms.go index 7bc4465..0ebf4e6 100644 --- a/internal/handlers/atoms.go +++ b/internal/handlers/atoms.go @@ -7,7 +7,7 @@ import ( "task-dashboard/internal/store" ) -// BuildUnifiedAtomList creates a list of atoms from tasks, cards, and bugs +// BuildUnifiedAtomList creates a list of atoms from tasks and cards func BuildUnifiedAtomList(s *store.Store) ([]models.Atom, []models.Board, error) { tasks, err := s.GetTasks() if err != nil { @@ -19,9 +19,7 @@ func BuildUnifiedAtomList(s *store.Store) ([]models.Atom, []models.Board, error) return nil, nil, err } - bugs, _ := s.GetUnresolvedBugs() // Ignore error, bugs are optional - - atoms := make([]models.Atom, 0, len(tasks)+len(bugs)) + atoms := make([]models.Atom, 0, len(tasks)) // Add incomplete tasks for _, task := range tasks { @@ -39,15 +37,6 @@ func BuildUnifiedAtomList(s *store.Store) ([]models.Atom, []models.Board, error) } } - // Add unresolved bugs - for _, bug := range bugs { - atoms = append(atoms, models.BugToAtom(models.Bug{ - ID: bug.ID, - Description: bug.Description, - CreatedAt: bug.CreatedAt, - })) - } - // Compute UI fields for all atoms for i := range atoms { atoms[i].ComputeUIFields() |
