feat: add missing migration 008 (vitals, rest days, sleep_goal_minutes)
Deploy Development / deploy (push) Successful in 44s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 13s

- Creates rest_days table for rest day tracking
- Creates vitals_log table for resting HR + HRV
- Creates weekly_goals table for training planning
- Extends profiles with hf_max and sleep_goal_minutes columns
- Extends activity_log with avg_hr and max_hr columns
- Fixes sleep_goal_minutes missing column error in stats endpoint
- Includes stats error handling in SleepWidget

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 4.6 committed 2026-03-22 10:59:55 +01:00
1 parent 9e4d6fa715
commit b65efd3b71
2 files changed
+60 -1

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ export default function SleepWidget() {
const load = () => {
Promise.all([
api.listSleep(1), // Get last entry
api.getSleepStats(7)
api.getSleepStats(7).catch(() => null) // Stats optional
]).then(([sleepData, statsData]) => {
setLastNight(sleepData[0] || null)
setStats(statsData)