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
'}