diff --git a/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx b/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx index 7f156fc719c..5e53c1de629 100644 --- a/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx +++ b/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx @@ -11,14 +11,11 @@ import { useContentQuery } from 'data/content/content-query' import { useCheckPermissions } from 'hooks/misc/useCheckPermissions' import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled' import { useFlag } from 'hooks/ui/useFlag' -import { ArrowUpRight, ChevronRight, DatabaseIcon, FilePlus, Plus } from 'lucide-react' +import { ArrowUpRight, ChevronRight, FilePlus, Plus } from 'lucide-react' import Link from 'next/link' import { useRouter } from 'next/router' import { useState } from 'react' import { - Alert_Shadcn_, - AlertDescription_Shadcn_, - AlertTitle_Shadcn_, Button, Collapsible_Shadcn_, CollapsibleContent_Shadcn_, @@ -91,6 +88,7 @@ export function LogsSidebarMenuV2() { realtimeAll: realtimeEnabled, } = useIsFeatureEnabled(['project_storage:all', 'project_auth:all', 'realtime:all']) const warehouseEnabled = useFlag('warehouse') + const workflowsEnabled = useFlag('branchingWorkflowLogs') const { data: whCollections, isLoading: whCollectionsLoading } = useWarehouseCollectionsQuery( { projectRef: ref }, { enabled: IS_PLATFORM && warehouseEnabled && !!tenantData } @@ -164,12 +162,14 @@ export function LogsSidebarMenuV2() { url: `/project/${ref}/logs/edge-functions-logs`, items: [], }, - { - name: 'Workflow Run Logs', - key: 'workflow-run-logs', - url: `/project/${ref}/logs/workflow-run-logs`, - items: [], - }, + workflowsEnabled + ? { + name: 'Workflows', + key: 'workflow-run-logs', + url: `/project/${ref}/logs/workflow-run-logs`, + items: [], + } + : null, ] const filteredLogs = BASE_COLLECTIONS.filter((collection) => {