update reasoing builder

This commit is contained in:
Nate Kelley 2025-04-14 22:43:04 -06:00
parent 2f60854569
commit 0b539e6fe8
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
4 changed files with 18 additions and 12 deletions

View File

@ -3,7 +3,8 @@ export const useRouter = () => ({
push: () => {}, push: () => {},
replace: () => {}, replace: () => {},
refresh: () => {}, refresh: () => {},
back: () => {} back: () => {},
prefetch: () => {}
}); });
export const usePathname = () => '/'; export const usePathname = () => '/';

View File

@ -50,7 +50,7 @@ export const Default: Story = {
}, },
render: (args) => { render: (args) => {
return ( return (
<div className="h-[90vh] w-[80vw]"> <div className="h-[800px] w-[400px]">
<BusterChart {...args} /> <BusterChart {...args} />
</div> </div>
); );
@ -93,7 +93,7 @@ export const MultipleYAxis: Story = {
}, },
render: (args) => { render: (args) => {
return ( return (
<div className="h-[90vh] w-[80vw]"> <div className="h-[400px] w-[800px]">
<BusterChart {...args} /> <BusterChart {...args} />
</div> </div>
); );
@ -137,7 +137,7 @@ export const WithCategory: Story = {
}, },
render: (args) => { render: (args) => {
return ( return (
<div className="h-[90vh] w-[80vw]"> <div className="h-[400px] w-[800px]">
<BusterChart {...args} /> <BusterChart {...args} />
</div> </div>
); );
@ -182,7 +182,7 @@ export const DateXAxis: Story = {
}, },
render: (args) => { render: (args) => {
return ( return (
<div className="h-[90vh] w-[80vw]"> <div className="h-[400px] w-[800px]">
<BusterChart {...args} /> <BusterChart {...args} />
</div> </div>
); );
@ -223,7 +223,7 @@ export const HorizontalBar: Story = {
}, },
render: (args) => { render: (args) => {
return ( return (
<div className="h-[90vh] w-[80vw]"> <div className="h-[400px] w-[800px]">
<BusterChart {...args} /> <BusterChart {...args} />
</div> </div>
); );
@ -273,7 +273,7 @@ export const WithDataLabels: Story = {
}, },
render: (args) => { render: (args) => {
return ( return (
<div className="h-[90vh] w-[80vw]"> <div className="h-[400px] w-[800px]">
<BusterChart {...args} /> <BusterChart {...args} />
</div> </div>
); );
@ -325,7 +325,7 @@ export const WithDataLabelsAndStackTotal: Story = {
}, },
render: (args) => { render: (args) => {
return ( return (
<div className="h-[90vh] w-[80vw]"> <div className="h-[400px] w-[800px]">
<BusterChart {...args} /> <BusterChart {...args} />
</div> </div>
); );
@ -370,7 +370,7 @@ export const LargeDataset: Story = {
}, },
render: (args) => { render: (args) => {
return ( return (
<div className="h-[90vh] w-[80vw]"> <div className="h-[400px] w-[800px]">
<BusterChart {...args} /> <BusterChart {...args} />
</div> </div>
); );
@ -416,7 +416,7 @@ export const LargeDatasetWithDualYAxis: Story = {
}, },
render: (args) => { render: (args) => {
return ( return (
<div className="h-[90vh] w-[80vw]"> <div className="h-[400px] w-[800px]">
<BusterChart {...args} /> <BusterChart {...args} />
</div> </div>
); );

View File

@ -50,7 +50,11 @@ export const ChatResponseReasoning: React.FC<{
}, [lastMessageTitle, finalReasoningMessage, blackBoxMessage]); }, [lastMessageTitle, finalReasoningMessage, blackBoxMessage]);
const onClickReasoningFile = useMemoizedFn(() => { const onClickReasoningFile = useMemoizedFn(() => {
onSetSelectedFile(isReasonginFileSelected ? null : { id: messageId, type: 'reasoning' }); onSetSelectedFile(
isReasonginFileSelected
? null
: { id: messageId, type: 'reasoning', versionNumber: undefined }
);
}); });
const href = useMemo(() => { const href = useMemo(() => {

View File

@ -34,7 +34,8 @@ export const createSelectedFile = (
if (messageId) { if (messageId) {
return { return {
id: messageId, id: messageId,
type: 'reasoning' type: 'reasoning',
versionNumber: undefined
}; };
} }