mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 15:02:04 +00:00
chore(style): repo-wide prettier sweep before v1.4.6 tag
Long-overdue prettier sweep; prettier had drifted vs. checked-in code across ~130 files (mostly long-argument line-break wrapping in TS and table-padding in markdown). Pure formatting — no semantic changes — and required to clear the v1.4.6 release gate's `pnpm format:check`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
67575180b8
commit
02b99553b9
135 files changed
+2159
-1583
No files matched your search
@@ -76,8 +76,16 @@ describe("getEffectiveRange", () => {
|
||||
});
|
||||
|
||||
it("has different defaults for postprandial vs fasting", () => {
|
||||
const fasting = getEffectiveRange("BLOOD_GLUCOSE_FASTING", baseProfile, null);
|
||||
const post = getEffectiveRange("BLOOD_GLUCOSE_POSTPRANDIAL", baseProfile, null);
|
||||
const fasting = getEffectiveRange(
|
||||
"BLOOD_GLUCOSE_FASTING",
|
||||
baseProfile,
|
||||
null,
|
||||
);
|
||||
const post = getEffectiveRange(
|
||||
"BLOOD_GLUCOSE_POSTPRANDIAL",
|
||||
baseProfile,
|
||||
null,
|
||||
);
|
||||
expect(post.range!.greenMax).toBeGreaterThan(fasting.range!.greenMax);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -108,7 +108,11 @@ export function classifyPulseByTarget(
|
||||
target: PersonalizedPulseTarget,
|
||||
): PulseTargetClassification {
|
||||
if (bpm < target.orangeMin) {
|
||||
return { category: "Significantly low", color: "#8be9fd", severity: "info" };
|
||||
return {
|
||||
category: "Significantly low",
|
||||
color: "#8be9fd",
|
||||
severity: "info",
|
||||
};
|
||||
}
|
||||
if (bpm < target.greenMin) {
|
||||
return {
|
||||
@@ -121,7 +125,15 @@ export function classifyPulseByTarget(
|
||||
return { category: "On target", color: "#50fa7b", severity: "normal" };
|
||||
}
|
||||
if (bpm <= target.orangeMax) {
|
||||
return { category: "Slightly elevated", color: "#ffb86c", severity: "warning" };
|
||||
return {
|
||||
category: "Slightly elevated",
|
||||
color: "#ffb86c",
|
||||
severity: "warning",
|
||||
};
|
||||
}
|
||||
return { category: "Significantly elevated", color: "#ff5555", severity: "danger" };
|
||||
return {
|
||||
category: "Significantly elevated",
|
||||
color: "#ff5555",
|
||||
severity: "danger",
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user