File tree 1 file changed +15
-9
lines changed
weave-js/src/components/PagePanelComponents/Home/Browse3/pages/CallPage
1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ import {CallScoresViewer} from './CallScoresViewer';
39
39
import { CallSummary } from './CallSummary' ;
40
40
import { CallTraceView , useCallFlattenedTraceTree } from './CallTraceView' ;
41
41
import { PaginationControls } from './PaginationControls' ;
42
+
43
+ // Remove this to "release" annotations
44
+ const SHOW_ANNOTATIONS = false ;
45
+
42
46
export const CallPage : FC < {
43
47
entity : string ;
44
48
project : string ;
@@ -282,18 +286,20 @@ const CallPageInnerVertical: FC<{
282
286
active = { showTraceTree ?? false }
283
287
onClick = { onToggleTraceTree }
284
288
/>
285
- < Button
286
- icon = "marker"
287
- tooltip = { `${ showFeedbackExpand ? 'Hide' : 'Show' } feedback` }
288
- variant = "ghost"
289
- active = { showFeedbackExpand ?? false }
290
- onClick = { onToggleFeedbackExpand }
291
- className = "ml-4"
292
- />
289
+ { SHOW_ANNOTATIONS && (
290
+ < Button
291
+ icon = "marker"
292
+ tooltip = { `${ showFeedbackExpand ? 'Hide' : 'Show' } feedback` }
293
+ variant = "ghost"
294
+ active = { showFeedbackExpand ?? false }
295
+ onClick = { onToggleFeedbackExpand }
296
+ className = "ml-4"
297
+ />
298
+ ) }
293
299
</ Box >
294
300
</ Box >
295
301
}
296
- isRightSidebarOpen = { showFeedbackExpand }
302
+ isRightSidebarOpen = { showFeedbackExpand && SHOW_ANNOTATIONS }
297
303
rightSidebarContent = {
298
304
< Tailwind style = { { display : 'contents' } } >
299
305
< div className = "flex h-full flex-col" >
You can’t perform that action at this time.
0 commit comments