From 143166ce759ce2cb0133b7438db36b844a9db1a7 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sun, 18 Jan 2026 14:06:26 -1000 Subject: Implement Trello task heuristics for Tasks tab (Phase 3 Step 6) Add filtering logic to show Trello cards as actionable tasks when they have due dates OR are in lists named like "todo", "doing", "in progress", "tasks", "next", or "today". This makes the Tasks tab more useful by surfacing cards that represent work items even without explicit due dates. Co-Authored-By: Claude Opus 4.5 --- internal/api/trello.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/api/trello.go') diff --git a/internal/api/trello.go b/internal/api/trello.go index 9c18ade..7140f79 100644 --- a/internal/api/trello.go +++ b/internal/api/trello.go @@ -225,6 +225,10 @@ func (c *TrelloClient) GetBoardsWithCards(ctx context.Context) ([]models.Board, // Fetch cards cards, err := c.GetCards(ctx, boards[i].ID) if err == nil { + // Set BoardName for each card + for j := range cards { + cards[j].BoardName = boards[i].Name + } // It is safe to write to specific indices of the slice concurrently boards[i].Cards = cards } -- cgit v1.2.3