feat: add missing migration 008 (vitals, rest days, sleep_goal_minutes)
- 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:
1 parent
9e4d6fa715
commit
b65efd3b71
2 files changed
+60
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user