Skip to content

Commit 1f938fc

Browse files
feat; data tab added to the settings
added a data tab to the settings removed chat history
2 parents 8b58c7a + 7458b22 commit 1f938fc

File tree

3 files changed

+308
-123
lines changed

3 files changed

+308
-123
lines changed

app/components/settings/SettingsWindow.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@ import { classNames } from '~/utils/classNames';
55
import { DialogTitle, dialogVariants, dialogBackdropVariants } from '~/components/ui/Dialog';
66
import { IconButton } from '~/components/ui/IconButton';
77
import styles from './Settings.module.scss';
8-
import ChatHistoryTab from './chat-history/ChatHistoryTab';
98
import ProvidersTab from './providers/ProvidersTab';
109
import { useSettings } from '~/lib/hooks/useSettings';
1110
import FeaturesTab from './features/FeaturesTab';
1211
import DebugTab from './debug/DebugTab';
1312
import EventLogsTab from './event-logs/EventLogsTab';
1413
import ConnectionsTab from './connections/ConnectionsTab';
14+
import DataTab from './data/DataTab';
1515

1616
interface SettingsProps {
1717
open: boolean;
1818
onClose: () => void;
1919
}
2020

21-
type TabType = 'chat-history' | 'providers' | 'features' | 'debug' | 'event-logs' | 'connection';
21+
type TabType = 'data' | 'providers' | 'features' | 'debug' | 'event-logs' | 'connection';
2222

2323
export const SettingsWindow = ({ open, onClose }: SettingsProps) => {
2424
const { debug, eventLogs } = useSettings();
25-
const [activeTab, setActiveTab] = useState<TabType>('chat-history');
25+
const [activeTab, setActiveTab] = useState<TabType>('data');
2626

2727
const tabs: { id: TabType; label: string; icon: string; component?: ReactElement }[] = [
28-
{ id: 'chat-history', label: 'Chat History', icon: 'i-ph:book', component: <ChatHistoryTab /> },
28+
{ id: 'data', label: 'Data', icon: 'i-ph:database', component: <DataTab /> },
2929
{ id: 'providers', label: 'Providers', icon: 'i-ph:key', component: <ProvidersTab /> },
3030
{ id: 'connection', label: 'Connection', icon: 'i-ph:link', component: <ConnectionsTab /> },
3131
{ id: 'features', label: 'Features', icon: 'i-ph:star', component: <FeaturesTab /> },

app/components/settings/chat-history/ChatHistoryTab.tsx

-119
This file was deleted.

0 commit comments

Comments
 (0)