fix: remove History tab, add Foods tab, fix FitnessTabView
All checks were successful
Security Checks / dockerfile-lint (push) Successful in 3s
Security Checks / dependency-audit (push) Successful in 12s
Security Checks / secret-scanning (push) Successful in 3s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yusuf Suleman
2026-04-03 02:11:29 -05:00
parent f3e5737706
commit ac8fe3db29

View File

@@ -7,9 +7,9 @@ struct FitnessTabView: View {
enum FitnessTab: String, CaseIterable {
case today = "Today"
case history = "History"
case templates = "Templates"
case goals = "Goals"
case foods = "Foods"
}
var body: some View {
@@ -23,14 +23,16 @@ struct FitnessTabView: View {
switch selectedTab {
case .today:
TodayView(viewModel: todayVM, showFoodSearch: $showFoodSearch)
case .history:
HistoryView()
case .templates:
TemplatesView(dateString: todayVM.dateString) {
Task { await todayVM.load() }
}
case .goals:
GoalsView()
case .foods:
FoodLibraryView(dateString: todayVM.dateString) {
Task { await todayVM.load() }
}
}
}
}