summaryrefslogtreecommitdiff
path: root/issues/phase3_step2_trello_lists.md
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 /issues/phase3_step2_trello_lists.md
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 'issues/phase3_step2_trello_lists.md')
-rw-r--r--issues/phase3_step2_trello_lists.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/issues/phase3_step2_trello_lists.md b/issues/phase3_step2_trello_lists.md
new file mode 100644
index 0000000..f16e226
--- /dev/null
+++ b/issues/phase3_step2_trello_lists.md
@@ -0,0 +1,21 @@
+# Phase 3 Step 2: Trello Lists Support
+
+## Description
+To enable "Add Card" functionality, we need to know the available lists for each board. Currently, the `Board` model does not include lists, and the API client only fetches lists internally to map names.
+
+## Requirements
+1. **Update Models**: Add `List` struct and `Lists` field to `Board`.
+2. **Update Interface**: Add `GetLists` to `TrelloAPI`.
+3. **Update Client**:
+ * Refactor `getLists` to return `[]models.List`.
+ * Update `GetBoardsWithCards` to populate `board.Lists`.
+ * Implement public `GetLists`.
+
+## Plan
+1. Modify `internal/models/types.go`.
+2. Modify `internal/api/interfaces.go`.
+3. Modify `internal/api/trello.go`.
+
+## Verification
+* Run `go test ./internal/api/...` to ensure no regressions.
+* (Implicit) The UI will eventually use this data.