style: apply prettier across the tree

One-shot prettier pass so the new format:check gate starts from a clean
baseline. Formatting only — no behaviour change. Generator-owned and
vendored artifacts stay untouched via .prettierignore.
This commit is contained in:
Marc-André Bombeck committed 2026-06-19 22:20:31 +02:00
1 parent b3fea2ef59
commit 1f4ba5939d
1000 files changed
+12130 -8385

No files matched your search

+4 -1
View File
@@ -105,7 +105,10 @@ describe("clinician share page", () => {
});
it("renders a legacy (no-passphrase) link without a gate", async () => {
gateState.mockResolvedValue({ tokenHash: TOKEN_HASH, passphraseHash: null });
gateState.mockResolvedValue({
tokenHash: TOKEN_HASH,
passphraseHash: null,
});
resolve.mockResolvedValue(resolvedContext());
loadData.mockResolvedValue({ report: {}, sections: {} });
await ClinicianSharePage(pageProps(`hls_${"b".repeat(48)}`));
+4 -6
View File
@@ -29,11 +29,7 @@ import {
verifyUnlockValue,
} from "@/lib/clinician-share/unlock-cookie";
import { getServerTranslator } from "@/lib/i18n/server-translator";
import {
defaultLocale,
locales,
type Locale,
} from "@/lib/i18n/config";
import { defaultLocale, locales, type Locale } from "@/lib/i18n/config";
import { parseLocaleFromAcceptLanguage } from "@/lib/format-locale";
import { ClinicianView } from "@/components/clinician/clinician-view";
import { ShareUnlockGate } from "@/components/clinician/share-unlock-gate";
@@ -80,7 +76,9 @@ export default async function ClinicianSharePage({
// token-scoped unlock cookie is present and valid. Verifying the cookie is
// constant-time; an invalid / expired / cross-token value shows the gate.
const cookieStore = await cookies();
const unlockValue = cookieStore.get(unlockCookieName(gate.tokenHash))?.value;
const unlockValue = cookieStore.get(
unlockCookieName(gate.tokenHash),
)?.value;
if (!verifyUnlockValue(unlockValue, gate.tokenHash)) {
const locale = await resolveLocale();
const { t } = getServerTranslator(locale);