diff --git a/CHANGELOG.md b/CHANGELOG.md index a56812c..d19781f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,11 +23,26 @@ is re-sent), while real samples are identified by instant plus numbers and store every five minutes, hourly, or once a day all land the same way. `docs/HEALTH.md` has the settings, the merge table and the one configuration that is merely approximate rather than wrong. +The other half of that problem is **granularity**. "8,123 steps today" is a number you cannot look +into, and the phone that sent it sent 288 readings to build it. With *Time Grouping: Hours* each +hour arrives as its own bucket, and the receiver replaces that hour exactly the way it replaces a +day (the hour in progress grows on every run), then recomputes the day as the sum of its hours — so +the day total and the hourly detail can never disagree, and switching an automation from Days to +Hours mid-day converges instead of double-counting. Tapping a card now opens the day **hour by +hour**, the days before it, and every field the watch sent; when the automation still groups by +Days, the sheet says so rather than drawing an empty chart. The hours are kept for a week (the day +aggregates keep the full 400 days) and are fetched one metric and one day at a time, so a screen +showing forty cards does not download 24 buckets × forty metrics to draw a grid. `Date range` is +the setting that decides whether history exists at all: with HAE's default `Today`, yesterday is +never sent, which is exactly what a card frozen on a single day looks like — `Previous 7 Days` is +what the setup steps now say. + Also here: the watch's workouts are shown **read-only** in Salud and deliberately kept out of the history — they carry no sets or weights, so folding them into progression, PRs and the recovery -model would be inventing data. Coverage: `api/vitals.js` (13 tests), the routes against a real -server (4), the card model (18), plus the endpoint documented in `api/openapi.yaml` and the new -`docs/HEALTH.md` setup guide. +model would be inventing data. Coverage: `api/vitals.js` (19 tests), the routes against a real +server (5), the card model and its hour/history rows (31), the screen and its detail sheet (12 +render tests), plus the endpoints documented in `api/openapi.yaml` and the new `docs/HEALTH.md` +setup guide.