blob: f16e22642d08f263d840564dbf9d265a1426cb9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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.
|