Skip to content

Commit

Permalink
testing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiya1155 committed Jan 29, 2024
1 parent af1dc26 commit a8dcf91
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -60,9 +59,6 @@ const Conversation = ({
const inputRef = useRef<HTMLTextAreaElement>(null);
const [templates, setTemplates] = useState<StudioTemplateType[]>([]);
const [isDropdownShown, setIsDropdownShown] = useState(false);
const { setIsUpgradeRequiredPopupOpen } = useContext(
UIContext.UpgradeRequiredPopup,
);
const { isVisible } = useContext(CommandBarContext.General);
const templatesRef = useRef<HTMLButtonElement | null>(null);

Expand Down Expand Up @@ -111,8 +107,6 @@ const Conversation = ({
// && !isChangeUnsaved
) {
studioData.onSubmit();
} else if (!requestsLeft) {
setIsUpgradeRequiredPopupOpen(true);
}
}
if (checkEventKeys(e, stopShortcut) && studioData.isLoading) {
Expand Down
3 changes: 2 additions & 1 deletion client/src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
4 changes: 3 additions & 1 deletion client/src/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
4 changes: 3 additions & 1 deletion client/src/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "個人計画にアップグレードします"
}
4 changes: 3 additions & 1 deletion client/src/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -519,5 +519,7 @@
"Add any library documentation": "添加任何库文档",
"Add documentation": "添加文档",
"Manage your general project settings": "管理您的一般项目设置",
"Prompt": "迅速的"
"Prompt": "迅速的",
"Usage resets at": "用法重置",
"Upgrade to Personal plan": "升级到个人计划"
}

0 comments on commit a8dcf91

Please sign in to comment.