forked from Blendman974/faceclaw
Fix remaining health review issues and document ring clock skew
This commit is contained in:
1 parent
7677dd254e
commit
27a5fe47ef
10 files changed
+323
-191
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user