mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 06:52:04 +00:00
Cap chronotype window in the shared assembler
Make computeSleepRhythmFromNights own the chronotype look-back so the dashboard summary (a year of nights) and GET /api/sleep/rhythm (six weeks) return the same band, mid-sleep, and social-jetlag values rather than averaging different samples. Derive the free/work day-type from the local wake-day digits so the classification holds in far-east timezones, and read the shared sleep-rhythm DTO type into the client hook instead of a hand-mirrored copy.
This commit is contained in:
1 parent
d1ba01548f
commit
1ce1c786b6
4 files changed
+99
-59
No files matched your search
@@ -661,7 +661,6 @@ async function buildDashboardSummary(
|
||||
sleepPriorityJson,
|
||||
),
|
||||
sleepNeedMinutes(sleepProfile.ageYears),
|
||||
userTz,
|
||||
);
|
||||
|
||||
const metrics: MetricCard[] = [];
|
||||
|
||||
Reference in new issue
Block a user