From e5d18b1c9c8add5486373483e1b9d9c927f938d1 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Sat, 28 Feb 2026 19:14:01 -0800 Subject: [PATCH] feat(web): gate routines nav behind feature flag --- web/src/components/Dashboard.tsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/web/src/components/Dashboard.tsx b/web/src/components/Dashboard.tsx index 9e60886..8a56f78 100644 --- a/web/src/components/Dashboard.tsx +++ b/web/src/components/Dashboard.tsx @@ -13,6 +13,7 @@ import { requestNotificationPermission } from '@/lib/notifications'; import { formatTime, formatDate } from '@/lib/format'; import { Plus, Clock, Bell, Keyboard, Sun, Moon, Settings, Eye, BarChart3, ListChecks, Cloud, CloudOff, Loader2 } from 'lucide-react'; import { useSync } from '@/lib/use-sync'; +import { isEnabled as isFlagEnabled } from '@/lib/feature-flags'; import { BUILT_IN_CATEGORIES, matchesCategory } from '@/lib/categories'; import Link from 'next/link'; import { FeedbackButton } from './FeedbackButton'; @@ -171,14 +172,16 @@ export function Dashboard() { > - - - + {isFlagEnabled('routines_disabled') ? null : ( + + + + )}