Fix remaining health review issues and document ring clock skew

This commit is contained in:
James Babcock committed 2026-09-17 21:21:05 -07:00
1 parent 7677dd254e
commit 27a5fe47ef
10 files changed
+323 -191

No files matched your search

+2 -3
View File
@@ -28,7 +28,7 @@ import {
type InProcessAppOptions,
type InProcessWindow,
} from "../../ui/shell/in-process-window";
import { dailySummary, hypnogram, rollupSeries, type DailySummary } from "../../health/health-derive";
import { dailySummary, dailyHypnogram, rollupSeries, type DailySummary } from "../../health/health-derive";
import {
drawGlancePage,
GLANCE_PAGES,
@@ -114,8 +114,7 @@ class HealthLayer implements Layer {
});
}
this.hourly = hourly;
const night = sessions.find((session) => session.dayStartMs === today);
this.stageBands = night ? hypnogram(night) : [];
this.stageBands = dailyHypnogram(sessions, today);
this.fixture = isFixtureData();
} catch (error) {
console.warn("health glance reload failed", error);