diff --git a/apps/web/modules/shell/SideBar.tsx b/apps/web/modules/shell/SideBar.tsx index e8df86c3a5..7efba9da27 100644 --- a/apps/web/modules/shell/SideBar.tsx +++ b/apps/web/modules/shell/SideBar.tsx @@ -5,6 +5,7 @@ import Link from "next/link"; import { usePathname } from "next/navigation"; import { getBookerBaseUrlSync } from "@calcom/features/ee/organizations/lib/getBookerBaseUrlSync"; +import { useFlagMap } from "@calcom/features/flags/context/provider"; import { IS_VISUAL_REGRESSION_TESTING, ENABLE_PROFILE_SWITCHER } from "@calcom/lib/constants"; import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage"; import { useLocale } from "@calcom/lib/hooks/useLocale"; @@ -56,6 +57,7 @@ export function SideBar({ bannersHeight, user }: SideBarProps) { const pathname = usePathname(); const isPlatformPages = pathname?.startsWith("/settings/platform"); const isAdmin = session.data?.user.role === UserPermissionRole.ADMIN; + const flags = useFlagMap(); const publicPageUrl = `${getBookerBaseUrlSync(user?.org?.slug ?? null)}/${user?.orgAwareUsername}`; @@ -137,9 +139,11 @@ export function SideBar({ bannersHeight, user }: SideBarProps) { {!isPlatformPages && (
-
- -
+ {flags["sidebar-tips"] && ( +
+ +
+ )} {bottomNavItems.map((item, index) => ( ; diff --git a/packages/features/flags/hooks/index.ts b/packages/features/flags/hooks/index.ts index be85420d87..d114eb0a47 100644 --- a/packages/features/flags/hooks/index.ts +++ b/packages/features/flags/hooks/index.ts @@ -33,6 +33,7 @@ const initialData: AppFlags = { "booking-email-sms-tasker": false, "bookings-v3": false, "booking-audit": false, + "sidebar-tips": false, }; if (process.env.NEXT_PUBLIC_IS_E2E) { diff --git a/packages/prisma/migrations/20260109090244_seed_sidebar_tips_feature/migration.sql b/packages/prisma/migrations/20260109090244_seed_sidebar_tips_feature/migration.sql new file mode 100644 index 0000000000..a10f2b56de --- /dev/null +++ b/packages/prisma/migrations/20260109090244_seed_sidebar_tips_feature/migration.sql @@ -0,0 +1,3 @@ +INSERT INTO "Feature" (slug, enabled, description, "type") +VALUES ('sidebar-tips', false, 'Enables the tips section in the sidebar.', 'OPERATIONAL') +ON CONFLICT (slug) DO NOTHING;