Skip to content

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

feat: better expose risk level and custom approval (#5606)

Tianzhou (天舟)90e3c848fb3c
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 6ce0da7bc6..b7a6084d9a 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -2235,7 +2235,8 @@
},
"risk": {
"self": "Risk",
- "risk-center": "Risk Center"
+ "risk-center": "Risk Center",
+ "description": "Risk Center defines the risk levels for different database operations under different conditions. And risk levels determine the corresponding custom approval flows."
},
"workflow-center": {
"workflow": "Workflow"
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 72e52f4829..b43724cf62 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -2232,7 +2232,8 @@
},
"risk": {
"self": "风险",
- "risk-center": "风险中心"
+ "risk-center": "风险中心",
+ "description": "风险中心定义了不同数据库操作在不同条件下的风险等级。而风险等级则会决定工单的自定义审批流程。"
},
"workflow-center": {
"workflow": "工作流"
diff --git a/frontend/src/views/SettingWorkspaceCustomApproval.vue b/frontend/src/views/SettingWorkspaceCustomApproval.vue
index 7752ab44c6..cb71a59984 100644
--- a/frontend/src/views/SettingWorkspaceCustomApproval.vue
+++ b/frontend/src/views/SettingWorkspaceCustomApproval.vue
@@ -1,5 +1,11 @@
<template>
<div class="w-full mt-4 space-y-4 text-sm">
+ <FeatureAttention
+ v-if="!hasCustomApprovalFeature"
+ feature="bb.feature.custom-approval"
+ :description="$t('subscription.features.bb-feature-custom-approval.desc')"
+ />
+
<CustomApproval v-if="state.ready" />
<div v-else class="w-full py-[4rem] flex justify-center items-center">
<BBSpin />
diff --git a/frontend/src/views/SettingWorkspaceRiskCenter.vue b/frontend/src/views/SettingWorkspaceRiskCenter.vue
index 4854ce8d2a..4a827ccfa2 100644
--- a/frontend/src/views/SettingWorkspaceRiskCenter.vue
+++ b/frontend/src/views/SettingWorkspaceRiskCenter.vue
@@ -1,11 +1,17 @@
<template>
- <div class="w-full mt-4 space-y-4 text-sm">
- <FeatureAttention
- v-if="!hasCustomApprovalFeature"
- feature="bb.feature.custom-approval"
- :description="$t('subscription.features.bb-feature-custom-approval.desc')"
- />
+ <div class="textinfolabel">
+ {{ $t("custom-approval.risk.description") }}
+ <a
+ href="https://www.bytebase.com/docs/administration/risk-center"
+ target="_blank"
+ class="normal-link inline-flex flex-row items-center"
+ >
+ {{ $t("common.learn-more") }}
+ <heroicons-outline:external-link class="w-4 h-4" />
+ </a>
+ </div>
+ <div class="w-full mt-4 space-y-4 text-sm">
<RiskCenter v-if="state.ready" />
<div v-else class="w-full py-[4rem] flex justify-center items-center">
<BBSpin />