summaryrefslogtreecommitdiff
path: root/SESSION_STATE.md
diff options
context:
space:
mode:
Diffstat (limited to 'SESSION_STATE.md')
-rw-r--r--SESSION_STATE.md12
1 files changed, 9 insertions, 3 deletions
diff --git a/SESSION_STATE.md b/SESSION_STATE.md
index dd8e30f..4c03fb2 100644
--- a/SESSION_STATE.md
+++ b/SESSION_STATE.md
@@ -51,6 +51,13 @@ Frontend modernization with tabs, HTMX, and Tailwind build pipeline complete.
- web/templates/partials/planning-tab.html: New tab for Trello boards
- web/templates/partials/meals-tab.html: New tab for PlanToEat meals
- Clean separation of concerns: Tasks (due items), Planning (all boards), Notes (knowledge), Meals (calendar)
+- **Trello Smart Sorting:** Activity-based board ordering by newest card
+ - internal/store/sqlite.go:426-438: Updated GetBoards SQL query with LEFT JOIN and GROUP BY
+ - Sort order: 1) Has cards (COUNT > 0), 2) Newest card (MAX(c.id) DESC), 3) Board name (ASC)
+ - internal/api/trello.go:220-254: Updated GetBoardsWithCards sorting logic
+ - Finds maximum card ID in each board (Trello IDs are chronologically sortable)
+ - Active boards with recent activity appear first, inactive boards at bottom
+ - All tests passing (go test ./...)
- **Build Pipeline:** npm + PostCSS + Tailwind configuration (replaced CDN)
- package.json, tailwind.config.js, postcss.config.js, Makefile
- Custom design system with brand colors (Trello, Todoist, Obsidian, PlanToEat)
@@ -94,9 +101,8 @@ Frontend modernization with tabs, HTMX, and Tailwind build pipeline complete.
- **Decision:** Unified Atom Model - Abstract all data sources (Trello, Todoist, Obsidian, PlanToEat) into a single `models.Atom` type for consistent handling, sorting, and rendering across the UI.
## 📋 Next Steps
-1. **Phase 2 Step 3:** Trello smart sorting (activity-based, modification date).
-2. **Phase 2 Step 4:** Todoist "due first" sorting.
-3. **Phase 2 Remaining:** Obsidian search & categorization, visual overhaul (glassmorphism), write operations, PWA.
+1. **Phase 2 Step 4:** Todoist "due first" sorting.
+2. **Phase 2 Remaining:** Obsidian search & categorization, visual overhaul (glassmorphism), write operations, PWA.
## ⚠️ Known Blockers / Debt
- None currently.