refactor(insights): reduce the blood-pressure card to its snapshot

This commit is contained in:
Marc-André Bombeck committed 2026-10-23 11:08:35 +02:00
1 parent 6d3cfbba05
commit 87a35b670d
3 files changed
+298 -461

No files matched your search

@@ -41,7 +41,6 @@ vi.mock("next/headers", () => ({
vi.mock("@/lib/insights/blood-pressure-status", () => ({
generateBloodPressureStatusForUser: vi.fn(),
resolveBloodPressureStatusLocale: () => "en",
}));
// The `statusText` capability decides whether the note is served; the
@@ -1,9 +1,7 @@
import { NextRequest } from "next/server";
import { apiSuccess } from "@/lib/api-response";
import {
generateBloodPressureStatusForUser,
resolveBloodPressureStatusLocale,
} from "@/lib/insights/blood-pressure-status";
import { generateBloodPressureStatusForUser } from "@/lib/insights/blood-pressure-status";
import { normalizeLocale as resolveBloodPressureStatusLocale } from "@/lib/insights/status-shared";
import { apiHandler, requireRecordAuth } from "@/lib/api-handler";
import { annotate } from "@/lib/logging/context";
import { resolveServerLocale } from "@/lib/i18n/server-locale";