summaryrefslogtreecommitdiff
path: root/web/templates/partials/timeline-tab.html
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-07-16 07:03:03 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-07-16 07:03:03 +0000
commit6651dc17110a558342a4ef0a97a5b37adbfa04c7 (patch)
tree238d26106f88abb5a00ace811779bc7274997ff9 /web/templates/partials/timeline-tab.html
parent8a200f7f56c2894349b3f2831cd82625655acc7f (diff)
Show a scheduled-vs-available indicator on the web timeline's Today section
Task 11 of the task-budgets-and-availability plan: reuse the computeBudgetStatus helper (Task 8) in HandleTimeline so the dashboard's Today section header shows scheduled/available minutes when a budget-tracked task exists. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQaPGQVSfmKUiHXB87qRTC
Diffstat (limited to 'web/templates/partials/timeline-tab.html')
-rw-r--r--web/templates/partials/timeline-tab.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/templates/partials/timeline-tab.html b/web/templates/partials/timeline-tab.html
index 36f861c..d3b3fb6 100644
--- a/web/templates/partials/timeline-tab.html
+++ b/web/templates/partials/timeline-tab.html
@@ -116,6 +116,9 @@
<summary class="text-lg font-semibold mb-3 flex items-center gap-2 text-white/90 cursor-pointer hover:text-white sticky top-0 bg-black/20 backdrop-blur-md py-2 z-10 rounded-lg px-2 list-none">
<span>๐Ÿ“…</span> {{.TodayLabel}}
<span class="text-sm font-normal text-white/50">({{len .TodayItems}} items)</span>
+ {{if .BudgetStatus}}
+ <span class="text-sm font-normal text-white/50">ยท {{.BudgetStatus.Today.ScheduledMinutes}}m scheduled / {{.BudgetStatus.Today.AvailableMinutes}}m available</span>
+ {{end}}
<svg class="w-4 h-4 ml-auto transform transition-transform group-open:rotate-180" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
</svg>