@@ -4,7 +4,6 @@ import { useForm } from 'react-hook-form';
44import { tcFromSource } from '@hyperdx/common-utils/dist/metadata' ;
55import { SourceKind } from '@hyperdx/common-utils/dist/types' ;
66import {
7- ActionIcon ,
87 Button ,
98 Center ,
109 Divider ,
@@ -14,15 +13,13 @@ import {
1413 Stack ,
1514 Text ,
1615} from '@mantine/core' ;
17- import { useDisclosure } from '@mantine/hooks' ;
1816
1917import { DBTraceWaterfallChartContainer } from '@/components/DBTraceWaterfallChart' ;
2018import { useSource , useUpdateSource } from '@/source' ;
2119import TabBar from '@/TabBar' ;
2220
2321import { RowDataPanel } from './DBRowDataPanel' ;
2422import { RowOverviewPanel } from './DBRowOverviewPanel' ;
25- import { TableSourceForm } from './SourceForm' ;
2623import { SourceSelectControlled } from './SourceSelect' ;
2724import { SQLInlineEditorControlled } from './SQLInlineEditor' ;
2825
@@ -103,22 +100,6 @@ export default function DBTracePanel({
103100 } , [ parentSourceData ?. traceIdExpression , traceIdSetValue ] ) ;
104101
105102 const [ showTraceIdInput , setShowTraceIdInput ] = useState ( false ) ;
106- const [ showSourceForm , setShowSourceForm ] = useState ( false ) ;
107- useEffect ( ( ) => {
108- if (
109- isTraceSourceLoading == false &&
110- ( traceSourceData == null ||
111- traceSourceData ?. kind == 'log' ||
112- traceSourceData ?. durationExpression == null )
113- ) {
114- setShowSourceForm ( true ) ;
115- }
116- } , [ showSourceForm , traceSourceData , isTraceSourceLoading ] ) ;
117-
118- const [
119- sourceFormModalOpened ,
120- { open : openSourceFormModal , close : closeSourceFormModal } ,
121- ] = useDisclosure ( false ) ;
122103
123104 // Reset highlighted row when trace ID changes
124105 // otherwise we'll show stale span details
@@ -155,19 +136,6 @@ export default function DBTracePanel({
155136 : 'Correlated Log Source' }
156137 </ Text >
157138 < SourceSelectControlled control = { control } name = "source" size = "xs" />
158- < ActionIcon
159- variant = "subtle"
160- color = "dark.2"
161- size = "sm"
162- onClick = {
163- sourceFormModalOpened ? closeSourceFormModal : openSourceFormModal
164- }
165- title = "Edit Source"
166- >
167- < Text size = "xs" >
168- < i className = "bi bi-gear" />
169- </ Text >
170- </ ActionIcon >
171139 </ Group >
172140 </ Flex >
173141 { ( showTraceIdInput || ! traceId ) && parentSourceId != null && (
@@ -214,7 +182,6 @@ export default function DBTracePanel({
214182 </ Stack >
215183 ) }
216184 < Divider my = "sm" />
217- { sourceFormModalOpened && < TableSourceForm sourceId = { watch ( 'source' ) } /> }
218185 { traceSourceData ?. kind === SourceKind . Trace && (
219186 < DBTraceWaterfallChartContainer
220187 traceTableSource = { traceSourceData }
0 commit comments