feat: Phase 0c - recovery_metrics.py module complete
Deploy Development / deploy (push) Successful in 53s
Build Test / lint-backend (push) Successful in 1s
Build Test / build-frontend (push) Successful in 15s

Data Layer:
- get_sleep_duration_data() - avg duration with hours/minutes breakdown
- get_sleep_quality_data() - Deep+REM percentage with phase breakdown
- get_rest_days_data() - total count + breakdown by rest type

Placeholder Layer:
- get_sleep_avg_duration() - refactored to use data layer
- get_sleep_avg_quality() - refactored to use data layer
- get_rest_days_count() - refactored to use data layer

All 3 recovery data functions + 3 placeholder refactors complete.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 4.6 committed 2026-03-28 19:13:59 +01:00
1 parent 6b2ad9fa1c
commit 432f7ba49f
3 files changed
+324 -68

No files matched your search

+6 -1
View File
@@ -32,9 +32,9 @@ from .utils import *
from .body_metrics import *
from .nutrition_metrics import *
from .activity_metrics import *
from .recovery_metrics import *
# Future imports (will be added as modules are created):
# from .recovery_metrics import *
# from .health_metrics import *
# from .goals import *
# from .correlations import *
@@ -61,4 +61,9 @@ __all__ = [
'get_activity_summary_data',
'get_activity_detail_data',
'get_training_type_distribution_data',
# Recovery Metrics
'get_sleep_duration_data',
'get_sleep_quality_data',
'get_rest_days_data',
]