From d49a1b24b5d69196c40c6fb741a617e60e2bd8d9 Mon Sep 17 00:00:00 2001 From: Mike Fortman Date: Sat, 30 Nov 2024 12:31:43 -0600 Subject: [PATCH] refactor: Feature flag custom chat icons and custom banner spacing changes to stay in sync with DataStax Langflow (#4845) fix chat icons and custom banner spacing --- src/frontend/src/components/common/pageLayout/index.tsx | 4 ++-- .../components/chatView/chatMessage/newChatMessage.tsx | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/components/common/pageLayout/index.tsx b/src/frontend/src/components/common/pageLayout/index.tsx index ca6f3c3b1..2e78afbf2 100644 --- a/src/frontend/src/components/common/pageLayout/index.tsx +++ b/src/frontend/src/components/common/pageLayout/index.tsx @@ -24,9 +24,9 @@ export default function PageLayout({ return (
-
+
-
+
{backTo && ( diff --git a/src/frontend/src/modals/IOModal/components/chatView/chatMessage/newChatMessage.tsx b/src/frontend/src/modals/IOModal/components/chatView/chatMessage/newChatMessage.tsx index 46de81ac8..2050b0e48 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/chatMessage/newChatMessage.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/chatMessage/newChatMessage.tsx @@ -2,6 +2,8 @@ import { ProfileIcon } from "@/components/core/appHeaderComponent/components/Pro import { ContentBlockDisplay } from "@/components/core/chatComponents/ContentBlockDisplay"; import { TextShimmer } from "@/components/ui/TextShimmer"; import { useUpdateMessage } from "@/controllers/API/queries/messages"; +import { CustomProfileIcon } from "@/customization/components/custom-profile-icon"; +import { ENABLE_DATASTAX_LANGFLOW } from "@/customization/feature-flags"; import useFlowsManagerStore from "@/stores/flowsManagerStore"; import useFlowStore from "@/stores/flowStore"; import { useUtilityStore } from "@/stores/utilityStore"; @@ -441,8 +443,10 @@ export default function ChatMessage({ ) : ( ) - ) : ( + ) : !ENABLE_DATASTAX_LANGFLOW ? ( + ) : ( + )}
)}