feat(ios): gate Focus tab behind focus_mode_enabled feature flag

This commit is contained in:
saravanakumardb1 2026-03-21 20:39:56 -07:00
parent f6c85ede9e
commit 39f8a70b6b

View File

@ -47,11 +47,13 @@ struct ContentView: View {
} }
.tag(Tab.timeline) .tag(Tab.timeline)
PomodoroView() if FeatureFlagService.shared.isEnabled("focus_mode_enabled") {
.tabItem { PomodoroView()
Label(Tab.focus.rawValue, systemImage: Tab.focus.icon) .tabItem {
} Label(Tab.focus.rawValue, systemImage: Tab.focus.icon)
.tag(Tab.focus) }
.tag(Tab.focus)
}
HistoryView() HistoryView()
.tabItem { .tabItem {
@ -73,7 +75,10 @@ struct ContentView: View {
NavigationSplitView { NavigationSplitView {
// Sidebar // Sidebar
VStack(spacing: 0) { VStack(spacing: 0) {
ForEach(Tab.allCases) { tab in ForEach(Tab.allCases.filter { tab in
if tab == .focus { return FeatureFlagService.shared.isEnabled("focus_mode_enabled") }
return true
}) { tab in
Button { Button {
selectedTab = tab selectedTab = tab
} label: { } label: {