Files
HealthLog/src/lib/onboarding/disclaimer.ts
T
Marc-André Bombeck 0a8ccaa30c feat(onboarding): one-time medical-disclaimer acknowledgment
Replace the per-page and per-chart disclaimer banners with a single
acknowledgment at the start of onboarding: HealthLog is a private tracking
tool, not a clinical assessment or diagnosis; talk to a doctor if worried.

- record the acknowledgment per user (disclaimer_acknowledged_at/_version,
  migration 0175) mirroring the research-mode acknowledgment precedent
- gate the welcome "Get started" on the checkbox; expose the timestamp on
  /api/auth/me so a returning user is never re-asked
- keep the full legal text reachable on the public privacy page
2026-06-18 21:37:13 +02:00

11 lines
462 B
TypeScript

/**
* v1.18.6 (DISC-02) — the one-time medical-disclaimer acknowledgment version.
*
* Pinned per the `researchModeAcknowledged*` precedent: the user row stores
* exactly which copy was acknowledged, so a future material wording change
* can bump this constant to re-prompt. Keep it in lockstep with the
* `onboarding.disclaimer.*` i18n copy — bump on a substantive text change,
* not on a typo fix.
*/
export const DISCLAIMER_VERSION = "2026-06-18";