From 7263e916e23b96221f656f5f1a045be849f537c3 Mon Sep 17 00:00:00 2001 From: ForisKuang Date: Tue, 2 Jun 2026 16:55:43 -0400 Subject: [PATCH] Add unified cBioAgent UI config controls --- client/src/components/Chat/ChatView.tsx | 2 + client/src/components/Chat/Header.tsx | 6 +- .../Chat/Input/ConversationStarters.tsx | 144 +++++++++++++++++- .../src/components/Chat/Input/LimitBadge.tsx | 46 ++++++ client/src/components/Chat/Landing.tsx | 57 ++++--- .../Chat/Menus/Endpoints/ModelSelector.tsx | 20 ++- .../components/Chat/Menus/Endpoints/utils.ts | 2 +- client/src/hooks/Input/useTextarea.ts | 12 +- packages/data-provider/src/config.ts | 2 + packages/data-provider/src/models.ts | 30 ++++ packages/data-schemas/src/app/interface.ts | 1 + 11 files changed, 295 insertions(+), 27 deletions(-) create mode 100644 client/src/components/Chat/Input/LimitBadge.tsx diff --git a/client/src/components/Chat/ChatView.tsx b/client/src/components/Chat/ChatView.tsx index 9c760e44001d..255ffdc76d38 100644 --- a/client/src/components/Chat/ChatView.tsx +++ b/client/src/components/Chat/ChatView.tsx @@ -9,6 +9,7 @@ import type { ChatFormValues } from '~/common'; import { ChatContext, AddedChatContext, useFileMapContext, ChatFormProvider } from '~/Providers'; import { useChatHelpers, useAddedResponse, useSSE } from '~/hooks'; import ConversationStarters from './Input/ConversationStarters'; +import LimitBadge from './Input/LimitBadge'; import { useGetMessagesByConvoId } from '~/data-provider'; import MessagesView from './Messages/MessagesView'; import Presentation from './Presentation'; @@ -98,6 +99,7 @@ function ChatView({ index = 0 }: { index?: number }) { )} > + {isLandingPage && } {isLandingPage ? :