feat(measurements): add total body water and bone mass types (#89)

- Adds TOTAL_BODY_WATER and BONE_MASS to MeasurementType enum
- Migration 0022 (purely additive ALTER TYPE ... ADD VALUE)
- Both stored canonically in kilograms (matches Withings hydration/bone mass measures and Health Connect TotalBodyWaterRecord/BoneMassRecord)
- Validation, formatters, i18n keys (en + de) for measurement form and doctor-report PDF
- Dashboard widgets registered (default-invisible, opt-in via settings)
- Withings client maps measure types 77 (hydration) and 88 (bone mass)
- Doctor report PDF includes both new types in vital-signs table when data exists
This commit is contained in:
Marc-André Bombeck authored and Marc-André Bombeck committed 2026-04-27 00:28:28 +02:00
1 parent 59448d473c
commit 11ed6faedd
11 files changed
+119 -64

No files matched your search

+2
View File
@@ -29,6 +29,8 @@ const widgetIdEnum = z.enum([
"sleep",
"steps",
"glucose",
"totalBodyWater",
"boneMass",
"bpInTarget",
]);