From 7aa111b863530149f6aaa62b368c2bb29df25599 Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Mon, 23 Jun 2025 13:47:35 +0800 Subject: [PATCH] Chore/misc fixes 200625 (#36545) * Fix database functions editor not resetting maximized state when panel is closed * Small update to copy in compute costs confirmation modal --- .../interfaces/Database/Functions/CreateFunction/index.tsx | 1 + apps/studio/pages/new/[slug].tsx | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx index d32e9aaae95..fd966494bdf 100644 --- a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx +++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx @@ -134,6 +134,7 @@ const CreateFunction = ({ func, visible, setVisible }: CreateFunctionProps) => { useEffect(() => { if (visible) { + setFocusedEditor(false) form.reset({ name: func?.name ?? '', schema: func?.schema ?? 'public', diff --git a/apps/studio/pages/new/[slug].tsx b/apps/studio/pages/new/[slug].tsx index 91039295485..ce537860dca 100644 --- a/apps/studio/pages/new/[slug].tsx +++ b/apps/studio/pages/new/[slug].tsx @@ -951,8 +951,8 @@ const Wizard: NextPageWithLayout = () => { size="large" loading={false} visible={isComputeCostsConfirmationModalVisible} - title={<>Confirm compute costs} - confirmLabel="Confirm" + title="Confirm compute costs" + confirmLabel="I understand" onCancel={() => setIsComputeCostsConfirmationModalVisible(false)} onConfirm={async () => { const values = form.getValues() @@ -965,7 +965,7 @@ const Wizard: NextPageWithLayout = () => {

Launching a project on compute size "{instanceLabel(instanceSize)}" increases your monthly costs by ${additionalMonthlySpend}, independent of how actively you use it. By - clicking "Confirm", you agree to the additional costs.{' '} + clicking "I understand", you agree to the additional costs.{' '}