mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 22:26:13 +00:00
Largest feature delta in the v1.4.x line. Insights expands into seven dedicated metric sub-pages; GLP-1 medication tracking lands end-to-end (drug-level chart with Research Mode acknowledgment, EMA titration ladder, cadence + compliance, side-effect taxonomy, pen/vial inventory); cross-source priority becomes a two-axis resolver; per-user timezone threads through ten analytics surfaces; Withings activity + sleep v2 sync; onboarding rebuilt as a nested-route wizard; Personal Records ship end-to-end; Health Score provenance accordion; Coach runs native first-party prompts across six locales with a 1800-assertion refusal-probe matrix; OpenAPI drift gate hard-fails; multi-arch GHCR image. Migrations 0043 through 0060 are additive and forward-only. PROMPT_VERSION 4.24.0 → 4.25.0 with GROUND RULE 9 (refuses dose recommendations) and GROUND RULE 15 (refuses drug-level estimates with MDR + MDCG 2021-24 cites). See CHANGELOG.md for the full per-section delta.
26 lines
1.4 KiB
SQL
26 lines
1.4 KiB
SQL
-- v1.4.25 W5d — Withings full coverage. Adds seven new
|
|
-- MeasurementType enum values so the Withings ingest path can land
|
|
-- body composition (Body+, Body Cardio, Body Comp, Body Scan),
|
|
-- skin temperature (ScanWatch dermal reading — DISTINCT from core
|
|
-- body temperature; sharing the bucket would corrupt analytics
|
|
-- because surface temps run ~32 °C and core ~37 °C), pulse-wave
|
|
-- velocity + vascular age (Body Cardio / Body Scan exclusives), and
|
|
-- visceral fat (Body Comp / Body Scan rating).
|
|
--
|
|
-- See `.planning/research/withings-api-coverage.md` §3 for the gap
|
|
-- scoring + the rationale of which meastypes ship in v1.4.25 vs
|
|
-- defer to v1.5.
|
|
--
|
|
-- Additive only, forward-only — every new enum value is unconditional
|
|
-- and no existing row needs to be backfilled. The Withings client
|
|
-- starts emitting these values once `src/lib/withings/client.ts`
|
|
-- gains the meastype → enum mapping (separate commit).
|
|
|
|
ALTER TYPE "measurement_type" ADD VALUE IF NOT EXISTS 'FAT_FREE_MASS';
|
|
ALTER TYPE "measurement_type" ADD VALUE IF NOT EXISTS 'FAT_MASS';
|
|
ALTER TYPE "measurement_type" ADD VALUE IF NOT EXISTS 'MUSCLE_MASS';
|
|
ALTER TYPE "measurement_type" ADD VALUE IF NOT EXISTS 'SKIN_TEMPERATURE';
|
|
ALTER TYPE "measurement_type" ADD VALUE IF NOT EXISTS 'PULSE_WAVE_VELOCITY';
|
|
ALTER TYPE "measurement_type" ADD VALUE IF NOT EXISTS 'VASCULAR_AGE';
|
|
ALTER TYPE "measurement_type" ADD VALUE IF NOT EXISTS 'VISCERAL_FAT';
|