add ff to sidebar link

This commit is contained in:
Jordi Enric committed 2024-10-29 12:19:12 +01:00
1 parent e3f99ecbcb
commit f6515f8ccf
1 file changed
+10 -10
@@ -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) => {