From a1fa857a2f5ab163ffe5abbdeeb0eba8fc9508e9 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Tue, 13 Jan 2026 13:36:09 -1000 Subject: Implement Phase 2 Steps 3-5: Sorting and Search improvements Step 3 - Trello Smart Sorting: - Update GetBoards SQL with LEFT JOIN and MAX(c.id) for activity sorting - Update GetBoardsWithCards to find max card ID per board - Sort by: 1) Has cards, 2) Newest card activity, 3) Board name - Trello IDs are chronologically sortable (newer > older) Step 4 - Todoist Due-First Sorting: - Update GetTasks ORDER BY with CASE WHEN due_date IS NULL - Sort by: 1) Incomplete, 2) Has due date, 3) Earliest date, 4) Priority - Tasks with due dates appear before tasks without due dates Step 5 - Obsidian Search: - Add SearchNotes method with LIKE queries on title/content - Update HandleNotes to check 'q' query param and HX-Target header - Implement smart partial rendering (obsidian-notes vs notes-tab) - Add search input with 300ms debounce and HTMX integration - Real-time search without page reload Mark Steps 1-5 as complete in PHASE_2_SURGICAL_PLAN.md All tests passing Co-Authored-By: Claude Sonnet 4.5 --- web/templates/partials/notes-tab.html | 44 +++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 15 deletions(-) (limited to 'web/templates/partials/notes-tab.html') diff --git a/web/templates/partials/notes-tab.html b/web/templates/partials/notes-tab.html index 526f387..df844cf 100644 --- a/web/templates/partials/notes-tab.html +++ b/web/templates/partials/notes-tab.html @@ -3,20 +3,34 @@ {{template "error-banner" .}} - - {{if .Notes}} - {{template "obsidian-notes" .}} - {{else}} -
- - - -

No notes found

-

- Configure your Obsidian vault path in the settings to see your recent notes displayed here. -

-
- {{end}} + +
+ +
+ + +
+ {{if .Notes}} + {{template "obsidian-notes" .}} + {{else}} +
+ + + +

No notes found

+

+ Configure your Obsidian vault path in the settings to see your recent notes displayed here. +

+
+ {{end}} +
{{end}} -- cgit v1.2.3