Skip to content

Commit

Permalink
chore(weave): hide annotations button temporarily #3048
Browse files Browse the repository at this point in the history
  • Loading branch information
tssweeney authored Nov 22, 2024
1 parent 97bd622 commit 585752e
Showing 1 changed file with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ import {CallScoresViewer} from './CallScoresViewer';
import {CallSummary} from './CallSummary';
import {CallTraceView, useCallFlattenedTraceTree} from './CallTraceView';
import {PaginationControls} from './PaginationControls';

// Remove this to "release" annotations
const SHOW_ANNOTATIONS = false;

export const CallPage: FC<{
entity: string;
project: string;
Expand Down Expand Up @@ -282,18 +286,20 @@ const CallPageInnerVertical: FC<{
active={showTraceTree ?? false}
onClick={onToggleTraceTree}
/>
<Button
icon="marker"
tooltip={`${showFeedbackExpand ? 'Hide' : 'Show'} feedback`}
variant="ghost"
active={showFeedbackExpand ?? false}
onClick={onToggleFeedbackExpand}
className="ml-4"
/>
{SHOW_ANNOTATIONS && (
<Button
icon="marker"
tooltip={`${showFeedbackExpand ? 'Hide' : 'Show'} feedback`}
variant="ghost"
active={showFeedbackExpand ?? false}
onClick={onToggleFeedbackExpand}
className="ml-4"
/>
)}
</Box>
</Box>
}
isRightSidebarOpen={showFeedbackExpand}
isRightSidebarOpen={showFeedbackExpand && SHOW_ANNOTATIONS}
rightSidebarContent={
<Tailwind style={{display: 'contents'}}>
<div className="flex h-full flex-col">
Expand Down

0 comments on commit 585752e

Please sign in to comment.