mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
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
11 lines
462 B
TypeScript
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";
|