mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +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.
21 lines
890 B
SQL
21 lines
890 B
SQL
-- v1.4.25 W5d — Withings OAuth scope tracking.
|
|
--
|
|
-- Adds a nullable `scope` column to `withings_connections` so the
|
|
-- ingest path + the Settings UI can tell which OAuth permissions a
|
|
-- given connection holds. Legacy v1.4.24 connections sit on
|
|
-- `user.metrics` only; v1.4.25 starts requesting
|
|
-- `user.metrics,user.activity` for new connections so the activity /
|
|
-- sleep endpoints unlock.
|
|
--
|
|
-- The Settings → Integrations card surfaces a reconnect banner for
|
|
-- legacy connections (`scope IS NULL` OR scope NOT LIKE
|
|
-- '%user.activity%') so the user can re-auth and gain step / active
|
|
-- energy / distance ingest.
|
|
--
|
|
-- Forward-only, additive. NULL is the documented "legacy connection"
|
|
-- sentinel; existing rows stay NULL and continue to read every
|
|
-- `user.metrics`-gated endpoint exactly as before.
|
|
|
|
ALTER TABLE "withings_connections"
|
|
ADD COLUMN IF NOT EXISTS "scope" TEXT;
|