mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
refactor(cycle,medications): break the gate and compliance import cycles
The module gate and the cycle gate imported each other for one pure predicate. isCycleEnabled moves to lib/cycle/enabled.ts and both gates import it from there. The band minter read DOSE_WINDOW_DEFAULTS through the analytics/compliance re-export barrel, which loads the compliance display and with it the scheduling modules that import the minter. It now imports the constant from the module that defines it. Runtime import cycles fall from 6 to 4.
This commit is contained in:
1 parent
78ac2c5aeb
commit
b1400a8130
11 files changed
+36
-44
No files matched your search
@@ -46,7 +46,7 @@
|
||||
*/
|
||||
import { apiError } from "@/lib/api-response";
|
||||
import { prisma } from "@/lib/db";
|
||||
import { isCycleEnabled } from "@/lib/cycle/gate";
|
||||
import { isCycleEnabled } from "@/lib/cycle/enabled";
|
||||
import { getAssistantFlags } from "@/lib/feature-flags";
|
||||
import { memoizePerRequest } from "@/lib/request-cache";
|
||||
import {
|
||||
|
||||
Reference in new issue
Block a user