fix import (#242)

* 🐛 fix import (#224)

* 🐛 fix import of corrupted history

see https://github.com/mckaywrigley/chatbot-ui/issues/224#issuecomment-1486080888

* add the run-test-suite github action
This commit is contained in:
Thomas LÉVEIL
2023-03-28 10:27:37 +02:00
committed by GitHub
parent 5aa5be3f43
commit b0c289f7a4
15 changed files with 7061 additions and 55 deletions
+2 -4
View File
@@ -1,5 +1,6 @@
import { Conversation } from '@/types/chat';
import { KeyValuePair } from '@/types/data';
import { SupportedExportFormats } from '@/types/export';
import { Folder } from '@/types/folder';
import {
IconArrowBarLeft,
@@ -36,10 +37,7 @@ interface Props {
onApiKeyChange: (apiKey: string) => void;
onClearConversations: () => void;
onExportConversations: () => void;
onImportConversations: (data: {
conversations: Conversation[];
folders: Folder[];
}) => void;
onImportConversations: (data: SupportedExportFormats) => void;
}
export const Chatbar: FC<Props> = ({
+2 -6
View File
@@ -1,5 +1,4 @@
import { Conversation } from '@/types/chat';
import { Folder } from '@/types/folder';
import { SupportedExportFormats } from '@/types/export';
import { IconFileExport, IconMoon, IconSun } from '@tabler/icons-react';
import { useTranslation } from 'next-i18next';
import { FC } from 'react';
@@ -16,10 +15,7 @@ interface Props {
onApiKeyChange: (apiKey: string) => void;
onClearConversations: () => void;
onExportConversations: () => void;
onImportConversations: (data: {
conversations: Conversation[];
folders: Folder[];
}) => void;
onImportConversations: (data: SupportedExportFormats) => void;
}
export const ChatbarSettings: FC<Props> = ({