Add profile stats sheet with task and workout analytics

Tapping the profile card opens a full stats sheet showing:
Tasks — completed this week, overdue count, done rate, 7-day bar
chart, open count by Eisenhower quadrant.
Workouts — streak, sets today, today % progress, weekly schedule
grid (dumbbell = scheduled, checkmark = done), active program summary.
This commit is contained in:
kutesir
2026-05-29 12:06:34 +03:00
parent 27890825d4
commit 875f562801
2 changed files with 278 additions and 29 deletions

View File

@@ -131,6 +131,7 @@ struct ContentView: View {
SettingsView()
.environmentObject(workoutVM)
.environmentObject(taskVM)
.tag(4)
.tabBarInset()
}
@@ -168,7 +169,7 @@ struct ContentView: View {
case 1: CalendarView().environmentObject(taskVM).environmentObject(workoutVM)
case 2: MatrixView().environmentObject(taskVM)
case 3: WorkoutView().environmentObject(workoutVM)
case 4: SettingsView().environmentObject(workoutVM)
case 4: SettingsView().environmentObject(workoutVM).environmentObject(taskVM)
default: TodayView().environmentObject(taskVM).environmentObject(workoutVM)
}
}