mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 23:29:08 +03:00
add ff to sidebar link
This commit is contained in:
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) => {
|
||||
|
||||
Reference in new issue
Block a user