diff --git a/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx b/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx index 2337d0fb435b3..0dd4e8991f285 100644 --- a/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx +++ b/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx @@ -75,13 +75,13 @@ const RenameQueryModal = ({ const validate = () => { const errors: any = {} - if (!nameInput) errors.name = 'Please enter a query name' + if (!nameInput) errors.name = '请输入查询的名称' return errors } const onSubmit = async (values: any, { setSubmitting }: any) => { - if (!ref) return console.error('Project ref is required') - if (!id) return console.error('Snippet ID is required') + if (!ref) return console.error('未找到项目号') + if (!id) return console.error('未找到代码段 ID') setSubmitting(true) try { @@ -109,7 +109,7 @@ const RenameQueryModal = ({ }, [snippet.id]) return ( - +
setNameInput(e.target.value)} /> -
+ {/*
{!hasHipaaAddon && isAiButtonVisible && ( )} -
+
*/} { // Customers on HIPAA plans should not have access to Supabase AI const hasHipaaAddon = subscriptionHasHipaaAddon(subscription) - const [isAiOpen, setIsAiOpen] = useLocalStorageQuery(LOCAL_STORAGE_KEYS.SQL_EDITOR_AI_OPEN, true) + const [isAiOpen, setIsAiOpen] = useLocalStorageQuery(LOCAL_STORAGE_KEYS.SQL_EDITOR_AI_OPEN, false) const [isConfirmModalOpen, setIsConfirmModalOpen] = useState(false) const selectedOrganization = useSelectedOrganization() diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx index 7012cb8f0866b..8debf06d952be 100644 --- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx +++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx @@ -72,7 +72,7 @@ const UtilityActions = ({ const snapV2 = useSqlEditorV2StateSnapshot() const enableFolders = useFlag('sqlFolderOrganization') - const [isAiOpen] = useLocalStorageQuery(LOCAL_STORAGE_KEYS.SQL_EDITOR_AI_OPEN, true) + const [isAiOpen] = useLocalStorageQuery(LOCAL_STORAGE_KEYS.SQL_EDITOR_AI_OPEN, false) const [intellisenseEnabled, setIntellisenseEnabled] = useLocalStorageQuery( LOCAL_STORAGE_KEYS.SQL_EDITOR_INTELLISENSE, true @@ -210,7 +210,7 @@ const UtilityActions = ({ - {IS_PLATFORM && ( + {true && ( {isFavorite ? ( diff --git a/apps/studio/components/layouts/SQLEditorLayout/QueryItemActions.tsx b/apps/studio/components/layouts/SQLEditorLayout/QueryItemActions.tsx index 6e571067d91f5..da1c6c8629b2f 100644 --- a/apps/studio/components/layouts/SQLEditorLayout/QueryItemActions.tsx +++ b/apps/studio/components/layouts/SQLEditorLayout/QueryItemActions.tsx @@ -97,7 +97,7 @@ export const QueryItemActions = ({ return ( <> - {IS_PLATFORM ? ( + {true ? ( - 复制个人副本 + 复制到您的个人查询 )} diff --git a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx index 6c325a46b75d6..7a89e2e4c3823 100644 --- a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx +++ b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx @@ -185,7 +185,7 @@ export const SQLEditorMenu = ({ onViewOngoingQueries }: { onViewOngoingQueries: onClick={() => handleNewQuery()} icon={} > - 新查询 + 新建查询 )} diff --git a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV1.tsx b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV1.tsx index 5eaf1f6d31777..ed6ef52f22f05 100644 --- a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV1.tsx +++ b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV1.tsx @@ -195,7 +195,7 @@ export const SQLEditorNavV1 = ({ {filteredProjectSnippets.length > 0 && ( - + <> {filteredProjectSnippets.map((tabInfo) => ( @@ -253,7 +253,7 @@ export const SQLEditorNavV1 = ({ {personalSnippets.length > 0 && ( - + <>
diff --git a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorTreeViewItem.tsx b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorTreeViewItem.tsx index e07e211317284..5b3e84b4c4b5a 100644 --- a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorTreeViewItem.tsx +++ b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorTreeViewItem.tsx @@ -256,7 +256,7 @@ export const SQLEditorTreeViewItem = ({ onFocusCapture={(e) => e.stopPropagation()} > - 复制个人副本 + 复制到您的个人查询 )} {onSelectDownload !== undefined && IS_PLATFORM && (