From 9517b01d9a345fac7c5734858802234279195b6f Mon Sep 17 00:00:00 2001 From: Antoine Dewez <44063631+Zewed@users.noreply.github.com> Date: Tue, 6 Feb 2024 23:34:50 -0800 Subject: [PATCH] feat(frontend): manage current brain (#2165) # Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate): --- .../ActionsBar/components/ChatInput/index.tsx | 2 +- frontend/app/chat/[chatId]/page.tsx | 24 +++++++++++++++++ frontend/app/search/page.tsx | 2 ++ frontend/app/studio/page.tsx | 2 ++ frontend/app/user/page.tsx | 3 +++ .../components/CurrentBrain/CurrentBrain.tsx | 26 ++++++++++++------- .../lib/components/PageHeader/PageHeader.tsx | 1 + .../lib/components/ui/Icon/Icon.module.scss | 4 --- .../ui/QuivrButton/QuivrButton.module.scss | 15 +++++++++++ .../components/ui/QuivrButton/QuivrButton.tsx | 18 ++++++++++++- .../lib/components/ui/SearchBar/SearchBar.tsx | 2 +- frontend/lib/helpers/iconList.ts | 15 ++++++----- frontend/lib/types/QuivrButton.ts | 3 +++ 13 files changed, 95 insertions(+), 22 deletions(-) diff --git a/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/index.tsx b/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/index.tsx index 95352308078b..ee83f747984a 100644 --- a/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/index.tsx +++ b/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/index.tsx @@ -33,7 +33,7 @@ export const ChatInput = (): JSX.Element => { }} >