From ec8a9c0ea46dec7d26caa763e3adefcaf3fc7552 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sun, 25 Jan 2026 11:56:29 -1000 Subject: Fix bugs and add bug management scripts Bug fixes: - #36: Hide recurring tasks until due day (add IsRecurring to Task/Atom) - Trello cards missing: change filter=visible to filter=open - Build fix: add missing fmt import in atom.go Infrastructure: - Add scripts/bugs and scripts/resolve-bug for DB bug tracking - Remove issues/ directory (bugs now tracked in DB) - Add timeline_logic_test.go Co-Authored-By: Claude Opus 4.5 --- internal/api/trello.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'internal/api/trello.go') diff --git a/internal/api/trello.go b/internal/api/trello.go index 4cf7e9e..a19bbea 100644 --- a/internal/api/trello.go +++ b/internal/api/trello.go @@ -86,7 +86,7 @@ func (c *TrelloClient) GetBoards(ctx context.Context) ([]models.Board, error) { // GetCards fetches all cards for a specific board func (c *TrelloClient) GetCards(ctx context.Context, boardID string) ([]models.Card, error) { params := c.authParams() - params.Set("filter", "visible") + params.Set("filter", "open") params.Set("fields", "id,name,idList,due,url,idBoard") var apiCards []trelloCardResponse @@ -95,7 +95,11 @@ func (c *TrelloClient) GetCards(ctx context.Context, boardID string) ([]models.C return nil, fmt.Errorf("failed to fetch cards: %w", err) } - log.Printf("Trello GetCards: board %s returned %d cards from API", boardID, len(apiCards)) + if len(apiCards) == 0 { + log.Printf("Trello GetCards: board %s returned 0 cards (may have only archived cards)", boardID) + } else { + log.Printf("Trello GetCards: board %s returned %d cards", boardID, len(apiCards)) + } // Fetch lists to get list names lists, err := c.getLists(ctx, boardID) -- cgit v1.2.3