feat: add vitals history analytics to recovery dashboard
- Integrated the `build_vitals_history_and_analytics` function into the recovery dashboard to provide historical insights on vital signs. - Updated the `get_recovery_dashboard_viz_bundle` function to include a new chart for vitals history, enhancing the data visualization capabilities. - Enhanced the `RecoveryDashboardOverview` component to render vitals history, including improved messaging for insufficient data and visual representation of trends.
This commit is contained in:
1 parent
819914b7cc
commit
e7bcdc3228
3 files changed
+422
-97
No files matched your search
@@ -14,6 +14,7 @@ from data_layer.recovery_chart_payloads import (
|
||||
build_sleep_duration_quality_chart_payload,
|
||||
build_vital_signs_matrix_chart_payload,
|
||||
)
|
||||
from data_layer.vitals_fitness_insights import build_vitals_history_and_analytics
|
||||
from data_layer.recovery_interpretation import (
|
||||
build_recovery_dashboard_kpi_tiles,
|
||||
build_recovery_progress_insights,
|
||||
@@ -88,6 +89,7 @@ def get_recovery_dashboard_viz_bundle(profile_id: str, days: int) -> Dict[str, A
|
||||
"sleep_duration_quality": build_sleep_duration_quality_chart_payload(profile_id, chart_days),
|
||||
"sleep_debt": build_sleep_debt_chart_payload(profile_id, chart_days),
|
||||
"vital_signs_matrix": build_vital_signs_matrix_chart_payload(profile_id, vital_days),
|
||||
"vitals_history": build_vitals_history_and_analytics(profile_id, vital_days),
|
||||
}
|
||||
|
||||
conf = "medium"
|
||||
|
||||
Reference in new issue
Block a user