summaryrefslogtreecommitdiff
path: root/web/templates
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-01-13 09:03:56 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-01-13 09:03:56 -1000
commitfc4a3a0ea9a10c91b01f2b4e3857b367cb03ed78 (patch)
treed520d408abddbbf9f8760fa2bf5e8b41659724c7 /web/templates
parentb112927937c4441acc7922d40beb147cd9cdd2ea (diff)
Implement 4-tab architecture with unified Atom rendering
- Create TabsHandler with 4 specialized tab methods - HandleTasks: Unified Atom view (Todoist + Trello due cards) - HandlePlanning: Dedicated Trello boards view - HandleNotes: Obsidian notes view - HandleMeals: PlanToEat meals view - Rewrite tasks-tab template for Atom rendering - Add planning-tab and meals-tab templates - Update index.html navigation with 4 tabs - Smart sorting: Tasks sorted by due date then priority - Clean separation: Tasks (action), Planning (structure), Notes (knowledge), Meals (calendar) Template fixes: - Load initial tab content via HTMX to avoid data structure mismatch - Update refresh logic to use 2-step process (API refresh + tab reload) - Fix manual and auto-refresh to call tab endpoints directly Note: Router changes in cmd/dashboard/main.go (untracked file) at lines 55-78 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'web/templates')
-rw-r--r--web/templates/index.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/web/templates/index.html b/web/templates/index.html
index b544ec3..b545a6e 100644
--- a/web/templates/index.html
+++ b/web/templates/index.html
@@ -61,8 +61,13 @@
</div>
<!-- Tab Content -->
- <div id="tab-content">
- {{template "tasks-tab" .}}
+ <div id="tab-content"
+ hx-get="/tabs/tasks"
+ hx-trigger="load"
+ hx-swap="innerHTML">
+ <div class="text-center py-8">
+ <div class="inline-block animate-pulse text-gray-600">Loading...</div>
+ </div>
</div>
</div>