From a8dcf91ab4a37c6f23ff036dc1be610a532e7863 Mon Sep 17 00:00:00 2001 From: anastasiia Date: Mon, 29 Jan 2024 08:18:12 -0500 Subject: [PATCH] testing fixes --- .../StudioTab/Conversation/Input/index.tsx | 2 +- .../CurrentTabContent/StudioTab/Conversation/index.tsx | 6 ------ client/src/locales/es.json | 3 ++- client/src/locales/it.json | 4 +++- client/src/locales/ja.json | 4 +++- client/src/locales/zh-CN.json | 4 +++- 6 files changed, 12 insertions(+), 11 deletions(-) diff --git a/client/src/Project/CurrentTabContent/StudioTab/Conversation/Input/index.tsx b/client/src/Project/CurrentTabContent/StudioTab/Conversation/Input/index.tsx index 4a7e94c36e..a6b83229bb 100644 --- a/client/src/Project/CurrentTabContent/StudioTab/Conversation/Input/index.tsx +++ b/client/src/Project/CurrentTabContent/StudioTab/Conversation/Input/index.tsx @@ -118,7 +118,7 @@ const ConversationInput = ({ ref.current.style.height = Math.min(Math.max(scrollHeight, 19), 300) + 'px'; } - }, [message, isFocused]); + }, [message, isFocused, value]); const dropdownProps = useMemo(() => { return { diff --git a/client/src/Project/CurrentTabContent/StudioTab/Conversation/index.tsx b/client/src/Project/CurrentTabContent/StudioTab/Conversation/index.tsx index f885afc7ca..e756d67a20 100644 --- a/client/src/Project/CurrentTabContent/StudioTab/Conversation/index.tsx +++ b/client/src/Project/CurrentTabContent/StudioTab/Conversation/index.tsx @@ -22,7 +22,6 @@ import { import { checkEventKeys } from '../../../../utils/keyboardUtils'; import { useTemplateShortcut } from '../../../../consts/shortcuts'; import useKeyboardNavigation from '../../../../hooks/useKeyboardNavigation'; -import { UIContext } from '../../../../context/uiContext'; import KeyHintButton from '../../../../components/Button/KeyHintButton'; import Button from '../../../../components/Button'; import { CommandBarContext } from '../../../../context/commandBarContext'; @@ -60,9 +59,6 @@ const Conversation = ({ const inputRef = useRef(null); const [templates, setTemplates] = useState([]); const [isDropdownShown, setIsDropdownShown] = useState(false); - const { setIsUpgradeRequiredPopupOpen } = useContext( - UIContext.UpgradeRequiredPopup, - ); const { isVisible } = useContext(CommandBarContext.General); const templatesRef = useRef(null); @@ -111,8 +107,6 @@ const Conversation = ({ // && !isChangeUnsaved ) { studioData.onSubmit(); - } else if (!requestsLeft) { - setIsUpgradeRequiredPopupOpen(true); } } if (checkEventKeys(e, stopShortcut) && studioData.isLoading) { diff --git a/client/src/locales/es.json b/client/src/locales/es.json index 65ab2bc7e5..45a2c4cb4d 100644 --- a/client/src/locales/es.json +++ b/client/src/locales/es.json @@ -524,5 +524,6 @@ "Click on an identifier and jump to its references and definition in a heart beat.": "Haga clic en un identificador y salte a sus referencias y definición en un latido cardíaco.", "Hide search steps": "Ocultar pasos de búsqueda", "Close currently focused tab": "Cerrar pestaña actualmente enfocada", - "Add documentation": "Agregar documentación" + "Add documentation": "Agregar documentación", + "Usage resets at": "Restablecimiento de uso en" } \ No newline at end of file diff --git a/client/src/locales/it.json b/client/src/locales/it.json index e0056d618d..27533de4b4 100644 --- a/client/src/locales/it.json +++ b/client/src/locales/it.json @@ -500,5 +500,7 @@ "We couldn't find any docs at that link. Try again or make sure the link is correct!": "Non siamo riusciti a trovare alcun documento a quel link. Riprova o assicurati che il collegamento sia corretto!", "Manage your general project settings": "Gestisci le tue impostazioni generali del progetto", "Prompt": "Richiesta", - "Write your prompt...": "Scrivi il tuo prompt ..." + "Write your prompt...": "Scrivi il tuo prompt ...", + "Usage resets at": "L'uso si ripristina a", + "Upgrade to Personal plan": "Aggiorna al piano personale" } \ No newline at end of file diff --git a/client/src/locales/ja.json b/client/src/locales/ja.json index b9acb9cdfc..ed851dc123 100644 --- a/client/src/locales/ja.json +++ b/client/src/locales/ja.json @@ -509,5 +509,7 @@ "Add any library documentation": "ライブラリのドキュメントを追加します", "Add documentation": "ドキュメントを追加します", "Manage your general project settings": "一般的なプロジェクトの設定を管理します", - "Write your prompt...": "あなたのプロンプトを書く..." + "Write your prompt...": "あなたのプロンプトを書く...", + "Usage resets at": "使用法がリセットされます", + "Upgrade to Personal plan": "個人計画にアップグレードします" } \ No newline at end of file diff --git a/client/src/locales/zh-CN.json b/client/src/locales/zh-CN.json index bd7be09577..464d4fc384 100644 --- a/client/src/locales/zh-CN.json +++ b/client/src/locales/zh-CN.json @@ -519,5 +519,7 @@ "Add any library documentation": "添加任何库文档", "Add documentation": "添加文档", "Manage your general project settings": "管理您的一般项目设置", - "Prompt": "迅速的" + "Prompt": "迅速的", + "Usage resets at": "用法重置", + "Upgrade to Personal plan": "升级到个人计划" } \ No newline at end of file