From 9ef5b7f37883f846f105da9dc5d2ba1415e594e3 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Mon, 12 Jan 2026 14:05:27 -1000 Subject: Sort Trello boards with active boards first Improves UX by prioritizing boards with cards over empty boards. Both API and cached results now sort consistently: non-empty boards appear first, then empty boards, with alphabetical ordering within each group. Co-Authored-By: Claude Sonnet 4.5 --- SESSION_STATE.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'SESSION_STATE.md') diff --git a/SESSION_STATE.md b/SESSION_STATE.md index a663d91..55138c9 100644 --- a/SESSION_STATE.md +++ b/SESSION_STATE.md @@ -1,7 +1,7 @@ # Current Session State ## 🎯 Active Goal -Complete security test coverage for path traversal and SQL injection fixes. +Board sorting implementation complete. ## ✅ Completed - Initial Phase 1 feature set (Trello, Todoist, Obsidian, PlanToEat) @@ -25,6 +25,11 @@ Complete security test coverage for path traversal and SQL injection fixes. - internal/api/obsidian_test.go: TestGetNotes_SymlinkSecurity validates symlink protection - internal/store/sqlite_test.go: TestGetNotes_LimitClause validates LIMIT parameterization - 2 new test files with 7 total test cases, all passing + - **Commit:** e576710 "Add security tests for path traversal and SQL injection fixes" +- **UX Improvement:** Board sorting - non-empty boards first, then alphabetical + - internal/api/trello.go:220-228: Added sort logic to GetBoardsWithCards + - internal/store/sqlite.go:428-433: Updated SQL query to sort cached boards consistently + - Empty boards now pushed to bottom, active boards at top ## 🏗️ Architecture & Decisions - **Decision:** Use SQLite for caching with a 5-minute TTL. -- cgit v1.2.3