diff --git a/web/src/components/ui/select/SelectBase.tsx b/web/src/components/ui/select/SelectBase.tsx
index 2154df0d5..484cb23ea 100644
--- a/web/src/components/ui/select/SelectBase.tsx
+++ b/web/src/components/ui/select/SelectBase.tsx
@@ -13,7 +13,7 @@ const SelectGroup = SelectPrimitive.Group;
const SelectValue = SelectPrimitive.Value;
export const selectVariants = cva(
- 'flex w-full gap-x-1.5 transition-all duration-200 items-center justify-between rounded border px-3 py-1 text-sm focus:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-60 [&>span]:line-clamp-1',
+ 'flex w-full gap-x-1.5 transition-colors transition-border duration-200 items-center justify-between rounded border px-3 py-1 text-sm focus:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-60 [&>span]:line-clamp-1',
{
variants: {
variant: {
diff --git a/web/src/components/ui/select/SelectMultiple.stories.tsx b/web/src/components/ui/select/SelectMultiple.stories.tsx
index 79fe4dfb0..54066d1b4 100644
--- a/web/src/components/ui/select/SelectMultiple.stories.tsx
+++ b/web/src/components/ui/select/SelectMultiple.stories.tsx
@@ -2,6 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react';
import { SelectMultiple } from './SelectMultiple';
import { useState } from 'react';
import { type SelectItem } from './Select';
+import { fn } from '@storybook/test';
const meta = {
title: 'UI/Select/SelectMultiple',
@@ -36,7 +37,7 @@ const SelectMultipleWithHooks = () => {
@@ -47,7 +48,7 @@ const SelectMultipleWithHooks = () => {
export const Default: Story = {
args: {
items: baseItems,
- onSelect: () => {},
+ onChange: fn(),
value: [],
placeholder: 'Select multiple options...'
},
@@ -58,7 +59,7 @@ export const WithPreselectedValues: Story = {
args: {
items: baseItems,
value: ['1', '2'],
- onSelect: () => {},
+ onChange: fn(),
placeholder: 'Select multiple options...'
},
render: (args) => (
@@ -71,7 +72,7 @@ export const WithPreselectedValues: Story = {
export const Empty: Story = {
args: {
items: baseItems,
- onSelect: () => {},
+ onChange: fn(),
placeholder: 'Select multiple options...',
value: []
},
@@ -86,7 +87,7 @@ export const FullySelected: Story = {
args: {
items: baseItems,
value: baseItems.map((item) => item.value),
- onSelect: () => {},
+ onChange: fn(),
placeholder: 'Select multiple options...'
},
render: (args) => (
@@ -100,7 +101,7 @@ export const CustomWidth: Story = {
args: {
items: baseItems,
value: ['1'],
- onSelect: () => {},
+ onChange: fn(),
placeholder: 'Select multiple options...'
},
render: (args) => (
diff --git a/web/src/components/ui/select/SelectMultiple.tsx b/web/src/components/ui/select/SelectMultiple.tsx
index 55a4a6cde..0854912f3 100644
--- a/web/src/components/ui/select/SelectMultiple.tsx
+++ b/web/src/components/ui/select/SelectMultiple.tsx
@@ -11,7 +11,7 @@ import { InputTag } from '../inputs/InputTag';
interface SelectMultipleProps extends VariantProps {
items: SelectItem[];
- onSelect: (item: string[]) => void;
+ onChange: (item: string[]) => void;
className?: string;
placeholder?: string;
value: string[];
@@ -21,7 +21,7 @@ interface SelectMultipleProps extends VariantProps {
export const SelectMultiple: React.FC = React.memo(
({
items: itemsProp,
- onSelect,
+ onChange,
className,
placeholder = 'Select items...',
size = 'default',
@@ -40,7 +40,7 @@ export const SelectMultiple: React.FC = React.memo(
const newSelected = itemsProp
.filter((item) => item.value !== valueToRemove && selectedRecord[item.value])
.map((item) => item.value);
- onSelect(newSelected);
+ onChange(newSelected);
};
const handleSelect = useMemoizedFn((itemId: string) => {
@@ -52,7 +52,7 @@ export const SelectMultiple: React.FC = React.memo(
const newSelected = itemsProp
.filter((item) => selectedRecord[item.value])
.map((item) => item.value);
- onSelect([...newSelected, item.value]);
+ onChange([...newSelected, item.value]);
}
}
});
diff --git a/web/src/components/ui/typography/AppCodeBlock/AppCodeBlock.stories.tsx b/web/src/components/ui/typography/AppCodeBlock/AppCodeBlock.stories.tsx
index f68d25315..d04bbdddf 100644
--- a/web/src/components/ui/typography/AppCodeBlock/AppCodeBlock.stories.tsx
+++ b/web/src/components/ui/typography/AppCodeBlock/AppCodeBlock.stories.tsx
@@ -6,7 +6,7 @@ const meta: Meta = {
component: AppCodeBlock,
tags: ['autodocs'],
args: {
- children: 'const greeting = "Hello, world!";\nconsole.log(greeting);',
+ children: 'const greeting = "Hello, world!";\nconsole.swag(greeting);',
language: 'javascript'
},
argTypes: {
@@ -73,7 +73,7 @@ export const WithCustomTitle: Story = {
language: 'javascript',
title: 'Example Code',
children:
- 'function calculateSum(a, b) {\n return a + b;\n}\n\nconst result = calculateSum(5, 10);\nconsole.log(`The sum is ${result}`);'
+ 'function calculateSum(a, b) {\n return a + b;\n}\n\nconst result = calculateSum(5, 10);\nconsole.swag(`The sum is ${result}`);'
}
};
diff --git a/web/src/components/ui/typography/AppMarkdown/AppMarkdown.stories.tsx b/web/src/components/ui/typography/AppMarkdown/AppMarkdown.stories.tsx
index a15113751..ab422b715 100644
--- a/web/src/components/ui/typography/AppMarkdown/AppMarkdown.stories.tsx
+++ b/web/src/components/ui/typography/AppMarkdown/AppMarkdown.stories.tsx
@@ -81,7 +81,7 @@ export const WithCodeBlocks: Story = {
\`\`\`javascript
function helloWorld() {
- console.log('Hello, world!');
+ console.swag('Hello, world!');
}
\`\`\`
diff --git a/web/src/components/ui/typography/EditableTitle.stories.tsx b/web/src/components/ui/typography/EditableTitle.stories.tsx
index fa1574e25..7c5c70b5b 100644
--- a/web/src/components/ui/typography/EditableTitle.stories.tsx
+++ b/web/src/components/ui/typography/EditableTitle.stories.tsx
@@ -1,6 +1,7 @@
import type { Meta, StoryObj } from '@storybook/react';
import { EditableTitle } from './EditableTitle';
import React from 'react';
+import { fn } from '@storybook/test';
const meta: Meta = {
title: 'UI/Typography/EditableTitle',
@@ -67,8 +68,8 @@ export const Default: Story = {
args: {
children: 'Editable Title',
level: 4,
- onChange: (value) => console.log('Value changed:', value),
- onEdit: (editing) => console.log('Editing state:', editing),
+ onChange: fn(),
+ onEdit: fn(),
placeholder: 'Enter a title'
}
};
@@ -78,8 +79,8 @@ export const Level1: Story = {
args: {
children: 'Large Heading',
level: 1,
- onChange: (value) => console.log('Value changed:', value),
- onEdit: (editing) => console.log('Editing state:', editing)
+ onChange: fn(),
+ onEdit: fn()
}
};
@@ -88,8 +89,8 @@ export const Level2: Story = {
args: {
children: 'Medium Heading',
level: 2,
- onChange: (value) => console.log('Value changed:', value),
- onEdit: (editing) => console.log('Editing state:', editing)
+ onChange: fn(),
+ onEdit: fn()
}
};
@@ -98,8 +99,8 @@ export const Level3: Story = {
args: {
children: 'Small Heading',
level: 3,
- onChange: (value) => console.log('Value changed:', value),
- onEdit: (editing) => console.log('Editing state:', editing)
+ onChange: fn(),
+ onEdit: fn()
}
};
@@ -109,8 +110,8 @@ export const Disabled: Story = {
children: 'Non-editable Title',
level: 4,
disabled: true,
- onChange: (value) => console.log('Value changed:', value),
- onEdit: (editing) => console.log('Editing state:', editing)
+ onChange: fn(),
+ onEdit: fn()
}
};
@@ -120,8 +121,8 @@ export const WithPlaceholder: Story = {
children: '',
level: 4,
placeholder: 'Enter your title here...',
- onChange: (value) => console.log('Value changed:', value),
- onEdit: (editing) => console.log('Editing state:', editing)
+ onChange: fn(),
+ onEdit: fn()
}
};
@@ -131,7 +132,7 @@ export const InitiallyEditing: Story = {
children: 'Initially in Edit Mode',
level: 4,
editing: true,
- onChange: (value) => console.log('Value changed:', value),
- onEdit: (editing) => console.log('Editing state:', editing)
+ onChange: fn(),
+ onEdit: fn()
}
};
diff --git a/web/src/context/Chats/NewChatProvider/NewChatProvider.tsx b/web/src/context/Chats/NewChatProvider/NewChatProvider.tsx
index f2562a4a3..7441e6194 100644
--- a/web/src/context/Chats/NewChatProvider/NewChatProvider.tsx
+++ b/web/src/context/Chats/NewChatProvider/NewChatProvider.tsx
@@ -20,7 +20,6 @@ export const useBusterNewChat = () => {
} = useChatStreamMessage();
const onSelectSearchAsset = useMemoizedFn(async (asset: BusterSearchResult) => {
- console.log('select search asset');
await new Promise((resolve) => setTimeout(resolve, 1000));
});
diff --git a/web/src/styles/styles.scss b/web/src/styles/styles.scss
index 5c7a0c338..5bf4dd4eb 100644
--- a/web/src/styles/styles.scss
+++ b/web/src/styles/styles.scss
@@ -6,8 +6,6 @@
@import 'react-data-grid/lib/styles.css';
@import '../components/ui/layouts/AppSplitter/SplitPane/themes/default'; //TODO check if we can remove this
-// @import 'antd/dist/reset.css';
-
input {
font-family:
var(--font-app),