From d0ff81997eb8398bb05c69353c6bc50bd4ec7969 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Tue, 1 Jul 2025 14:15:36 -0600 Subject: [PATCH] finalize tooltip cache --- .../useTooltipOptions.ts/useTooltipOptions.tsx | 2 +- .../ChatResponseMessages/ChatResponseMessages.tsx | 6 +++--- .../ChatContainer/ChatContent/MessageContainer.tsx | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/web/src/components/ui/charts/BusterChartJS/hooks/useOptions/useTooltipOptions.ts/useTooltipOptions.tsx b/apps/web/src/components/ui/charts/BusterChartJS/hooks/useOptions/useTooltipOptions.ts/useTooltipOptions.tsx index 2332fb682..69ddec11f 100644 --- a/apps/web/src/components/ui/charts/BusterChartJS/hooks/useOptions/useTooltipOptions.ts/useTooltipOptions.tsx +++ b/apps/web/src/components/ui/charts/BusterChartJS/hooks/useOptions/useTooltipOptions.ts/useTooltipOptions.tsx @@ -32,7 +32,7 @@ interface UseTooltipOptionsProps { colors: string[]; } -const MAX_TOOLTIP_CACHE_SIZE = 20; +const MAX_TOOLTIP_CACHE_SIZE = 13; export const useTooltipOptions = ({ columnLabelFormats, diff --git a/apps/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseMessages.tsx b/apps/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseMessages.tsx index 3afbc8595..846df9aa7 100644 --- a/apps/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseMessages.tsx +++ b/apps/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseMessages.tsx @@ -31,9 +31,9 @@ export const ChatResponseMessages: React.FC = React.m + isCompletedStream={false} + isFinishedReasoning={false} + hasReasoningMessage={false}> {showReasoningMessage && ( void; onMouseLeave?: () => void; hideAvatar?: boolean; - isCompletedStream: boolean; - isFinishedReasoning: boolean; - hasReasoningMessage: boolean; + isCompletedStream?: boolean; + isFinishedReasoning?: boolean; + hasReasoningMessage?: boolean; } export const MessageContainer = forwardRef( @@ -27,9 +27,9 @@ export const MessageContainer = forwardRef