import { BookOpen, Check, Copy, ExternalLink, List, X } from 'lucide-react' import Link from 'next/link' import { useState } from 'react' 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' import { logConstants } from 'shared-data' import { Button, SidePanel, Tabs, Tooltip, TooltipContent, TooltipTrigger, copyToClipboard, } from 'ui' import { DocsButton } from '../DocsButton' export interface LogsExplorerHeaderProps { subtitle?: string } const LogsExplorerHeader = ({ subtitle }: LogsExplorerHeaderProps) => { const [showReference, setShowReference] = useState(false) 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

{logConstants.schemas.map((schema) => ( Path , Type , ]} body={schema.fields .sort((a: any, b: any) => a.path - b.path) .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} ) }