mirror of https://github.com/buster-so/buster.git
finalize tooltip cache
This commit is contained in:
parent
27de636296
commit
d0ff81997e
|
@ -32,7 +32,7 @@ interface UseTooltipOptionsProps {
|
||||||
colors: string[];
|
colors: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
const MAX_TOOLTIP_CACHE_SIZE = 20;
|
const MAX_TOOLTIP_CACHE_SIZE = 13;
|
||||||
|
|
||||||
export const useTooltipOptions = ({
|
export const useTooltipOptions = ({
|
||||||
columnLabelFormats,
|
columnLabelFormats,
|
||||||
|
|
|
@ -31,9 +31,9 @@ export const ChatResponseMessages: React.FC<ChatResponseMessagesProps> = React.m
|
||||||
<MessageContainer
|
<MessageContainer
|
||||||
className="group flex w-full flex-col space-y-3 overflow-hidden"
|
className="group flex w-full flex-col space-y-3 overflow-hidden"
|
||||||
hideAvatar={hideAvatar}
|
hideAvatar={hideAvatar}
|
||||||
isCompletedStream={isCompletedStream}
|
isCompletedStream={false}
|
||||||
isFinishedReasoning={!!finalReasoningMessage}
|
isFinishedReasoning={false}
|
||||||
hasReasoningMessage={!!lastReasoningMessageId}>
|
hasReasoningMessage={false}>
|
||||||
{showReasoningMessage && (
|
{showReasoningMessage && (
|
||||||
<ChatResponseReasoning
|
<ChatResponseReasoning
|
||||||
reasoningMessageId={lastReasoningMessageId}
|
reasoningMessageId={lastReasoningMessageId}
|
||||||
|
|
|
@ -13,9 +13,9 @@ interface MessageContainerProps {
|
||||||
onMouseEnter?: () => void;
|
onMouseEnter?: () => void;
|
||||||
onMouseLeave?: () => void;
|
onMouseLeave?: () => void;
|
||||||
hideAvatar?: boolean;
|
hideAvatar?: boolean;
|
||||||
isCompletedStream: boolean;
|
isCompletedStream?: boolean;
|
||||||
isFinishedReasoning: boolean;
|
isFinishedReasoning?: boolean;
|
||||||
hasReasoningMessage: boolean;
|
hasReasoningMessage?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const MessageContainer = forwardRef<HTMLDivElement, MessageContainerProps>(
|
export const MessageContainer = forwardRef<HTMLDivElement, MessageContainerProps>(
|
||||||
|
@ -27,9 +27,9 @@ export const MessageContainer = forwardRef<HTMLDivElement, MessageContainerProps
|
||||||
senderAvatar,
|
senderAvatar,
|
||||||
className = '',
|
className = '',
|
||||||
hideAvatar = false,
|
hideAvatar = false,
|
||||||
hasReasoningMessage,
|
hasReasoningMessage = true,
|
||||||
isCompletedStream,
|
isCompletedStream = true,
|
||||||
isFinishedReasoning,
|
isFinishedReasoning = true,
|
||||||
onMouseEnter,
|
onMouseEnter,
|
||||||
onMouseLeave
|
onMouseLeave
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue