import { BookOpen, Check, ChevronsUpDown, Copy, ExternalLink, List, X } from 'lucide-react' import Link from 'next/link' import { useState } from 'react' import { logConstants } from 'shared-data' import { Button, cn, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, copyToClipboard, Popover, PopoverContent, PopoverTrigger, SidePanel, Tooltip, TooltipContent, TooltipTrigger, } from 'ui' import { DocsButton } from '../DocsButton' import { LOGS_EXPLORER_DOCS_URL } from '@/components/interfaces/Settings/Logs/Logs.constants' import Table from '@/components/to-be-cleaned/Table' import { DOCS_URL } from '@/lib/constants' export interface LogsExplorerHeaderProps { subtitle?: string } const LogsExplorerHeader = ({ subtitle }: LogsExplorerHeaderProps) => { const [showReference, setShowReference] = useState(false) const [open, setOpen] = useState(false) const [selectedSchema, setSelectedSchema] = useState(logConstants.schemas[0]) return (

Logs Explorer

{subtitle && {subtitle}}

Field Reference

} visible={showReference} cancelText="Close" onCancel={() => setShowReference(false)} hideFooter triggerElement={ } >

The following table shows all the available paths that can be queried from each respective source. Do note that to access nested keys, you would need to perform the necessary{' '} unnesting joins

No source found. {logConstants.schemas.map((schema) => ( { setSelectedSchema(schema) setOpen(false) }} > {schema.name} ))} Path , Type , ]} body={selectedSchema.fields.map((field) => ( ))} /> ) } export default LogsExplorerHeader const Field = ({ field, }: { field: { path: string type: string } }) => { const [isCopied, setIsCopied] = useState(false) return ( copyToClipboard(field.path, () => { setIsCopied(true) setTimeout(() => setIsCopied(false), 3000) }) } > {field.path} {isCopied ? ( Copied ) : ( Copy value )} {field.type} ) }