mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 13:52:20 +00:00
style: apply prettier 3.9.1 formatting
Mechanical reflow from the prettier 3.9.1 bump; no behaviour change.
This commit is contained in:
1 parent
6329540ade
commit
0f2b548138
90 files changed
+123
-406
No files matched your search
@@ -123,10 +123,7 @@ export const POST = apiHandler(async (request: NextRequest) => {
|
||||
* legacy / unmapped code. Secret-free by construction.
|
||||
*/
|
||||
type TestFailureCode =
|
||||
| "credentials"
|
||||
| "rate_limited"
|
||||
| "server_error"
|
||||
| "unreachable";
|
||||
"credentials" | "rate_limited" | "server_error" | "unreachable";
|
||||
|
||||
/**
|
||||
* Map an upstream provider failure to a human-readable, secret-free
|
||||
|
||||
@@ -53,10 +53,7 @@ const bodySchema = z.object({
|
||||
});
|
||||
|
||||
export type CheckUserBranch =
|
||||
| "not_found"
|
||||
| "passkey_only"
|
||||
| "email_fallback"
|
||||
| "exists";
|
||||
"not_found" | "passkey_only" | "email_fallback" | "exists";
|
||||
|
||||
export const POST = apiHandler(async (request: NextRequest) => {
|
||||
// v1.4.43 W13 M-4 — tighter shared bucket on trust-chain misconfig.
|
||||
|
||||
@@ -175,8 +175,7 @@ describe("GET /api/dashboard/summary", () => {
|
||||
// The previous shape emitted "Gewicht" / "kg" / "Schritte" verbatim,
|
||||
// which injected DE into an English iOS UI.
|
||||
const weightCard = body.data.metrics.find((m) => m.id === "weight") as
|
||||
| { titleKey: string; unitKey: string }
|
||||
| undefined;
|
||||
{ titleKey: string; unitKey: string } | undefined;
|
||||
expect(weightCard?.titleKey).toBe("dashboard.metric.title.weight");
|
||||
expect(weightCard?.unitKey).toBe("dashboard.metric.unit.weight");
|
||||
expect(
|
||||
|
||||
@@ -226,9 +226,10 @@ async function buildComparisonSnapshotForUser(
|
||||
orderBy: { measuredAt: "asc" },
|
||||
select: { measuredAt: true, value: true },
|
||||
});
|
||||
dataPoints = measurements.map(
|
||||
(m): DataPoint => ({ date: m.measuredAt, value: m.value }),
|
||||
);
|
||||
dataPoints = measurements.map((m): DataPoint => ({
|
||||
date: m.measuredAt,
|
||||
value: m.value,
|
||||
}));
|
||||
}
|
||||
const summary = summarize(dataPoints);
|
||||
const baselineAvg =
|
||||
|
||||
@@ -542,8 +542,7 @@ async function postBatch(request: NextRequest): Promise<Response> {
|
||||
unit: p.row.unit as string,
|
||||
measuredAt: p.row.measuredAt as Date,
|
||||
externalSourceVersion: p.row.externalSourceVersion as
|
||||
| string
|
||||
| null,
|
||||
string | null,
|
||||
deviceType: p.row.deviceType as Prepared["row"]["deviceType"],
|
||||
sleepStage: p.row.sleepStage as Prepared["row"]["sleepStage"],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user