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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user