finalize tooltip cache

This commit is contained in:
Nate Kelley 2025-07-01 14:15:36 -06:00
parent 27de636296
commit d0ff81997e
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
3 changed files with 10 additions and 10 deletions

View File

@ -32,7 +32,7 @@ interface UseTooltipOptionsProps {
colors: string[];
}
const MAX_TOOLTIP_CACHE_SIZE = 20;
const MAX_TOOLTIP_CACHE_SIZE = 13;
export const useTooltipOptions = ({
columnLabelFormats,

View File

@ -31,9 +31,9 @@ export const ChatResponseMessages: React.FC<ChatResponseMessagesProps> = React.m
<MessageContainer
className="group flex w-full flex-col space-y-3 overflow-hidden"
hideAvatar={hideAvatar}
isCompletedStream={isCompletedStream}
isFinishedReasoning={!!finalReasoningMessage}
hasReasoningMessage={!!lastReasoningMessageId}>
isCompletedStream={false}
isFinishedReasoning={false}
hasReasoningMessage={false}>
{showReasoningMessage && (
<ChatResponseReasoning
reasoningMessageId={lastReasoningMessageId}

View File

@ -13,9 +13,9 @@ interface MessageContainerProps {
onMouseEnter?: () => void;
onMouseLeave?: () => void;
hideAvatar?: boolean;
isCompletedStream: boolean;
isFinishedReasoning: boolean;
hasReasoningMessage: boolean;
isCompletedStream?: boolean;
isFinishedReasoning?: boolean;
hasReasoningMessage?: boolean;
}
export const MessageContainer = forwardRef<HTMLDivElement, MessageContainerProps>(
@ -27,9 +27,9 @@ export const MessageContainer = forwardRef<HTMLDivElement, MessageContainerProps
senderAvatar,
className = '',
hideAvatar = false,
hasReasoningMessage,
isCompletedStream,
isFinishedReasoning,
hasReasoningMessage = true,
isCompletedStream = true,
isFinishedReasoning = true,
onMouseEnter,
onMouseLeave
},