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/models/types.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/models/types.go')
| -rw-r--r-- | internal/models/types.go | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/internal/models/types.go b/internal/models/types.go index 245f25f..fab732f 100644 --- a/internal/models/types.go +++ b/internal/models/types.go @@ -52,12 +52,13 @@ type Board struct { // Card represents a Trello card type Card struct { - ID string `json:"id"` - Name string `json:"name"` - ListID string `json:"list_id"` - ListName string `json:"list_name"` - DueDate *time.Time `json:"due_date,omitempty"` - URL string `json:"url"` + ID string `json:"id"` + Name string `json:"name"` + ListID string `json:"list_id"` + ListName string `json:"list_name"` + BoardName string `json:"board_name"` + DueDate *time.Time `json:"due_date,omitempty"` + URL string `json:"url"` } // Project represents a Todoist project @@ -85,6 +86,7 @@ type DashboardData struct { Notes []Note `json:"notes"` Meals []Meal `json:"meals"` Boards []Board `json:"boards,omitempty"` + TrelloTasks []Card `json:"trello_tasks,omitempty"` Projects []Project `json:"projects,omitempty"` LastUpdated time.Time `json:"last_updated"` Errors []string `json:"errors,omitempty"` |
