mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 16:12:11 +00:00
fix(demo): the setup flow's baseline writes are allowlisted
A demo visitor who typed a height on the confirm screen got a 403 and a generic toast, and the "someone I look after" arm could only take "Finish without the profile": the profile PUT, the self-context PUT and the managed-profile POST were missing from the demo allowlist, so only the empty-form path completed. All three are added, pinned per method as the rest of the list is. None of them creates health data.
This commit is contained in:
1 parent
a6dedffdb8
commit
982c35287d
2 files changed
+43
No files matched your search
@@ -174,6 +174,19 @@ const DEMO_MUTATION_ALLOWLIST: ReadonlyArray<{ path: string; method: string }> =
|
||||
// Neither creates health data.
|
||||
{ path: "/api/onboarding/disclaimer", method: "POST" },
|
||||
{ path: "/api/onboarding/tour", method: "POST" },
|
||||
// v1.39 (Wave C, C6) — the three writes the confirm screen makes. Without
|
||||
// them a demo visitor who typed a height got a 403 and a generic toast,
|
||||
// and the "someone I look after" arm could only take "Finish without the
|
||||
// profile" — only the empty-form/Skip path completed, so the demo did not
|
||||
// in fact walk the same flow (design spec §Principles 5). None of the
|
||||
// three creates health data: the caller's own profile fields, the
|
||||
// encrypted self-context behind the optional anamnesis card, and the
|
||||
// managed record the guardian arm of the flow exists to create. The
|
||||
// per-profile routes (`/api/managed-profiles/{id}`, its guardians) are
|
||||
// different paths and stay closed.
|
||||
{ path: "/api/auth/profile", method: "PUT" },
|
||||
{ path: "/api/coach/about-me", method: "PUT" },
|
||||
{ path: "/api/managed-profiles", method: "POST" },
|
||||
];
|
||||
|
||||
// Legacy route redirects (German → English)
|
||||
|
||||
Reference in new issue
Block a user