From 19e282ed264406272e9fba9d05c19fb86caa1df3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vit=C3=B3ria=20Silva?= Date: Thu, 27 Nov 2025 12:16:37 +0000 Subject: [PATCH] Enhance sleep zone UI with improved labels and chart Refactored HealthSleepListTabsComponent to add summary and breakdown sections with clearer labels and structure. Updated HealthSleepTimelineChartComponent to use internationalized y-axis labels and improved legend, ensuring better localization and clarity. Added new i18n keys for sleep stages and related labels in both component and general items translation files. Minor UI improvements for consistency and readability. --- .../HealthSleepListComponent.vue | 30 +-- .../HealthSleepListTabsComponent.vue | 131 ++++++++---- .../HealthSleepTimelineChartComponent.vue | 186 +++++++++++------- .../healthSleepListComponent.json | 3 +- .../healthSleepListTabsComponent.json | 7 + frontend/app/src/i18n/us/generalItems.json | 4 + 6 files changed, 230 insertions(+), 131 deletions(-) diff --git a/frontend/app/src/components/Health/HealthSleepZone/HealthSleepListComponent.vue b/frontend/app/src/components/Health/HealthSleepZone/HealthSleepListComponent.vue index 77338fd9f..1c88b920d 100644 --- a/frontend/app/src/components/Health/HealthSleepZone/HealthSleepListComponent.vue +++ b/frontend/app/src/components/Health/HealthSleepZone/HealthSleepListComponent.vue @@ -13,35 +13,25 @@
- - - Garmin Connect logo + + Garmin Connect logo
- + +
+ {{ $t('healthSleepListComponent.sleepStagesTitle') }} +
+
diff --git a/frontend/app/src/components/Health/HealthSleepZone/HealthSleepListTabsComponent.vue b/frontend/app/src/components/Health/HealthSleepZone/HealthSleepListTabsComponent.vue index 4d84544ce..7a7a1f2cd 100644 --- a/frontend/app/src/components/Health/HealthSleepZone/HealthSleepListTabsComponent.vue +++ b/frontend/app/src/components/Health/HealthSleepZone/HealthSleepListTabsComponent.vue @@ -2,30 +2,17 @@