Skip to content

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

chore: improve gitops webhook url help (#8557)

Tianzhou (天舟)1d68031efd83
diff --git a/frontend/src/components/GeneralSetting/NetworkSetting.vue b/frontend/src/components/GeneralSetting/NetworkSetting.vue
index 9b3566f1f0..9b58a5f6ef 100644
--- a/frontend/src/components/GeneralSetting/NetworkSetting.vue
+++ b/frontend/src/components/GeneralSetting/NetworkSetting.vue
@@ -26,16 +26,10 @@
</span>
</label>
<div class="mb-3 text-sm text-gray-400">
- <i18n-t keypath="settings.general.workspace.external-url.description">
- <template #viewDoc>
- <a
- href="https://www.bytebase.com/docs/get-started/install/external-url"
- class="normal-link"
- target="_blank"
- >{{ $t("common.view-doc") }}</a
- >
- </template>
- </i18n-t>
+ {{ $t("settings.general.workspace.external-url.description") }}
+ <LearnMoreLink
+ url="https://www.bytebase.com/docs/get-started/install/external-url?source=console"
+ />
</div>
<BBTextField
class="mb-4 w-full"
@@ -60,13 +54,18 @@
</span>
</label>
<div class="mb-3 text-sm text-gray-400">
- <i18n-t
- keypath="settings.general.workspace.gitops-webhook-url.description"
- >
- </i18n-t>
+ {{ $t("settings.general.workspace.gitops-webhook-url.description") }}
+ <LearnMoreLink
+ url="https://www.bytebase.com/docs/get-started/install/external-url#gitops-webhook-url?source=console"
+ />
</div>
<BBTextField
class="mb-4 w-full"
+ :placeholder="
+ t(
+ 'settings.general.workspace.gitops-webhook-url.default-to-external-url'
+ )
+ "
:disabled="!allowEdit"
:value="state.gitopsWebhookUrl"
@input="handleGitOpsWebhookUrlChange"
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 07bb2ac20f..4d224eca72 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -570,11 +570,12 @@
"network": "Network",
"external-url": {
"self": "External URL",
- "description": "The external URL where user visits Bytebase, must start with http:// or https://. {viewDoc}"
+ "description": "The external URL where user visits Bytebase, must start with http:// or https://."
},
"gitops-webhook-url": {
"self": "GitOps Webhook URL",
- "description": "The URL used for sending GitOps webhooks to the Bytebase instance."
+ "description": "The URL used for sending GitOps webhooks to the Bytebase instance.",
+ "default-to-external-url": "Default to External URL"
},
"sign-in-frequency": {
"self": "Sign-in frequency",
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index 74e618c4b6..80aef645a8 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -568,8 +568,8 @@
},
"network": "Red",
"external-url": {
- "self": "URL externa",
- "description": "La URL externa donde el usuario visita Bytebase, debe comenzar con http:// o https://. {viewDoc}"
+ "self": "URL Externa",
+ "description": "La URL externa donde el usuario visita Bytebase, debe comenzar con http:// o https://."
},
"config-updated": "La configuración se ha actualizado.",
"plugin": {
@@ -611,7 +611,8 @@
},
"gitops-webhook-url": {
"self": "URL del webhook GitOps",
- "description": "La URL utilizada para enviar webhooks de GitOps a la instancia de Bytebase."
+ "description": "La URL utilizada para enviar webhooks de GitOps a la instancia de Bytebase.",
+ "default-to-external-url": "Predeterminado a URL Externa"
},
"sign-in-frequency": {
"self": "Frecuencia de inicio de sesión",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 79fd6bd188..4ba59ae478 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -568,11 +568,12 @@
"network": "网络",
"external-url": {
"self": "External URL",
- "description": "用户或回调能访问到的 Bytebase URL,必须以 http:// 或 https:// 开头。{viewDoc}"
+ "description": "用户或回调能访问到的 Bytebase URL,必须以 http:// 或 https:// 开头。"
},
"gitops-webhook-url": {
"self": "GitOps Webhook URL",
- "description": "用于 GitOps 中第三方服务向 Bytebase 发送 Webhook 的 URL。"
+ "description": "用于 GitOps 中第三方服务向 Bytebase 发送 Webhook 的 URL。",
+ "default-to-external-url": "默认值是 External URL"
},
"sign-in-frequency": {
"self": "登录频率",