Skip to content

Commit 585752e

Browse files
authored
chore(weave): hide annotations button temporarily #3048
1 parent 97bd622 commit 585752e

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

weave-js/src/components/PagePanelComponents/Home/Browse3/pages/CallPage/CallPage.tsx

+15-9
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ import {CallScoresViewer} from './CallScoresViewer';
3939
import {CallSummary} from './CallSummary';
4040
import {CallTraceView, useCallFlattenedTraceTree} from './CallTraceView';
4141
import {PaginationControls} from './PaginationControls';
42+
43+
// Remove this to "release" annotations
44+
const SHOW_ANNOTATIONS = false;
45+
4246
export const CallPage: FC<{
4347
entity: string;
4448
project: string;
@@ -282,18 +286,20 @@ const CallPageInnerVertical: FC<{
282286
active={showTraceTree ?? false}
283287
onClick={onToggleTraceTree}
284288
/>
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+
)}
293299
</Box>
294300
</Box>
295301
}
296-
isRightSidebarOpen={showFeedbackExpand}
302+
isRightSidebarOpen={showFeedbackExpand && SHOW_ANNOTATIONS}
297303
rightSidebarContent={
298304
<Tailwind style={{display: 'contents'}}>
299305
<div className="flex h-full flex-col">

0 commit comments

Comments
 (0)