chore(format): prettier sweep across develop

Mostly table column normalisation under docs/audit/ + planning, object-
literal expansion in src/lib/ai/coach/snapshot.ts after the W4 F6 Apple
Health metric block landed, and small wrap/unwrap line adjustments in
the device + APNs routes / tests touched across W3/W4/W5 sessions.
No behavioural change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Marc-André BombeckandClaude Opus 4.7 committed 2026-05-11 08:27:51 +02:00
1 parent 5dcd3954a0
commit f1e6630958
70 files changed
+899 -660

No files matched your search

+6 -9
View File
@@ -150,9 +150,8 @@ describe("APNs dispatcher integration", () => {
failed: [],
});
const { dispatchNotification } = await import(
"@/lib/notifications/dispatcher"
);
const { dispatchNotification } =
await import("@/lib/notifications/dispatcher");
await dispatchNotification({
userId: TEST_USER_ID,
eventType: "MEDICATION_REMINDER",
@@ -191,9 +190,8 @@ describe("APNs dispatcher integration", () => {
],
});
const { dispatchNotification } = await import(
"@/lib/notifications/dispatcher"
);
const { dispatchNotification } =
await import("@/lib/notifications/dispatcher");
await dispatchNotification({
userId: TEST_USER_ID,
eventType: "SYSTEM_ALERT",
@@ -245,9 +243,8 @@ describe("APNs dispatcher integration", () => {
telegramSendMock.mockResolvedValueOnce({ ok: true, messageId: 42 });
const { dispatchNotification } = await import(
"@/lib/notifications/dispatcher"
);
const { dispatchNotification } =
await import("@/lib/notifications/dispatcher");
await dispatchNotification({
userId: TEST_USER_ID,
eventType: "MEDICATION_REMINDER",
+12 -4
View File
@@ -89,7 +89,9 @@ describe("POST /api/devices", () => {
apnsToken: "abcdef0123456789",
apnsEnvironment: "sandbox",
});
const res = await (POST as (r: import("next/server").NextRequest) => Promise<Response>)(req);
const res = await (
POST as (r: import("next/server").NextRequest) => Promise<Response>
)(req);
expect(res.status).toBe(201);
const channel = await getPrismaClient().notificationChannel.findFirst({
@@ -107,7 +109,9 @@ describe("POST /api/devices", () => {
token: "legacy-token-2",
bundleId: "io.healthlog.ios",
});
const res = await (POST as (r: import("next/server").NextRequest) => Promise<Response>)(req);
const res = await (
POST as (r: import("next/server").NextRequest) => Promise<Response>
)(req);
expect(res.status).toBe(201);
const channel = await getPrismaClient().notificationChannel.findFirst({
@@ -120,7 +124,9 @@ describe("POST /api/devices", () => {
const user = await seedSession("device-apns-idempotent");
const { POST } = await import("@/app/api/devices/route");
const first = await (POST as (r: import("next/server").NextRequest) => Promise<Response>)(
const first = await (
POST as (r: import("next/server").NextRequest) => Promise<Response>
)(
buildRequest({
token: "legacy-token-3",
bundleId: "io.healthlog.ios",
@@ -130,7 +136,9 @@ describe("POST /api/devices", () => {
);
expect(first.status).toBe(201);
const second = await (POST as (r: import("next/server").NextRequest) => Promise<Response>)(
const second = await (
POST as (r: import("next/server").NextRequest) => Promise<Response>
)(
buildRequest({
token: "legacy-token-3",
bundleId: "io.healthlog.ios",