summaryrefslogtreecommitdiff
path: root/internal/handlers/handlers_test.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-01-13 14:04:12 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-01-13 14:04:12 -1000
commit0fda0e9e4b0c6a73be513987264329e4515170f1 (patch)
tree046f9f903492d0a069c46b351479b652335e6fc2 /internal/handlers/handlers_test.go
parent1c79f105c960ddab2265cbfd8dfd728630b1ebfb (diff)
Add Trello Lists support for UI dropdowns
Expose Trello Lists in Board model to enable card creation UI: - Add List model struct (ID, Name) to types.go - Add Lists []List field to Board model - Add GetLists method to TrelloAPI interface - Refactor private getLists to return []models.List - Update GetCards to build list map from slice - Add public GetLists method wrapping private implementation - Update GetBoardsWithCards to populate Lists field concurrently - Update mock Trello client in tests to implement GetLists All tests pass. Boards now include their lists for UI rendering. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'internal/handlers/handlers_test.go')
-rw-r--r--internal/handlers/handlers_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/handlers/handlers_test.go b/internal/handlers/handlers_test.go
index 902bebb..13973df 100644
--- a/internal/handlers/handlers_test.go
+++ b/internal/handlers/handlers_test.go
@@ -106,6 +106,10 @@ func (m *mockTrelloClient) GetCards(ctx context.Context, boardID string) ([]mode
return []models.Card{}, nil
}
+func (m *mockTrelloClient) GetLists(ctx context.Context, boardID string) ([]models.List, error) {
+ return []models.List{}, nil
+}
+
func (m *mockTrelloClient) CreateCard(ctx context.Context, listID, name, description string, dueDate *time.Time) (*models.Card, error) {
return nil, nil
}