diff --git a/app/backend/ProcessMemory.ts b/app/backend/ProcessMemory.ts new file mode 100644 index 0000000..5765138 --- /dev/null +++ b/app/backend/ProcessMemory.ts @@ -0,0 +1,19 @@ +/* import { Settings } from 'electron' + +type Message = { + role: string + content: string +} + +type Chat = { + name: string + messages: Message[] +} + +type Data = { + chats: Chat[] + settings: Settings[] +} */ + + + diff --git a/app/components/History.tsx b/app/components/History.tsx index 7e23d6b..0aae50f 100644 --- a/app/components/History.tsx +++ b/app/components/History.tsx @@ -35,10 +35,7 @@ const History: React.FC = () => { {/* Populate with history items */} {chatHistory.chats.map((chats, index) => (
  • - handleHistoryClick(index)} style={{ - backgroundColor: chatHistory.selectedIndex == index ? "var(--input-button-color)" : "", - borderRadius:"5px" - }}> + handleHistoryClick(index)}> {chatHistory.chats[index].name}
  • diff --git a/app/components/settings/settingUtils.ts b/app/components/settings/settingUtils.ts index f6cd00d..de08012 100644 --- a/app/components/settings/settingUtils.ts +++ b/app/components/settings/settingUtils.ts @@ -45,6 +45,7 @@ export const sendToDatabase = async () => { if (useName && usePassword) { const result = await changeSettings(useName, usePassword, JSON.parse(exportSettings())) if (result == true) { + alert('Data has been transferred') window.location.reload(); } }