revert(insights): drop hydration logging

Remove the in-app water-intake logging feature: the WATER_INTAKE
measurement type, the per-user daily-goal field, the goal-ring card and
its endpoint, and the related query keys, OpenAPI route, and locale
strings. The feature is dropped from this release; the baseline-drift,
breathing-screening, and labs-changes insight cards are unaffected, and
the pre-existing TOTAL_BODY_WATER body-composition type stays intact.
This commit is contained in:
Marc-André Bombeck committed 2026-06-28 11:39:26 +02:00
1 parent ec3fcea84f
commit 4bf45efcab
32 files changed
+6 -1136

No files matched your search

-155
View File
@@ -44,7 +44,6 @@ tags:
- name: Illness
- name: Admin
- name: Meta
- name: Hydration
paths:
/api/cycle/day-logs:
get:
@@ -2088,7 +2087,6 @@ paths:
- SLEEP_SCORE
- BODY_TEMPERATURE_DEVIATION
- RESILIENCE
- WATER_INTAKE
- in: query
name: from
schema:
@@ -2278,7 +2276,6 @@ paths:
- SLEEP_SCORE
- BODY_TEMPERATURE_DEVIATION
- RESILIENCE
- WATER_INTAKE
value:
type: number
measuredAt:
@@ -5773,7 +5770,6 @@ paths:
- SLEEP_SCORE
- BODY_TEMPERATURE_DEVIATION
- RESILIENCE
- WATER_INTAKE
description: "The measurement type to read (single metric — no fan-out). Closed enum: an unknown type 422s."
required: true
description: "The measurement type to read (single metric — no fan-out). Closed enum: an unknown type 422s."
@@ -8003,44 +7999,6 @@ paths:
"401": *a1
"422": *a3
"429": *a4
/api/hydration:
get:
tags:
- Hydration
summary: Today's hydration total vs goal
description: Sums the calling user's WATER_INTAKE measurements for the current local day and compares them against the
per-user goal (default 2000 ml).
responses:
"200":
description: Today's hydration summary.
content:
application/json:
schema:
$ref: "#/components/schemas/HydrationTodayEnvelope"
"401": *a1
"422": *a3
"429": *a4
patch:
tags:
- Hydration
summary: Set the daily hydration goal
description: Updates the per-user daily hydration goal in millilitres.
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/HydrationGoalRequest"
responses:
"200":
description: Goal updated.
content:
application/json:
schema:
$ref: "#/components/schemas/HydrationGoalEnvelope"
"401": *a1
"422": *a3
"429": *a4
components:
schemas:
EncryptedExportRequest:
@@ -9341,7 +9299,6 @@ components:
- cycle-summary
- signals
- rhythm-events
- hydration
- health-status
- breathing
- labs-changes
@@ -9754,17 +9711,6 @@ components:
- updatedAt
description: Resumable module-tour progress point. `lastStopId` seeds the resume index; `status` is the running/terminal
state.
HydrationGoalRequest:
type: object
properties:
goalMl:
type: integer
minimum: 250
maximum: 8000
description: Daily hydration goal in millilitres.
required:
- goalMl
description: Set the per-user daily hydration goal (ml).
MedicationTreatmentClass:
type: string
enum:
@@ -12366,7 +12312,6 @@ components:
- SLEEP_SCORE
- BODY_TEMPERATURE_DEVIATION
- RESILIENCE
- WATER_INTAKE
value:
type: number
unit:
@@ -12683,7 +12628,6 @@ components:
- SLEEP_SCORE
- BODY_TEMPERATURE_DEVIATION
- RESILIENCE
- WATER_INTAKE
additionalProperties:
type: array
items:
@@ -12761,7 +12705,6 @@ components:
- SLEEP_SCORE
- BODY_TEMPERATURE_DEVIATION
- RESILIENCE
- WATER_INTAKE
value:
type: number
description: Daily mean (spot metrics) or SUM (cumulative).
@@ -12860,7 +12803,6 @@ components:
- SLEEP_SCORE
- BODY_TEMPERATURE_DEVIATION
- RESILIENCE
- WATER_INTAKE
description: Per-type daily series, keyed by MeasurementType.
required:
- series
@@ -13094,7 +13036,6 @@ components:
- SLEEP_SCORE
- BODY_TEMPERATURE_DEVIATION
- RESILIENCE
- WATER_INTAKE
value:
type: number
unit:
@@ -23378,101 +23319,6 @@ components:
- progress
additionalProperties: false
description: The persisted completion flag and resume point after the write.
HydrationTodayEnvelope:
type: object
properties:
data:
$ref: "#/components/schemas/HydrationToday"
error:
type: "null"
meta:
type: object
properties:
requestId:
type: string
additionalProperties: false
required:
- data
- error
additionalProperties: false
HydrationToday:
type: object
properties:
date:
type: string
description: ISO-8601 start of the user's local day.
totalMl:
type: number
description: Today's summed intake in ml.
goalMl:
type: number
description: Effective daily goal in ml.
percent:
type: number
description: Progress toward the goal, capped at 100.
rawPercent:
type: number
description: Uncapped progress; can exceed 100.
met:
type: boolean
description: Whether the day's total reached the goal.
remainingMl:
type: number
description: Remaining ml to the goal (0 once met).
entries:
type: array
items:
type: object
properties:
id:
type: string
value:
type: number
description: Logged amount in millilitres.
measuredAt:
type: string
description: ISO-8601 instant the entry was logged.
required:
- id
- value
- measuredAt
additionalProperties: false
required:
- date
- totalMl
- goalMl
- percent
- rawPercent
- met
- remainingMl
- entries
additionalProperties: false
description: Today's water-intake total vs the user's daily goal.
HydrationGoalEnvelope:
type: object
properties:
data:
$ref: "#/components/schemas/HydrationGoalResponse"
error:
type: "null"
meta:
type: object
properties:
requestId:
type: string
additionalProperties: false
required:
- data
- error
additionalProperties: false
HydrationGoalResponse:
type: object
properties:
goalMl:
type: number
required:
- goalMl
additionalProperties: false
MedicationScheduleOutput:
type: object
properties:
@@ -23650,7 +23496,6 @@ components:
- cycle-summary
- signals
- rhythm-events
- hydration
- health-status
- breathing
- labs-changes