From 331cc9762ce9586b7df447e5b48ad3d39c74ed12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vit=C3=B3ria=20Silva?= Date: Thu, 27 Nov 2025 18:17:16 +0000 Subject: [PATCH] Enhance health dashboard and sleep details UI Added new cards for sleep, resting heart rate, and skin temperature deviation to the health dashboard. Expanded HealthSleepListTabsComponent with detailed tabs for heart rate, SpO2, respiratory rate, and additional sleep metrics, including improved handling of missing data. Updated i18n files for new labels and units, and adjusted HealthSideBarComponent navigation order. Minor backend and script fixes for field naming and test data. --- aux_scripts/aux_gc_getbcstats.py | 10 +- backend/app/fit/utils.py | 2 +- .../Health/HealthDashboardZoneComponent.vue | 88 +++++- .../Health/HealthSideBarComponent.vue | 47 +--- .../HealthSleepListTabsComponent.vue | 255 ++++++++++++++++-- .../health/healthDashboardZoneComponent.json | 3 + .../healthSleepListTabsComponent.json | 17 +- frontend/app/src/i18n/us/generalItems.json | 5 +- frontend/app/src/views/HealthView.vue | 67 ++--- 9 files changed, 371 insertions(+), 123 deletions(-) diff --git a/aux_scripts/aux_gc_getbcstats.py b/aux_scripts/aux_gc_getbcstats.py index 8f5873447..537caf7e0 100644 --- a/aux_scripts/aux_gc_getbcstats.py +++ b/aux_scripts/aux_gc_getbcstats.py @@ -228,11 +228,11 @@ if api: "from": 1763251200000, "until": 1763337599999, "weight": 68199.0, - "bmi": None, - "bodyFat": None, - "bodyWater": None, - "boneMass": None, - "muscleMass": None, + "bmi": 24.10, + "bodyFat": 21.20, + "bodyWater": 57.50, + "boneMass": 4.27, + "muscleMass": 30.40, "physiqueRating": None, "visceralFat": None, "metabolicAge": None, diff --git a/backend/app/fit/utils.py b/backend/app/fit/utils.py index 02514a757..b1361a1ce 100644 --- a/backend/app/fit/utils.py +++ b/backend/app/fit/utils.py @@ -805,7 +805,7 @@ def parse_frame_session(frame): get_value_from_frame(frame, "normalized_power"), get_value_from_frame(frame, "enhanced_avg_speed"), get_value_from_frame(frame, "enhanced_max_speed"), - get_value_from_frame(frame, "workout_feeling"), + get_value_from_frame(frame, "workout_feel"), get_value_from_frame(frame, "workout_rpe"), ) diff --git a/frontend/app/src/components/Health/HealthDashboardZoneComponent.vue b/frontend/app/src/components/Health/HealthDashboardZoneComponent.vue index 3c40bd4db..7400b5820 100644 --- a/frontend/app/src/components/Health/HealthDashboardZoneComponent.vue +++ b/frontend/app/src/components/Health/HealthDashboardZoneComponent.vue @@ -1,6 +1,59 @@