Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: add troubleshoot link to project GitOps panel (#8974)
Tianzhou (天舟)bf02ed3f77f8
diff --git a/frontend/src/components/RepositoryPanel.vue b/frontend/src/components/RepositoryPanel.vueindex b99722d945..c12febb1ef 100644--- a/frontend/src/components/RepositoryPanel.vue+++ b/frontend/src/components/RepositoryPanel.vue@@ -1,10 +1,15 @@<template>- <div class="text-lg leading-6 font-medium text-main">- <i18n-t keypath="repository.gitops-status">- <template #status>- <span class="text-success"> {{ $t("common.enabled") }} </span>- </template>- </i18n-t>+ <div class="flex justify-between">+ <div class="text-lg leading-6 font-medium text-main">+ <i18n-t keypath="repository.gitops-status">+ <template #status>+ <span class="text-success"> {{ $t("common.enabled") }} </span>+ </template>+ </i18n-t>+ </div>+ <TroubleshootLink+ url="https://www.bytebase.com/docs/vcs-integration/troubleshoot/?source=console"+ /></div><div class="mt-2 textinfolabel"><template v-if="isProjectSchemaChangeTypeDDL">diff --git a/frontend/src/components/TroubleshootLink.vue b/frontend/src/components/TroubleshootLink.vuenew file mode 100644index 0000000000..e3d73c7f48--- /dev/null+++ b/frontend/src/components/TroubleshootLink.vue@@ -0,0 +1,25 @@+<template>+ <a+ class="inline-flex items-center"+ :class="[color === 'normal' ? 'normal-link' : 'light-link']"+ :href="url"+ target="__BLANK"+ >+ 🐞 {{ $t("common.troubleshoot") }}+ </a>+</template>++<script lang="ts" setup>+import { PropType } from "vue";++defineProps({+ url: {+ type: String,+ required: true,+ },+ color: {+ type: String as PropType<"normal" | "light">,+ default: "normal",+ },+});+</script>diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 676ce0f09f..d429ba813c 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -140,6 +140,7 @@"confirm": "Confirm","coming-later": "Coming later","learn-more": "Learn more",+ "troubleshoot": "Troubleshoot","schema-version": "Schema version","time": "Time","manual": "Manual",diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 283feb78e0..2208f51dbc 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -140,6 +140,7 @@"confirm": "Confirmar","coming-later": "Disponible más tarde","learn-more": "Aprender más",+ "troubleshoot": "Solucionar problemas","schema-version": "Versión de esquema","time": "Tiempo","manual": "Manual",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 45e51c014e..7cd28d0248 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -140,6 +140,7 @@"confirm": "确认","coming-later": "敬请期待","learn-more": "了解更多",+ "troubleshoot": "排查问题","schema-version": "Schema 版本","time": "时间","manual": "手动",