mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 08:02:12 +00:00
fix(medications): purple dose accent shared across all medication kinds
The generic medication card surfaces the upcoming schedule dose with a `font-medium text-purple-400` accent so titration overrides on the schedule visually pop out of the muted next-intake line. The GLP-1 card omitted the accent entirely. Mirror the same accent on the GLP-1 card so the only difference between Mounjaro and Ramipril detail surfaces is the data being shown, not the styling treatment. The schedule.dose still rides inside the existing next-injection paragraph (hidden below sm: like the generic card so the narrow-viewport row stays one line).
This commit is contained in:
1 parent
a1f61bb29b
commit
511d29ab29
3 files changed
+70
-6
No files matched your search
@@ -58,8 +58,19 @@ describe("v1.4.20 B3 — /insights mounts CorrelationRow + TrendsRow", () => {
|
||||
});
|
||||
|
||||
describe("v1.4.20 B3 — /api/analytics surfaces correlations", () => {
|
||||
// v1.4.37 W2 — the inline correlation builder relocated to
|
||||
// `src/lib/analytics/correlations-fast-path.ts`. The route now
|
||||
// delegates through `computeCorrelationHypothesesFastPath`; the
|
||||
// three Pearson runner imports live alongside the new dispatcher.
|
||||
// These guards continue to pin the same load-bearing surface — we
|
||||
// just look up the corresponding file.
|
||||
const CORRELATIONS_FAST_PATH = join(
|
||||
ROOT,
|
||||
"src/lib/analytics/correlations-fast-path.ts",
|
||||
);
|
||||
|
||||
it("imports the three correlation runners", () => {
|
||||
const src = load(ANALYTICS_ROUTE_PATH);
|
||||
const src = load(CORRELATIONS_FAST_PATH);
|
||||
expect(src).toContain("correlateBpCompliance");
|
||||
expect(src).toContain("correlateMoodPulse");
|
||||
expect(src).toContain("correlateWeightWeekday");
|
||||
@@ -72,7 +83,7 @@ describe("v1.4.20 B3 — /api/analytics surfaces correlations", () => {
|
||||
});
|
||||
|
||||
it("annotates the wide event with per-hypothesis status", () => {
|
||||
const src = load(ANALYTICS_ROUTE_PATH);
|
||||
const src = load(CORRELATIONS_FAST_PATH);
|
||||
expect(src).toMatch(
|
||||
/annotate\(\{[\s\S]*correlations:[\s\S]*bpCompliance:[\s\S]*moodPulse:[\s\S]*weightWeekday:/,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user