mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +00:00
feat(dashboard): make the v1.10 additive metrics pinnable to Home
Add eight widget ids (cardio recovery, six-minute walk, stair ascent/descent speed, breathing disturbances, wrist temperature, falls, walking steadiness) to the dashboard widget catalogue + default layout (hidden by default) so they can be pinned via the layout PUT. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
1f3b0ff5b0
commit
0949fadfb0
3 files changed
+49
-9
No files matched your search
@@ -132,6 +132,16 @@ const WIDGET_LABEL_KEYS: Record<DashboardWidgetId, string> = {
|
||||
vo2Max: "dashboard.vo2Max",
|
||||
// v1.4.32 — Recent workouts tile (default-on).
|
||||
recentWorkouts: "dashboard.recentWorkouts.title",
|
||||
// v1.11.2 B5 — v1.10 additive HealthKit signals, now pinnable. Each
|
||||
// reuses the existing measurement-type label key.
|
||||
cardioRecovery: "measurements.typeCardioRecovery",
|
||||
sixMinuteWalk: "measurements.typeSixMinuteWalkDistance",
|
||||
stairAscentSpeed: "measurements.typeStairAscentSpeed",
|
||||
stairDescentSpeed: "measurements.typeStairDescentSpeed",
|
||||
breathingDisturbances: "measurements.typeBreathingDisturbances",
|
||||
wristTemperature: "measurements.typeWristTemperature",
|
||||
falls: "measurements.typeFallCount",
|
||||
walkingSteadiness: "measurements.typeWalkingSteadiness",
|
||||
};
|
||||
|
||||
export function DashboardLayoutSection({ id }: { id: string }) {
|
||||
|
||||
Reference in new issue
Block a user