From f3cb8ca848281e5446031d2b6e7d99f1be125d81 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 7 Apr 2026 05:50:00 -0300 Subject: [PATCH] fix: show total hours right-aligned in Today's Todos headline --- dashboard.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dashboard.html b/dashboard.html index b121bf5..10dbf6a 100644 --- a/dashboard.html +++ b/dashboard.html @@ -612,6 +612,13 @@ .map(buildMeetingCard) .join(""); const todosHtml = todos.map(buildTodoItem).join(""); + const totalMinutes = todos.reduce( + (sum, t) => sum + (t.Minutes || 0), + 0, + ); + const totalHours = (totalMinutes / 60) + .toFixed(1) + .replace(/\.0$/, ""); const signups = buildSignupItems(currentTestsRaw); document.getElementById("dashboard").innerHTML = ` @@ -643,7 +650,7 @@
-
Today's Todos
+
Today's Todos${totalHours}h
${todosHtml || '
No todos
'}