mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 15:42:24 +00:00
fix(measurements): wire walking step length and walking speed
The iOS team had gated both client-side waiting on the server map. Both flow raw SI on the wire (metres and metres per second respectively) — the server-side ×100 scaling the percent gait metrics use does NOT apply here. The convention block at the top of apple-health-mapping.ts now spells the split out so a future gait-metric addition picks the right path. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
8d5d039ed1
commit
7f95a2a44f
18 files changed
+332
-3
No files matched your search
@@ -78,6 +78,9 @@ export const MEASUREMENT_TYPE_LABEL_KEYS: Record<string, string> = {
|
||||
WALKING_HEART_RATE_AVERAGE: "measurements.typeWalkingHeartRateAverage",
|
||||
WALKING_ASYMMETRY: "measurements.typeWalkingAsymmetry",
|
||||
WALKING_DOUBLE_SUPPORT: "measurements.typeWalkingDoubleSupport",
|
||||
// ── v1.5.5 iOS-coord follow-up — raw-SI gait pair ──
|
||||
WALKING_STEP_LENGTH: "measurements.typeWalkingStepLength",
|
||||
WALKING_SPEED: "measurements.typeWalkingSpeed",
|
||||
};
|
||||
|
||||
export const MEASUREMENT_TYPE_ICONS: Record<string, LucideIcon> = {
|
||||
@@ -136,6 +139,12 @@ export const MEASUREMENT_TYPE_ICONS: Record<string, LucideIcon> = {
|
||||
WALKING_HEART_RATE_AVERAGE: HeartPulse,
|
||||
WALKING_ASYMMETRY: Footprints,
|
||||
WALKING_DOUBLE_SUPPORT: Footprints,
|
||||
// ── v1.5.5 iOS-coord follow-up — raw-SI gait pair ──
|
||||
// Footprints carries the stride/length signal; Gauge mirrors
|
||||
// the velocity-reading shape (same family as VO2_MAX +
|
||||
// WALKING_STEADINESS).
|
||||
WALKING_STEP_LENGTH: Footprints,
|
||||
WALKING_SPEED: Gauge,
|
||||
};
|
||||
|
||||
export const MEASUREMENT_TYPE_COLORS: Record<string, string> = {
|
||||
@@ -187,4 +196,11 @@ export const MEASUREMENT_TYPE_COLORS: Record<string, string> = {
|
||||
WALKING_HEART_RATE_AVERAGE: "bg-chart-3/20 text-chart-3",
|
||||
WALKING_ASYMMETRY: "bg-chart-2/20 text-chart-2",
|
||||
WALKING_DOUBLE_SUPPORT: "bg-chart-2/20 text-chart-2",
|
||||
// ── v1.5.5 iOS-coord follow-up — raw-SI gait pair ──
|
||||
// Stay in chart-2 (Dracula green) — the entire Mobility cluster
|
||||
// (steadiness + asymmetry + double-support + step length + speed)
|
||||
// shares the activity-family colour so the gait cards read as one
|
||||
// visual group on Insights.
|
||||
WALKING_STEP_LENGTH: "bg-chart-2/20 text-chart-2",
|
||||
WALKING_SPEED: "bg-chart-2/20 text-chart-2",
|
||||
};
|
||||
Reference in new issue
Block a user