Compare commits

..

2 Commits

Author SHA1 Message Date
Alexander Heldt 3a9f822998 Remove the redundant "Currently" row from the overview
The big clock already shows the asleep/awake state prominently.
2026-07-12 16:21:46 +00:00
Alexander Heldt 55667f7165 Add training tracking: exercises with instructions, one-tap session log, consistency overview
Exercises (name + how-to note) are a new synced collection with the same
LWW/tombstone contract as events, served by POST /api/exercises/sync.
Training sessions are ordinary events (type "training") referencing an
exercise by id, so they ride the existing event sync unchanged.

The Training panel lists each exercise with last-trained / this-week /
streak stats, expandable instructions, and a one-tap Log button with the
usual undo/add-note snackbar. An exercise-by-day heatmap shows the last
14 days of consistency, and history and the daily overview count
training sessions like any other event.
2026-07-12 16:21:46 +00:00
+1 -1
View File
@@ -1375,7 +1375,7 @@
const logBtn = document.createElement("button");
logBtn.type = "button";
logBtn.className = "ex-log";
logBtn.textContent = " Log";
logBtn.textContent = "Log";
logBtn.addEventListener("click", (e) => {
e.stopPropagation();
const ev = addEvent("training", "", Date.now(), "", undefined, ex.id);