diff --git a/frontend/app/chat/[chatId]/components/DataPanel/DataPanel.module.scss b/frontend/app/chat/[chatId]/components/DataPanel/DataPanel.module.scss new file mode 100644 index 000000000000..1032bdff878f --- /dev/null +++ b/frontend/app/chat/[chatId]/components/DataPanel/DataPanel.module.scss @@ -0,0 +1,7 @@ +@use "@/styles/Spacings.module.scss"; + +.data_panel_wrapper { + display: flex; + flex-direction: column; + row-gap: Spacings.$spacing05; +} diff --git a/frontend/app/chat/[chatId]/components/DataPanel/DataPanel.tsx b/frontend/app/chat/[chatId]/components/DataPanel/DataPanel.tsx new file mode 100644 index 000000000000..87969d4c5909 --- /dev/null +++ b/frontend/app/chat/[chatId]/components/DataPanel/DataPanel.tsx @@ -0,0 +1,14 @@ +"use client"; + +import styles from "./DataPanel.module.scss"; +import RelatedBrains from "./components/RelatedBrains/RelatedBrains"; + +const DataPanel = (): JSX.Element => { + return ( +
+ +
+ ); +}; + +export default DataPanel; diff --git a/frontend/app/chat/[chatId]/components/DataPanel/components/RelatedBrains/RelatedBrains.module.scss b/frontend/app/chat/[chatId]/components/DataPanel/components/RelatedBrains/RelatedBrains.module.scss new file mode 100644 index 000000000000..e1f86a8eb563 --- /dev/null +++ b/frontend/app/chat/[chatId]/components/DataPanel/components/RelatedBrains/RelatedBrains.module.scss @@ -0,0 +1,4 @@ +.related_brains_wrapper { + border-radius: 3px; + border: 1px solid black; +} diff --git a/frontend/app/chat/[chatId]/components/DataPanel/components/RelatedBrains/RelatedBrains.tsx b/frontend/app/chat/[chatId]/components/DataPanel/components/RelatedBrains/RelatedBrains.tsx new file mode 100644 index 000000000000..1f0e9219b9b9 --- /dev/null +++ b/frontend/app/chat/[chatId]/components/DataPanel/components/RelatedBrains/RelatedBrains.tsx @@ -0,0 +1,9 @@ +"use client"; + +import styles from "./RelatedBrains.module.scss"; + +const RelatedBrains = (): JSX.Element => { + return
hey
; +}; + +export default RelatedBrains; diff --git a/frontend/app/chat/[chatId]/hooks/useChat.ts b/frontend/app/chat/[chatId]/hooks/useChat.ts index f5c21e96d64c..9e4a3b56ab99 100644 --- a/frontend/app/chat/[chatId]/hooks/useChat.ts +++ b/frontend/app/chat/[chatId]/hooks/useChat.ts @@ -83,7 +83,7 @@ export const useChat = () => { } const chatQuestion: ChatQuestion = { - model, + model, // eslint-disable-line @typescript-eslint/no-unsafe-assignment question, temperature: temperature, max_tokens: maxTokens, @@ -93,7 +93,6 @@ export const useChat = () => { callback?.(); await addStreamQuestion(currentChatId, chatQuestion); - } catch (error) { console.error({ error }); diff --git a/frontend/app/chat/[chatId]/page.module.scss b/frontend/app/chat/[chatId]/page.module.scss new file mode 100644 index 000000000000..16ecadd14db4 --- /dev/null +++ b/frontend/app/chat/[chatId]/page.module.scss @@ -0,0 +1,20 @@ +@use "@/styles/Colors.module.scss"; +@use "@/styles/Spacings.module.scss"; + +.chat_page_container { + display: flex; + flex: 1 1 0%; + background-color: Colors.$ivory; + padding: Spacings.$spacing06; + display: flex; + gap: Spacings.$spacing05; + + &.feeding { + background-color: Colors.$chat-bg-gray; + } + + .data_panel_wrapper { + height: 100%; + width: 25%; + } +} diff --git a/frontend/app/chat/[chatId]/page.tsx b/frontend/app/chat/[chatId]/page.tsx index 534b5cadfa85..9f6f01eafe24 100644 --- a/frontend/app/chat/[chatId]/page.tsx +++ b/frontend/app/chat/[chatId]/page.tsx @@ -1,32 +1,40 @@ "use client"; import { useKnowledgeToFeedContext } from "@/lib/context/KnowledgeToFeedProvider/hooks/useKnowledgeToFeedContext"; +import { useDevice } from "@/lib/hooks/useDevice"; import { useCustomDropzone } from "@/lib/hooks/useDropzone"; import { cn } from "@/lib/utils"; import { ActionsBar } from "./components/ActionsBar"; import { ChatDialogueArea } from "./components/ChatDialogueArea/ChatDialogue"; +import DataPanel from "./components/DataPanel/DataPanel"; import { useChatNotificationsSync } from "./hooks/useChatNotificationsSync"; +import styles from "./page.module.scss"; const SelectedChatPage = (): JSX.Element => { const { getRootProps } = useCustomDropzone(); const { shouldDisplayFeedCard } = useKnowledgeToFeedContext(); + const { isMobile } = useDevice(); useChatNotificationsSync(); return ( -
+
@@ -34,7 +42,11 @@ const SelectedChatPage = (): JSX.Element => {
-
+ {!isMobile && ( +
+ +
+ )}
); }; diff --git a/frontend/lib/components/ui/Icon/Icon.module.scss b/frontend/lib/components/ui/Icon/Icon.module.scss index 43e854d7d36c..46cd8a093488 100644 --- a/frontend/lib/components/ui/Icon/Icon.module.scss +++ b/frontend/lib/components/ui/Icon/Icon.module.scss @@ -25,7 +25,7 @@ color: Colors.$black; &.hovered { - color: Colors.$accent; + color: Colors.$primary; } } diff --git a/frontend/lib/components/ui/TextButton/TextButton.module.scss b/frontend/lib/components/ui/TextButton/TextButton.module.scss index 158a18935f43..c7535d0f38cf 100644 --- a/frontend/lib/components/ui/TextButton/TextButton.module.scss +++ b/frontend/lib/components/ui/TextButton/TextButton.module.scss @@ -13,6 +13,6 @@ color: Colors.$black; &.hovered { - color: Colors.$accent; + color: Colors.$primary; } } diff --git a/frontend/styles/_Colors.module.scss b/frontend/styles/_Colors.module.scss index f2fa73dea507..ed0e524d7b6f 100644 --- a/frontend/styles/_Colors.module.scss +++ b/frontend/styles/_Colors.module.scss @@ -1,8 +1,9 @@ -$white: #FFFFFF; -$black: #11243E; -$primary: #6142D4; -$secondary: #F3ECFF; -$tertiary: #F6F4FF; -$accent: #13ABBA; -$highlight: #FAFAFA; -$ivory: #FCFAF6, \ No newline at end of file +$white: #ffffff; +$black: #11243e; +$primary: #6142d4; +$secondary: #f3ecff; +$tertiary: #f6f4ff; +$accent: #13abba; +$highlight: #fafafa; +$ivory: #fcfaf6; +$chat-bg-gray: #d9d9d9;