mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 07:13:29 +00:00
refactor(rollups): move WMY and cumulative readers
- src/lib/measurements/rollup-read-wmy.ts → src/lib/rollups/measurement-read-wmy.ts - src/lib/measurements/rollup-read-cumulative.ts → src/lib/rollups/measurement-read-cumulative.ts - co-located tests follow the source files - cumulative module's sibling import of apple-health-mapping promoted to the @/lib alias since that mapping stays in src/lib/measurements/ Importers updated: 2 sites for WMY (health-score + summaries-slice), zero external sites for cumulative (only co-located test reads it). Pure relocation.
This commit is contained in:
1 parent
b7da526cbb
commit
8cfb1715b4
6 files changed
+5
-5
No files matched your search
@@ -45,7 +45,7 @@ import {
|
||||
probeRollupCoverage,
|
||||
type RollupCoverageMap,
|
||||
} from "@/lib/rollups/measurement-coverage";
|
||||
import { readBestGranularityRollups } from "@/lib/measurements/rollup-read-wmy";
|
||||
import { readBestGranularityRollups } from "@/lib/rollups/measurement-read-wmy";
|
||||
import { calculateCompliance } from "./compliance";
|
||||
import {
|
||||
computeHealthScore,
|
||||
|
||||
@@ -68,7 +68,7 @@ import {
|
||||
aggregateWmyBuckets,
|
||||
readBestGranularityRollups,
|
||||
type RollupBucketRow,
|
||||
} from "@/lib/measurements/rollup-read-wmy";
|
||||
} from "@/lib/rollups/measurement-read-wmy";
|
||||
|
||||
const DAY_MS = 24 * 60 * 60 * 1000;
|
||||
|
||||
|
||||
Reference in new issue
Block a user