diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-02-06 14:53:47 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-02-06 14:53:47 -1000 |
| commit | 27ee1a271248e9f1de8ecb981a6cabfa8e498b1b (patch) | |
| tree | 7a5b8555ea4199094104f3e2b1227c08a33037ed /web/templates/partials | |
| parent | 0a1001eb0bd2d1f7c0624ae1ef8ae7ccdb3447d4 (diff) | |
Fix missing settings button, disappeared events, and tab refresh bug
- Add settings gear icon link to dashboard header
- Fix GetTasksByDateRange/GetCardsByDateRange to include overdue items
(changed from BETWEEN to <= end, filter completed tasks)
- Fix refresh replacing active tab with tasks tab by using
htmx.trigger(body, 'refresh-tasks') instead of innerHTML+htmx.process
- Add refresh-tasks hx-trigger to meals, shopping, conditions tabs
- Add tests for overdue inclusion/exclusion, settings link, template data
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'web/templates/partials')
| -rw-r--r-- | web/templates/partials/conditions-tab.html | 6 | ||||
| -rw-r--r-- | web/templates/partials/meals-tab.html | 6 | ||||
| -rw-r--r-- | web/templates/partials/shopping-tab.html | 6 |
3 files changed, 15 insertions, 3 deletions
diff --git a/web/templates/partials/conditions-tab.html b/web/templates/partials/conditions-tab.html index 94c2f99..3ded125 100644 --- a/web/templates/partials/conditions-tab.html +++ b/web/templates/partials/conditions-tab.html @@ -1,5 +1,9 @@ {{define "conditions-tab"}} -<div class="space-y-6 text-shadow-sm"> +<div class="space-y-6 text-shadow-sm" + hx-get="/tabs/conditions" + hx-trigger="refresh-tasks from:body" + hx-target="#tab-content" + hx-swap="innerHTML"> <!-- Kilauea Webcams --> <div> <h2 class="text-lg font-semibold mb-3 flex items-center gap-2 text-white/90"> diff --git a/web/templates/partials/meals-tab.html b/web/templates/partials/meals-tab.html index 5900368..97c3a4e 100644 --- a/web/templates/partials/meals-tab.html +++ b/web/templates/partials/meals-tab.html @@ -1,5 +1,9 @@ {{define "meals-tab"}} -<div class="space-y-6"> +<div class="space-y-6" + hx-get="/tabs/meals" + hx-trigger="refresh-tasks from:body" + hx-target="#tab-content" + hx-swap="innerHTML"> <!-- PlanToEat Meals Section --> {{template "plantoeat-meals" .}} </div> diff --git a/web/templates/partials/shopping-tab.html b/web/templates/partials/shopping-tab.html index 345549b..e3742d9 100644 --- a/web/templates/partials/shopping-tab.html +++ b/web/templates/partials/shopping-tab.html @@ -1,5 +1,9 @@ {{define "shopping-tab"}} -<div class="space-y-6 text-shadow-sm" id="shopping-tab-container"> +<div class="space-y-6 text-shadow-sm" id="shopping-tab-container" + hx-get="/tabs/shopping" + hx-trigger="refresh-tasks from:body" + hx-target="#tab-content" + hx-swap="innerHTML"> <!-- Header with View Toggle --> <div class="flex items-center justify-between"> |
