Skip to content

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

chore(frontend): issue sidebar tooltip improvements (#10465)

Liu Ji0aacc90e9172
diff --git a/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/PreBackupSection.vue b/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/PreBackupSection.vue
index 6e81842ebf..ac515a03f2 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/PreBackupSection.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/PreBackupSection.vue
@@ -3,10 +3,19 @@
v-if="showPreBackupSection"
class="flex items-center justify-between gap-x-2 min-h-[34px] whitespace-nowrap"
>
- <div class="textlabel flex items-center">
- {{ $t("task.prior-backup") }}
- <BBBetaBadge class="scale-75" />
- </div>
+ <NTooltip>
+ <template #trigger>
+ <div class="textlabel flex items-center">
+ {{ $t("task.prior-backup") }}
+ <BBBetaBadge class="scale-75" />
+ </div>
+ </template>
+ <template #default>
+ <div class="max-w-[20rem]">
+ {{ $t("task.prior-backup-tips") }}
+ </div>
+ </template>
+ </NTooltip>
<div class="flex items-center gap-x-2">
<PreBackupSwitch />
</div>
@@ -14,6 +23,7 @@
</template>
<script lang="ts" setup>
+import { NTooltip } from "naive-ui";
import { BBBetaBadge } from "@/bbkit";
import PreBackupSwitch from "./PreBackupSwitch.vue";
import { usePreBackupContext } from "./common";
diff --git a/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/ReviewSection.vue b/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/ReviewSection.vue
index e347678fa2..595da24e49 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/ReviewSection.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/ReviewSection.vue
@@ -1,10 +1,16 @@
<template>
<div v-if="!isCreating" class="flex flex-col gap-y-1">
- <NTooltip :disabled="!showApprovalTooltip">
+ <NTooltip
+ :disabled="!showApprovalTooltip"
+ placement="bottom"
+ :show-arrow="false"
+ >
<template #trigger>
- <div class="textlabel flex items-center gap-x-1">
- {{ $t("issue.approval-flow.self") }}
- <FeatureBadge feature="bb.feature.custom-approval" />
+ <div>
+ <div class="textlabel flex items-center gap-x-1">
+ {{ $t("issue.approval-flow.self") }}
+ <FeatureBadge feature="bb.feature.custom-approval" />
+ </div>
</div>
</template>
<template #default>
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 16910db1b6..664dfe1525 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -398,7 +398,8 @@
},
"show-default-parameters": "Show default parameters",
"hide-default-parameters": "Hide default parameters"
- }
+ },
+ "prior-backup-tips": "Back up affected data ahead of time"
},
"task-run": {
"status": {
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index bdb9104e3b..9a4ed82ff9 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -398,7 +398,8 @@
},
"show-default-parameters": "Mostrar parámetros predeterminados",
"hide-default-parameters": "Ocultar parámetros predeterminados"
- }
+ },
+ "prior-backup-tips": "Haga una copia de seguridad de los datos afectados con anticipación"
},
"task-run": {
"status": {
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index cf77f31427..9566a6dc37 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -397,7 +397,8 @@
},
"show-default-parameters": "デフォルトのパラメータを表示する",
"hide-default-parameters": "デフォルトパラメータを非表示にする"
- }
+ },
+ "prior-backup-tips": "影響を受けるデータを事前にバックアップする"
},
"task-run": {
"status": {
diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.json
index 7149172a3d..b325578306 100644
--- a/frontend/src/locales/vi-VN.json
+++ b/frontend/src/locales/vi-VN.json
@@ -398,7 +398,8 @@
},
"show-default-parameters": "Hiển thị thông số mặc định",
"hide-default-parameters": "Ẩn thông số mặc định"
- }
+ },
+ "prior-backup-tips": "Sao lưu trước dữ liệu bị ảnh hưởng"
},
"task-run": {
"status": {
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 2409b66d24..e6279dd184 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -396,7 +396,8 @@
},
"show-default-parameters": "显示默认参数",
"hide-default-parameters": "隐藏默认参数"
- }
+ },
+ "prior-backup-tips": "提前备份受影响的数据"
},
"task-run": {
"status": {