diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-01-18 14:06:26 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-01-18 14:06:26 -1000 |
| commit | 143166ce759ce2cb0133b7438db36b844a9db1a7 (patch) | |
| tree | c7adf1243a9927f568f5937f95419a1b4b61a709 /internal/api/trello.go | |
| parent | 9cee3f78483532828a2f72c65eb2b952b2ded670 (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'internal/api/trello.go')
| -rw-r--r-- | internal/api/trello.go | 4 |
1 files changed, 4 insertions, 0 deletions
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 } |
