Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat(frontend): upload SQL improvement (#2019)

Liu Ji959969dea219
diff --git a/frontend/src/components/Issue/IssueTaskStatementPanel.vue b/frontend/src/components/Issue/IssueTaskStatementPanel.vue
index ac0a159f13..b47a112027 100644
--- a/frontend/src/components/Issue/IssueTaskStatementPanel.vue
+++ b/frontend/src/components/Issue/IssueTaskStatementPanel.vue
@@ -24,7 +24,7 @@
<div class="space-x-2 flex items-center">
<template v-if="create">
- <label class="mt-0.5 inline-flex items-center gap-1">
+ <label class="mt-0.5 mr-2 inline-flex items-center gap-1">
<input
v-model="formatOnSave"
type="checkbox"
@@ -37,7 +37,7 @@
type="button"
class="mt-0.5 px-3 border border-control-border rounded-sm text-control bg-control-bg hover:bg-control-bg-hover text-sm leading-5 font-normal focus:ring-control focus:outline-none focus-visible:ring-2 focus:ring-offset-2 relative"
>
- {{ $t("issue.upload-file") }}
+ {{ $t("issue.upload-sql") }}
<input
type="file"
accept=".sql,.txt,application/sql,text/plain"
@@ -59,7 +59,7 @@
</button>
<template v-if="state.editing">
<!-- mt-0.5 is to prevent jiggling between switching edit/none-edit -->
- <label class="mt-0.5 inline-flex items-center gap-1">
+ <label class="mt-0.5 mr-2 inline-flex items-center gap-1">
<input
v-model="formatOnSave"
type="checkbox"
@@ -72,7 +72,7 @@
type="button"
class="mt-0.5 px-3 border border-control-border rounded-sm text-control bg-control-bg hover:bg-control-bg-hover text-sm leading-5 font-normal focus:ring-control focus:outline-none focus-visible:ring-2 focus:ring-offset-2 relative"
>
- {{ $t("issue.upload-file") }}
+ {{ $t("issue.upload-sql") }}
<input
type="file"
accept=".sql,.txt,application/sql,text/plain"
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 5507e7a174..90bcc818ef 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -491,7 +491,7 @@
"action-to-current-stage": "{action} current stage",
"edit-sql-statement-in-vcs": "This project has enabled VCS based version control. Please modify the SQL file in the corresponding Git repository, and commit it to create a new issue.",
"edit-sql-statement": "Edit SQL statement",
- "upload-file": "Upload file",
+ "upload-sql": "Upload SQL",
"override-current-statement": "Override current SQL statement",
"upload-sql-file-max-size-exceeded": "Max file size ({size}) exceeded."
},
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 79d36080b2..0134b8afd9 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -492,7 +492,7 @@
"action-to-current-stage": "{action}当前阶段",
"edit-sql-statement-in-vcs": "该项目开启了基于 VCS 的版本管理。请在对应的 Git 仓库修改 SQL 文件并提交,开启新的工单。",
"edit-sql-statement": "编辑 SQL 语句",
- "upload-file": "上传文件",
+ "upload-sql": "上传 SQL",
"override-current-statement": "覆盖当前的 SQL 语句",
"upload-sql-file-max-size-exceeded": "上传文件大小不能超过 {size}。"
},