From e362b1fa24795f0d1a0eae1e1d134ef8f56fbdfa Mon Sep 17 00:00:00 2001 From: Abhishek A S Date: Tue, 8 Oct 2024 11:37:40 +0530 Subject: [PATCH 1/9] finish button and its releated code has been removed --- ui/src/pages/ChatConfiguration/ChatConfiguration.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/src/pages/ChatConfiguration/ChatConfiguration.jsx b/ui/src/pages/ChatConfiguration/ChatConfiguration.jsx index 18faa446..9b34bd43 100644 --- a/ui/src/pages/ChatConfiguration/ChatConfiguration.jsx +++ b/ui/src/pages/ChatConfiguration/ChatConfiguration.jsx @@ -421,9 +421,7 @@ const BotConfiguration = () => {
-
- -
+ From 0325d8f210d7d213889614075a232df58a9fbec2 Mon Sep 17 00:00:00 2001 From: Abhishek A S Date: Tue, 8 Oct 2024 14:47:08 +0530 Subject: [PATCH 2/9] setActive state value updated --- .../ChatConfiguration/ChatConfiguration.jsx | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/ui/src/pages/ChatConfiguration/ChatConfiguration.jsx b/ui/src/pages/ChatConfiguration/ChatConfiguration.jsx index 9b34bd43..e8e9ff50 100644 --- a/ui/src/pages/ChatConfiguration/ChatConfiguration.jsx +++ b/ui/src/pages/ChatConfiguration/ChatConfiguration.jsx @@ -174,6 +174,7 @@ const BotConfiguration = () => { saveBotInferene(currentConfigID, currentInferenceID, data).then(() => { toast.success("Inference saved successfully") setShowNotificationPanel(false); + setActiveTab("capabalities") }) .catch(() => { setShowNotificationPanel(true); @@ -328,23 +329,23 @@ const BotConfiguration = () => {
+ label="Bot Configuration Name" + maxLength={50} + value={configWatch("botName")} + hasError={configFormError["botName"]?.message ? true : false} + errorMessage={configFormError["botName"]?.message} + {...configRegister("botName", { + required: "This field is required", + maxLength: { + value: 50, + message: "The maximum length is 50 characters" + }, + minLength: { + value: 10, + message: "The minimum length is 20 characters" + } + })} + />