Skip to content

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

chore: rename (#12571)

Liu Ji7ce3896d6527
diff --git a/frontend/src/components/IssueV1/components/BatchIssueActionsV1.vue b/frontend/src/components/IssueV1/components/BatchIssueActionsV1.vue
index 4dbba1f8d2..a97aaf4762 100644
--- a/frontend/src/components/IssueV1/components/BatchIssueActionsV1.vue
+++ b/frontend/src/components/IssueV1/components/BatchIssueActionsV1.vue
@@ -20,18 +20,18 @@
</TooltipButton>
<TooltipButton
- :disabled="!isActionApplicableForAllIssues('CANCEL')"
+ :disabled="!isActionApplicableForAllIssues('CLOSE')"
tooltip-mode="DISABLED-ONLY"
- @click="startBatchIssueStatusAction('CANCEL')"
+ @click="startBatchIssueStatusAction('CLOSE')"
>
<template #default>
- {{ $t("issue.batch-transition.cancel") }}
+ {{ $t("issue.batch-transition.close") }}
</template>
<template #tooltip>
<div class="whitespace-nowrap">
{{
$t("issue.batch-transition.not-allowed-tips", {
- operation: $t("issue.batch-transition.cancelled"),
+ operation: $t("issue.batch-transition.closed"),
})
}}
</div>
diff --git a/frontend/src/components/IssueV1/components/Panel/BatchIssueStatusActionPanel.vue b/frontend/src/components/IssueV1/components/Panel/BatchIssueStatusActionPanel.vue
index 39c87e1dab..cdd0b67cdd 100644
--- a/frontend/src/components/IssueV1/components/Panel/BatchIssueStatusActionPanel.vue
+++ b/frontend/src/components/IssueV1/components/Panel/BatchIssueStatusActionPanel.vue
@@ -48,10 +48,10 @@
{{ $t("common.cancel") }}
</NButton>
<NButton
- v-bind="issueStatusActionButtonProps(action)"
+ v-bind="confirmButtonProps"
@click="handleConfirm(action, comment)"
>
- {{ issueStatusActionDisplayName(action) }}
+ {{ $t("common.confirm") }}
</NButton>
</div>
</template>
@@ -103,6 +103,15 @@ const title = computed(() => {
});
});
+const confirmButtonProps = computed(() => {
+ if (!props.action) return {};
+ const p = issueStatusActionButtonProps(props.action);
+ if (p.type === "default") {
+ p.type = "primary";
+ }
+ return p;
+});
+
const handleConfirm = async (
action: IssueStatusAction,
comment: string | undefined
diff --git a/frontend/src/components/IssueV1/components/Panel/IssueStatusActionPanel.vue b/frontend/src/components/IssueV1/components/Panel/IssueStatusActionPanel.vue
index 4149b705ae..44339e1edd 100644
--- a/frontend/src/components/IssueV1/components/Panel/IssueStatusActionPanel.vue
+++ b/frontend/src/components/IssueV1/components/Panel/IssueStatusActionPanel.vue
@@ -123,8 +123,8 @@ const title = computed(() => {
switch (action) {
case "RESOLVE":
return t("issue.status-transition.modal.resolve");
- case "CANCEL":
- return t("issue.status-transition.modal.cancel");
+ case "CLOSE":
+ return t("issue.status-transition.modal.close");
case "REOPEN":
return t("issue.status-transition.modal.reopen");
}
diff --git a/frontend/src/components/IssueV1/logic/action/issue.ts b/frontend/src/components/IssueV1/logic/action/issue.ts
index 785c82d69d..2dbc97fa58 100644
--- a/frontend/src/components/IssueV1/logic/action/issue.ts
+++ b/frontend/src/components/IssueV1/logic/action/issue.ts
@@ -16,13 +16,13 @@ import {
} from "@/utils";
import { isTaskFinished } from "..";
-export type IssueStatusAction = "RESOLVE" | "CANCEL" | "REOPEN";
+export type IssueStatusAction = "RESOLVE" | "CLOSE" | "REOPEN";
export const IssueStatusActionToIssueStatusMap: Record<
IssueStatusAction,
IssueStatus
> = {
- CANCEL: IssueStatus.CANCELED,
+ CLOSE: IssueStatus.CANCELED,
REOPEN: IssueStatus.OPEN,
RESOLVE: IssueStatus.DONE,
};
@@ -31,7 +31,7 @@ export const PossibleIssueStatusActionMap: Record<
IssueStatus,
IssueStatusAction[]
> = {
- [IssueStatus.OPEN]: ["RESOLVE", "CANCEL"],
+ [IssueStatus.OPEN]: ["RESOLVE", "CLOSE"],
[IssueStatus.DONE]: ["REOPEN"],
[IssueStatus.CANCELED]: ["REOPEN"],
@@ -76,8 +76,8 @@ export const issueStatusActionDisplayName = (action: IssueStatusAction) => {
switch (action) {
case "RESOLVE":
return t("issue.status-transition.dropdown.resolve");
- case "CANCEL":
- return t("issue.status-transition.dropdown.cancel");
+ case "CLOSE":
+ return t("issue.status-transition.dropdown.close");
case "REOPEN":
return t("issue.status-transition.dropdown.reopen");
}
@@ -91,7 +91,7 @@ export const issueStatusActionButtonProps = (
return {
type: "success",
};
- case "CANCEL":
+ case "CLOSE":
return {
type: "default",
};
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 113bd9fc1f..b4ad83539e 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -983,12 +983,14 @@
"cancel": "Cancel this entire issue?",
"reopen": "Reopen issue?",
"title": "{action} {type} [{name}]?",
- "action-to-stage": "{action} stage ({n} tasks)"
+ "action-to-stage": "{action} stage ({n} tasks)",
+ "close": "Close issue?"
},
"dropdown": {
"resolve": "Resolve issue",
"cancel": "Cancel issue",
- "reopen": "Reopen issue"
+ "reopen": "Reopen issue",
+ "close": "Close issue"
},
"form": {
"note": "Note",
@@ -1134,7 +1136,9 @@
"reopen": "Reopen",
"reopened": "reopened",
"action-n-issues": "{action} {n} issue | {action} {n} issues",
- "successfully-updated-n-issues": "Successfully updated {n} issue | Successfully updated {n} issues"
+ "successfully-updated-n-issues": "Successfully updated {n} issue | Successfully updated {n} issues",
+ "closed": "closed",
+ "close": "Close"
},
"sql-hint": {
"change-will-apply-to-all-tasks-in-tenant-mode": "The change will be applied to all tasks",
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index b61078969d..245e72e6a5 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -983,12 +983,14 @@
"cancel": "¿Cancelar todo el incidencia?",
"reopen": "¿Reabrir incidencia?",
"title": "{action} {type} [{name}]?",
- "action-to-stage": "{action} etapa ({n} tareas)"
+ "action-to-stage": "{action} etapa ({n} tareas)",
+ "close": "¿Cerrar el problema?"
},
"dropdown": {
"resolve": "Resolver incidencia",
"cancel": "Cancelar incidencia",
- "reopen": "Reabrir incidencia"
+ "reopen": "Reabrir incidencia",
+ "close": "Cerrar problema"
},
"form": {
"note": "Nota",
@@ -1134,7 +1136,9 @@
"reopen": "Reabrir",
"reopened": "reabierto",
"action-n-issues": "{action} {n} incidencia | {action} {n} incidencias",
- "successfully-updated-n-issues": "Incidencia actualizada correctamente {n} | Incidencias actualizadas correctamente {n}"
+ "successfully-updated-n-issues": "Incidencia actualizada correctamente {n} | Incidencias actualizadas correctamente {n}",
+ "closed": "cerrado",
+ "close": "Cerca"
},
"sql-hint": {
"change-will-apply-to-all-tasks-in-tenant-mode": "El cambio se aplicará a todas las tareas",
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index d78742ec0b..fbcefba787 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -983,12 +983,14 @@
"cancel": "作業指示全体をキャンセルしますか?",
"reopen": "作業指示を再開しますか?",
"title": "{action}{type} [{name}]?",
- "action-to-stage": "{action} ステージ ({n} 個のタスク)"
+ "action-to-stage": "{action} ステージ ({n} 個のタスク)",
+ "close": "問題を閉じますか?"
},
"dropdown": {
"resolve": "作業指示を完了する",
"cancel": "作業指示をキャンセルする",
- "reopen": "再開"
+ "reopen": "再開",
+ "close": "問題を閉じる"
},
"form": {
"note": "ノート",
@@ -1134,7 +1136,9 @@
"reopen": "再開",
"reopened": "再開",
"action-n-issues": "{action} {n} 枚のチケット",
- "successfully-updated-n-issues": "{n} 個のチケットが正常に更新されました"
+ "successfully-updated-n-issues": "{n} 個のチケットが正常に更新されました",
+ "closed": "閉まっている",
+ "close": "近い"
},
"sql-hint": {
"change-will-apply-to-all-tasks-in-tenant-mode": "変更は他のすべてのタスクに適用されます",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index c9859e791c..34a1faefe5 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -983,12 +983,14 @@
"cancel": "取消整个工单?",
"reopen": "重开工单?",
"title": "{action}{type} [{name}]?",
- "action-to-stage": "{action}阶段({n}个任务)"
+ "action-to-stage": "{action}阶段({n}个任务)",
+ "close": "关闭工单?"
},
"dropdown": {
"resolve": "完成工单",
"cancel": "取消工单",
- "reopen": "重开"
+ "reopen": "重开",
+ "close": "关闭工单"
},
"form": {
"note": "笔记",
@@ -1134,7 +1136,9 @@
"reopen": "重开",
"reopened": "重开",
"action-n-issues": "{action} {n} 个工单",
- "successfully-updated-n-issues": "成功更新 {n} 个工单"
+ "successfully-updated-n-issues": "成功更新 {n} 个工单",
+ "closed": "关闭",
+ "close": "关闭"
},
"sql-hint": {
"change-will-apply-to-all-tasks-in-tenant-mode": "改动将会应用到其他所有任务",