Merge remote-tracking branch 'origin/release/v1.42.0' into v142/pwa

This commit is contained in:
Marc-André Bombeck committed 2026-10-08 17:24:38 +02:00
commit 8a7eddaf26
67 files changed
+3473 -606

No files matched your search

@@ -175,6 +175,7 @@ const PREFETCHING_ROUTES = [
"/checkups",
"/coach",
"/insights",
"/insights/mood",
"/insights/workouts",
"/medications",
"/mood",
@@ -138,6 +138,8 @@ describe("S1 — the direct session-resolution set is frozen", () => {
"RSC prefetch of the session user's coach state, skipped under a switch",
"app/insights/page.tsx":
"RSC prefetch of the session user's insights, skipped under a switch",
"app/insights/mood/page.tsx":
"RSC prefetch of the session user's mood calendar and line, skipped under a switch",
"app/insights/workouts/page.tsx":
"RSC prefetch of the session user's workouts, skipped under a switch",
"app/medications/page.tsx":
+8 -1
View File
@@ -1190,6 +1190,10 @@ const DELEGABLE_ROUTES: Record<string, DelegableEntry> = {
domain: "documents",
why: "The record's vault state: quota, the filter bar's condition chips, and index coverage. Without it the admitted list loses its filters. The `assistAvailable` boolean is the same integration-adjacent availability flag `nutrients` already returns — no credential, endpoint or token — and every AI action it would gate stays refused. No write arm exists.",
},
"app/api/documents/inbound/layout/route.ts": {
domain: "documents",
why: "The record's vault presentation, read only: two closed enums (card or list view, stacked or flowing months) and nothing else. The admitted list renders through it, so a refused read would leave a delegate's vault waiting on a shape it can never learn. The PUT stays bare — how the owner's vault is laid out is the owner's choice, the same split `/api/medications/layout` keeps.",
},
/* ------------------------------------------------------------------ */
/* v1.37.0 — the fifty-one modules that became delegable at MANAGE. */
@@ -2086,8 +2090,11 @@ const ACTOR_ROUTES: Record<string, string> = {
* the life-event writes join it with their audit rows: the edit/delete module
* on the record list, the create and the edit/delete on the manage literal.
* 251 -> 255.
*
* v1.42 -- the document vault's presentation read joins the record list
* beside the rest of the vault; its PUT stays bare. 255 -> 256.
*/
const FROZEN_ENTRY_COUNT = 255;
const FROZEN_ENTRY_COUNT = 256;
/**
* The two surfaces that authenticate a Bearer token outside `requireAuth` —