mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 08:12:52 +00:00
feat(integrations): list imported cycle days in the details
The details of the Garmin and Oura cards listed measurement types and workouts only, so cycle days a wearable imported appeared nowhere, and a bug report could not say whether any had arrived. The status envelope now carries a `CYCLE_DAYS` entry per cycle-importing source with the newest day and the count, and the freshness list renders it. It counts as a sparse type, so a month between periods never reads as a dead pipe. Refs #1333
This commit is contained in:
1 parent
afdb8163ce
commit
27a1cd6c2f
19 files changed
+200
-28
No files matched your search
@@ -243,11 +243,19 @@ const metricFreshnessEntry = z
|
||||
type: z
|
||||
.string()
|
||||
.describe(
|
||||
"The measurement type (e.g. `RESPIRATORY_RATE`), `WORKOUTS` for the workout leg, or (Apple Health only, since v1.42.4) `MEDICATION_DOSE` for medication doses imported from Apple Health. Clients should show or skip a type they do not know rather than fail.",
|
||||
"The measurement type (e.g. `RESPIRATORY_RATE`), `WORKOUTS` for the workout leg, `CYCLE_DAYS` for the period days a wearable imported (Garmin, Oura), or (Apple Health only, since v1.42.4) `MEDICATION_DOSE` for medication doses imported from Apple Health. Clients should show or skip a type they do not know rather than fail.",
|
||||
),
|
||||
lastSeenAt: isoDateTime().describe(
|
||||
"Newest recorded reading for this type from this source.",
|
||||
"Newest recorded reading for this type from this source. On `CYCLE_DAYS`, the newest cycle day at noon UTC.",
|
||||
),
|
||||
count: z
|
||||
.number()
|
||||
.int()
|
||||
.nonnegative()
|
||||
.optional()
|
||||
.describe(
|
||||
"How many live cycle days the source holds. Present on `CYCLE_DAYS` only.",
|
||||
),
|
||||
stale: z
|
||||
.boolean()
|
||||
.describe(
|
||||
|
||||
Reference in new issue
Block a user