Commit Graph
2 Commits
Author SHA1 Message Date
Alexander Heldt a37474ab82 Bring the checks up to date with the trend and range changes
The checks had fallen behind three refactors and had stopped running:
foodTrend became dailyTrend (the sleep trend line), the sleep average
moved into averageDays, and the custom date range replaced chartDays
with chartRange/chartSpan and gave the sentences a window phrase.

They now load the current functions. The window check exercises the
real range picker against stored settings, with a new case for a custom
range in the past. No assertion changed meaning; all 223 pass.
2026-10-04 18:23:57 +00:00
Alexander Heldt e4a5c3fe29 Leave a day that doesn't count off the trends entirely
The Sleep and Walk trends already kept a day marked "not counted" out of the
window average and out of the "yesterday" comparison. What they still drew was
that day's own curve, when it was the day you had selected — as the boldest
line on the panel. So the single day you had said not to trust was the one the
chart led with, against references that had carefully excluded it.

It is left off now, along with its legend chip and, for the sleep trend, the
projected tail that continued it. What remains is the average and yesterday,
which is what you would want to look at on a day like that.

This reverses part of an earlier fix. That one stopped the curve being drawn as
a flat zero, on the reasoning that marking a day means "don't let it drag the
average" rather than "pretend nothing happened". The flat zero was certainly
wrong, but so was the conclusion: a real curve for an untrusted day is still
the wrong thing to lead with. Absent is the honest third option.

The walk trend gets the same treatment. It is the same panel in different
units, and the two disagreeing about what a marked day means would be worse
than either answer.
2026-09-21 20:44:23 +00:00