From 9f7c9180d9253e7574bb245bec4baaad2c5d44fb Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 1 Nov 2023 21:45:40 +0000 Subject: [PATCH 1/2] prep settings slightly --- frontend/src/Navigation.tsx | 22 ++++++---------------- frontend/src/Setting.tsx | 10 +++++----- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/frontend/src/Navigation.tsx b/frontend/src/Navigation.tsx index f81d5eac0..063e9caee 100644 --- a/frontend/src/Navigation.tsx +++ b/frontend/src/Navigation.tsx @@ -11,7 +11,6 @@ import Github from './assets/github.svg'; import Hamburger from './assets/hamburger.svg'; import Info from './assets/info.svg'; import SettingGear from './assets/settingGear.svg'; -import Key from './assets/key.svg'; import Add from './assets/add.svg'; import UploadIcon from './assets/upload.svg'; import { ActiveState } from './models/misc'; @@ -229,7 +228,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) { className={({ isActive }) => `${ isActive ? 'bg-gray-3000' : '' - } group my-auto mx-4 mt-4 flex cursor-pointer gap-2.5 rounded-3xl border border-silver p-3 hover:border-rainy-gray hover:bg-gray-3000` + } group mx-4 mt-4 flex cursor-pointer gap-2.5 rounded-3xl border border-silver p-3 hover:border-rainy-gray hover:bg-gray-3000` } > +

Chats

{conversations && ( -
-

Chats

+
{conversations?.map((conversation) => (

Source Docs

-
-
{ - setApiKeyModalState('ACTIVE'); - }} - > - key -

Reset Key

-
-
-

Settings

+
+ +
diff --git a/frontend/src/Setting.tsx b/frontend/src/Setting.tsx index 910715186..05555cb95 100644 --- a/frontend/src/Setting.tsx +++ b/frontend/src/Setting.tsx @@ -74,9 +74,9 @@ const Setting = () => { const General = () => { const [theme, setTheme] = useState('Light'); const [isThemeListOpen, setIsThemeListOpen] = useState(false); - const themes = ['Light', 'Dark']; + const themes = ['Light', 'Dark (WIP)']; const [language, setLanguage] = useState('English'); - const languages = ['English', 'French']; + const languages = ['English']; const [isLanguageListOpen, setIsLanguageListOpen] = useState(false); return ( <> @@ -165,12 +165,12 @@ const General = () => { ); }; const Prompts = () => { - return
This is prompts
; + return
This is prompts WIP
; }; const Documents = () => { - return
This is Documents
; + return
This is Documents WIP
; }; const Widgets = () => { - return
This is widgets
; + return
This is widgets WIP
; }; export default Setting; From 2d202088c769f56721090f12039dd59c319f44e8 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 1 Nov 2023 21:48:52 +0000 Subject: [PATCH 2/2] syntax --- frontend/src/conversation/Conversation.tsx | 2 +- frontend/src/index.css | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index 34b146a78..fcef24001 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -192,7 +192,7 @@ export default function Conversation() {
)}
-

+

This is a chatbot that uses the GPT-3, Faiss and LangChain to answer questions.

diff --git a/frontend/src/index.css b/frontend/src/index.css index 4d881fe08..244d78709 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -367,7 +367,7 @@ template { /* third container laylout for Firefox */ @-moz-document url-prefix() { - .firefox{ + .firefox { padding: 32px; } } @@ -377,4 +377,4 @@ template { .firefox { padding: 16px; } -} \ No newline at end of file +}