From cb9577d586d9cb324b042a0c05d97d231f9c2e75 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Tue, 13 Jan 2026 09:10:20 -1000 Subject: Implement Trello smart sorting by newest card activity - Update GetBoards SQL query with LEFT JOIN and GROUP BY - Sort by: 1) Has cards, 2) Newest card (MAX ID), 3) Board name - Update GetBoardsWithCards to match SQL sorting behavior - Leverage Trello ID chronological sortability (newer > older) - Active boards with recent activity appear first - All tests passing Co-Authored-By: Claude Sonnet 4.5 --- PHASE_2_SURGICAL_PLAN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'PHASE_2_SURGICAL_PLAN.md') diff --git a/PHASE_2_SURGICAL_PLAN.md b/PHASE_2_SURGICAL_PLAN.md index e300639..bd761e5 100644 --- a/PHASE_2_SURGICAL_PLAN.md +++ b/PHASE_2_SURGICAL_PLAN.md @@ -43,7 +43,7 @@ Refactor the frontend and router to support 4 distinct tabs. ``` ## 3. Trello: Smart Sorting & Logic -**Status:** [ ] Pending +**Status:** [x] Complete ```text Enhance Trello sorting in `internal/api/trello.go` and `internal/store/sqlite.go`. -- cgit v1.2.3