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: frontend update (#11418)
ecmadao2aea9e1dfbb4
diff --git a/frontend/src/components/CustomApproval/Settings/components/CustomApproval/ExternalApprovalNodesPanel/Toolbar.vue b/frontend/src/components/CustomApproval/Settings/components/CustomApproval/ExternalApprovalNodesPanel/Toolbar.vueindex de554bcacf..67283877ba 100644--- a/frontend/src/components/CustomApproval/Settings/components/CustomApproval/ExternalApprovalNodesPanel/Toolbar.vue+++ b/frontend/src/components/CustomApproval/Settings/components/CustomApproval/ExternalApprovalNodesPanel/Toolbar.vue@@ -1,6 +1,10 @@<template><div class="flex items-center gap-x-2"><NButton type="primary" :disabled="!allowAdmin" @click="createNode">+ <FeatureBadge+ feature="bb.feature.custom-approval"+ custom-class="mr-1 text-white"+ />{{ $t("common.create") }}</NButton></div>diff --git a/frontend/src/components/CustomApproval/Settings/components/CustomApproval/FlowsPanel/Toolbar.vue b/frontend/src/components/CustomApproval/Settings/components/CustomApproval/FlowsPanel/Toolbar.vueindex a5bf7b57a4..640aeba9ba 100644--- a/frontend/src/components/CustomApproval/Settings/components/CustomApproval/FlowsPanel/Toolbar.vue+++ b/frontend/src/components/CustomApproval/Settings/components/CustomApproval/FlowsPanel/Toolbar.vue@@ -1,6 +1,10 @@<template><div class="flex items-center gap-x-2"><NButton type="primary" :disabled="!allowAdmin" @click="createRule">+ <FeatureBadge+ feature="bb.feature.custom-approval"+ custom-class="mr-1 text-white"+ />{{ $t("common.create") }}</NButton></div>diff --git a/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue b/frontend/src/components/GeneralSetting/AIAugmentationSetting.vueindex be95a6898a..153c1739c5 100644--- a/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue+++ b/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue@@ -85,6 +85,10 @@:disabled="!allowEdit || !allowSave"@click.prevent="updateOpenAIKeyEndpoint">+ <FeatureBadge+ feature="bb.feature.plugin.openai"+ custom-class="mr-1 text-white pointer-events-none"+ />{{ $t("common.update") }}</NButton></div>diff --git a/frontend/src/components/GeneralSetting/AnnouncementSetting.vue b/frontend/src/components/GeneralSetting/AnnouncementSetting.vueindex a28050f665..9047383b5c 100644--- a/frontend/src/components/GeneralSetting/AnnouncementSetting.vue+++ b/frontend/src/components/GeneralSetting/AnnouncementSetting.vue@@ -100,6 +100,10 @@:disabled="!allowEdit || !allowSave"@click.prevent="updateAnnouncementSetting">+ <FeatureBadge+ feature="bb.feature.announcement"+ custom-class="mr-1 text-white pointer-events-none"+ />{{ $t("common.update") }}</NButton></div>diff --git a/frontend/src/components/GeneralSetting/BrandingSetting.vue b/frontend/src/components/GeneralSetting/BrandingSetting.vueindex c37d6e2b46..96abc6d44e 100644--- a/frontend/src/components/GeneralSetting/BrandingSetting.vue+++ b/frontend/src/components/GeneralSetting/BrandingSetting.vue@@ -122,7 +122,7 @@><FeatureBadgefeature="bb.feature.branding"- custom-class="text-white pointer-events-none"+ custom-class="mr-1 text-white pointer-events-none"/>{{ $t("common.update") }}</NButton>diff --git a/frontend/src/components/IdentityProviderCreateForm.vue b/frontend/src/components/IdentityProviderCreateForm.vueindex 0b67956392..1d0a77afd9 100644--- a/frontend/src/components/IdentityProviderCreateForm.vue+++ b/frontend/src/components/IdentityProviderCreateForm.vue@@ -97,6 +97,7 @@resource-type="idp":readonly="!isCreating":value="resourceId"+ :suffix="true":resource-title="identityProvider.title":validate="validateResourceId"/>@@ -607,7 +608,7 @@</div><div- class="mt-4 space-x-4 w-full flex flex-row justify-between items-center"+ class="mt-6 pt-4 border-t space-x-4 w-full flex flex-row justify-between items-center"><div class="space-x-4 flex flex-row justify-start items-center"><template v-if="!isCreating">diff --git a/frontend/src/components/Project/ProjectGeneralSettingPanel.vue b/frontend/src/components/Project/ProjectGeneralSettingPanel.vueindex 6f24d26e80..20c630bb96 100644--- a/frontend/src/components/Project/ProjectGeneralSettingPanel.vue+++ b/frontend/src/components/Project/ProjectGeneralSettingPanel.vue@@ -3,7 +3,7 @@<p class="text-lg font-medium leading-7 text-main">{{ $t("common.general") }}</p>- <div class="flex justify-start items-start gap-12">+ <div class="flex justify-start items-start gap-6"><dl class=""><dt class="text-sm font-medium text-control-light">{{ $t("common.name") }} <span class="text-red-600">*</span>diff --git a/frontend/src/components/ProjectWebhookForm.vue b/frontend/src/components/ProjectWebhookForm.vueindex 99499d24e7..281e5c3ec4 100644--- a/frontend/src/components/ProjectWebhookForm.vue+++ b/frontend/src/components/ProjectWebhookForm.vue@@ -1,5 +1,5 @@<template>- <div class="space-y-4">+ <div class="flex flex-col gap-y-4"><div v-if="create"><div><label for="name" class="textlabel">@@ -208,11 +208,13 @@</div></div></div>- <NButton @click.prevent="testWebhook">- {{ $t("project.webhook.test-webhook") }}- </NButton>+ <div>+ <NButton @click.prevent="testWebhook">+ {{ $t("project.webhook.test-webhook") }}+ </NButton>+ </div><div- class="flex pt-5"+ class="flex mt-2 pt-4 border-t":class="!create && allowEdit ? 'justify-between' : 'justify-end'"><BBButtonConfirmdiff --git a/frontend/src/components/RepositoryPanel.vue b/frontend/src/components/RepositoryPanel.vueindex 9153a143b5..5b5062cc20 100644--- a/frontend/src/components/RepositoryPanel.vue+++ b/frontend/src/components/RepositoryPanel.vue@@ -36,7 +36,7 @@/><divv-if="allowEdit || allowDelete"- class="mt-4 pt-4 flex border-t justify-between"+ class="mt-6 pt-4 flex border-t justify-between"><BBButtonConfirmv-if="allowDelete"@@ -60,11 +60,6 @@</NButton></div></div>- <FeatureModal- feature="bb.feature.vcs-sql-review"- :open="state.showFeatureModal"- @cancel="state.showFeatureModal = false"- /></template><script lang="ts" setup>@@ -80,7 +75,6 @@ import type { ExternalRepositoryInfo, RepositoryConfig } from "../types";interface LocalState {repositoryConfig: RepositoryConfig;- showFeatureModal: boolean;processing: boolean;}@@ -106,7 +100,6 @@ const state = reactive<LocalState>({baseDirectory: "",branch: "",},- showFeatureModal: false,processing: false,});diff --git a/frontend/src/components/RepositorySelectionPanel.vue b/frontend/src/components/RepositorySelectionPanel.vueindex 06e3cf21d1..4047195391 100644--- a/frontend/src/components/RepositorySelectionPanel.vue+++ b/frontend/src/components/RepositorySelectionPanel.vue@@ -2,9 +2,16 @@<BBAttention type="warning" :description="attentionText" /><div class="mt-4 space-y-2"><div class="flex justify-between items-center">- <button class="btn-icon" @click.prevent="refreshRepositoryList">- <heroicons-outline:refresh class="w-6 h-6" />- </button>+ <BBSpin v-if="state.loading" :size="20" />+ <NButton+ v-else+ quaternary+ circle+ :loading="state.loading"+ @click.prevent="refreshRepositoryList"+ >+ <RefreshCwIcon class="w-5 h-5" />+ </NButton><SearchBoxv-model:value="state.searchText":placeholder="$t('repository.select-repository-search')"@@ -20,14 +27,11 @@class="block hover:bg-control-bg-hover cursor-pointer"@click.prevent="selectRepository(repository)">- <div class="flex items-center px-4 py-3">+ <div class="flex items-center px-3 py-2"><div class="min-w-0 flex-1 flex items-center">{{ repository.fullpath }}</div>- <div>- <!-- Heroicon name: solid/chevron-right -->- <heroicons-solid:chevron-right class="h-5 w-5 text-control" />- </div>+ <ChevronRightIcon class="h-5 w-5 text-control" /></div></li></ul>@@ -35,14 +39,12 @@</div></template>-<script lang="ts">-export default { name: "RepositorySelectionPanel" };-</script>-<script setup lang="ts">+import { RefreshCwIcon, ChevronRightIcon } from "lucide-vue-next";import { reactive, computed, onMounted } from "vue";-import type { ExternalRepositoryInfo, ProjectRepositoryConfig } from "@/types";+import BBSpin from "@/bbkit/BBSpin.vue";import { pushNotification, useCurrentUserV1, useVCSV1Store } from "@/store";+import type { ExternalRepositoryInfo, ProjectRepositoryConfig } from "@/types";import type { SearchVCSProviderProjectsResponse_Project } from "@/types/proto/v1/vcs_provider_service";import { VCSProvider_Type } from "@/types/proto/v1/vcs_provider_service";import { hasWorkspacePermissionV2 } from "@/utils";@@ -50,6 +52,7 @@ import { hasWorkspacePermissionV2 } from "@/utils";interface LocalState {repositoryList: SearchVCSProviderProjectsResponse_Project[];searchText: string;+ loading: boolean;}const props = defineProps<{ config: ProjectRepositoryConfig }>();@@ -64,15 +67,12 @@ const vcsV1Store = useVCSV1Store();const state = reactive<LocalState>({repositoryList: [],searchText: "",+ loading: true,});onMounted(() => {- prepareRepositoryList();-});--const prepareRepositoryList = () => {refreshRepositoryList();-};+});const refreshRepositoryList = async () => {if (@@ -89,10 +89,12 @@ const refreshRepositoryList = async () => {return;}+ state.loading = true;const projects = await vcsV1Store.listVCSExternalProjects(props.config.vcs.name);state.repositoryList = projects;+ state.loading = false;};const repositoryList = computed(() => {diff --git a/frontend/src/components/Role/Setting/RoleSetting.vue b/frontend/src/components/Role/Setting/RoleSetting.vueindex cfc0ba9c3f..71c058634f 100644--- a/frontend/src/components/Role/Setting/RoleSetting.vue+++ b/frontend/src/components/Role/Setting/RoleSetting.vue@@ -18,6 +18,10 @@:disabled="!allowCreateRole"@click="addRole">+ <FeatureBadge+ feature="bb.feature.custom-role"+ custom-class="mr-1 text-white"+ />{{ $t("role.setting.add") }}</NButton></div>diff --git a/frontend/src/components/Role/Setting/components/RolePanel.vue b/frontend/src/components/Role/Setting/components/RolePanel.vueindex e031b45c59..5d43eedb87 100644--- a/frontend/src/components/Role/Setting/components/RolePanel.vue+++ b/frontend/src/components/Role/Setting/components/RolePanel.vue@@ -84,6 +84,10 @@<div class="flex items-center justify-end gap-x-2"><NButton @click="$emit('close')">{{ $t("common.cancel") }}</NButton><NButton type="primary" :disabled="!allowSave" @click="handleSave">+ <FeatureBadge+ feature="bb.feature.custom-role"+ custom-class="mr-1 text-white"+ />{{ mode === "ADD" ? $t("common.add") : $t("common.update") }}</NButton></div>diff --git a/frontend/src/components/VCS/VCSProviderBasicInfoPanel.vue b/frontend/src/components/VCS/VCSProviderBasicInfoPanel.vueindex 9a5358ecee..9e1ca35728 100644--- a/frontend/src/components/VCS/VCSProviderBasicInfoPanel.vue+++ b/frontend/src/components/VCS/VCSProviderBasicInfoPanel.vue@@ -46,6 +46,7 @@class="max-w-full flex-nowrap mt-1.5"editing-class="mt-4"resource-type="vcs-provider"+ :suffix="true":resource-title="config.name":validate="validateResourceId"/>diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex e8b54a6f41..4710a0263a 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -2411,7 +2411,7 @@"request-with-qr": "Scan QR code","successfully-start-trial": "Successfully start free trial for {days} days","successfully-upgrade-trial": "Successfully upgrade free trial to {plan}",- "require-subscription": "This feature requires {requiredPlan} subscription, please purchase Bytebase license to unlock this feature.",+ "require-subscription": "This feature requires {requiredPlan} subscription, please purchase Bytebase license to unlock it.","feature-require-subscription": "{feature} requires {requiredPlan} subscription.","required-plan-with-trial": "This feature requires {requiredPlan}. {startTrial}","trial-for-plan": "You can start a free trial for {plan} with {days} days - no credit card required.",diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 10b62b8b87..4ab8a22d66 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -2411,7 +2411,7 @@"request-with-qr": "Escanear código QR","successfully-start-trial": "Prueba gratuita iniciada con éxito por {days} días","successfully-upgrade-trial": "Prueba gratuita actualizada con éxito a {plan}",- "require-subscription": "Esta función requiere una suscripción a {requiredPlan}. Compre una licencia de Bytebase para desbloquear esta función.",+ "require-subscription": "Esta función requiere una suscripción a {requiredPlan}. Compre una licencia de Bytebase para desbloquearla.","feature-require-subscription": "{feature} requiere suscripción a {requiredPlan}.","required-plan-with-trial": "Esta función requiere {requiredPlan}. {startTrial}","trial-for-plan": "Puedes iniciar una prueba gratuita de {plan} por {days} días - no se requiere tarjeta de crédito.",diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 52263c9733..64ef3b6ebb 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -2411,7 +2411,7 @@"request-with-qr": "QRコードをスキャン","successfully-start-trial": "{days}日間の無料トライアルが正常に開始されました","successfully-upgrade-trial": "無料トライアルを{plan}に正常にアップグレードしました",- "require-subscription": "この機能には{requiredPlan}のサブスクリプションが必要です。Bytebaseライセンスを購入してこの機能をアンロックしてください。",+ "require-subscription": "この機能には {requiredPlan} のサブスクリプションが必要です。ロックを解除するには Bytebase ライセンスを購入してください。","feature-require-subscription": "{feature}には{requiredPlan}のサブスクリプションが必要です。","required-plan-with-trial": "この機能には{requiredPlan}が必要です。{startTrial}","trial-for-plan": "{days}日間の無料トライアルを開始できます - クレジットカード不要です。",diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex 88cda55d59..57c218acea 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -2411,7 +2411,7 @@"request-with-qr": "Quét mã QR","successfully-start-trial": "Bắt đầu dùng thử miễn phí thành công trong {days} ngày","successfully-upgrade-trial": "Nâng cấp thành công bản dùng thử miễn phí lên {plan}",- "require-subscription": "Tính năng này yêu cầu đăng ký {requiredPlan}, vui lòng mua giấy phép Bytebase để mở khóa tính năng này.",+ "require-subscription": "Tính năng này yêu cầu đăng ký {requiredPlan}, vui lòng mua giấy phép Bytebase để mở khóa.","feature-require-subscription": "{feature} yêu cầu đăng ký {requiredPlan}.","required-plan-with-trial": "Tính năng này yêu cầu {requiredPlan}. {startTrial}","trial-for-plan": "Bạn có thể bắt đầu dùng thử miễn phí {plan} trong {days} ngày - không cần thẻ tín dụng.",diff --git a/frontend/src/types/plan.ts b/frontend/src/types/plan.tsindex 9752b3d366..d4be03a1af 100644--- a/frontend/src/types/plan.ts+++ b/frontend/src/types/plan.ts@@ -24,7 +24,6 @@ export type FeatureType =| "bb.feature.branding"// Change Workflow| "bb.feature.dba-workflow"- | "bb.feature.lgtm"| "bb.feature.im.approval"| "bb.feature.multi-tenancy"| "bb.feature.online-migration"@@ -35,10 +34,7 @@ export type FeatureType =| "bb.feature.encrypted-secrets"| "bb.feature.database-grouping"| "bb.feature.schema-template"- // VCS Integration- | "bb.feature.vcs-sql-review"// Database management- | "bb.feature.pitr"| "bb.feature.read-replica-connection"| "bb.feature.custom-instance-scan-interval"| "bb.feature.instance-ssh-connection"@@ -69,7 +65,6 @@ export const instanceLimitFeature = new Set<FeatureType>(["bb.feature.task-schedule-time","bb.feature.online-migration",// Database Management- "bb.feature.pitr","bb.feature.read-replica-connection","bb.feature.instance-ssh-connection","bb.feature.custom-instance-scan-interval",@@ -80,7 +75,6 @@ export const instanceLimitFeature = new Set<FeatureType>(["bb.feature.sensitive-data","bb.feature.custom-approval",// VCS Integration- "bb.feature.vcs-sql-review","bb.feature.mybatis-sql-review",]);diff --git a/frontend/src/views/SettingWorkspaceMailDelivery.vue b/frontend/src/views/SettingWorkspaceMailDelivery.vueindex f586250cf6..56df52d6f0 100644--- a/frontend/src/views/SettingWorkspaceMailDelivery.vue+++ b/frontend/src/views/SettingWorkspaceMailDelivery.vue@@ -11,7 +11,7 @@<heroicons-outline:external-link class="w-4 h-4 ml-1" /></a></div>- <div class="w-full flex flex-col">+ <div class="w-full flex flex-col gap-y-6"><!-- Host and Port --><div class="w-full flex flex-row gap-4"><div class="min-w-max w-80">@@ -46,7 +46,7 @@/></div></div>- <div class="w-full flex flex-row gap-4 mt-8">+ <div class="w-full flex flex-row gap-4"><div class="min-w-max w-80"><div class="textlabel pl-1">{{ $t("settings.mail-delivery.field.from") }}@@ -60,7 +60,7 @@</div></div><!-- Authentication Related -->- <div class="w-full gap-4 mt-8">+ <div class="w-full gap-4"><div class="min-w-max w-80"><div class="textlabel pl-1">{{ $t("settings.mail-delivery.field.authentication-method") }}@@ -82,7 +82,7 @@SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_NONE">- <div class="w-full flex flex-row gap-4 mt-4">+ <div class="w-full flex flex-row gap-4"><div class="min-w-max w-80"><div class="flex flex-row"><label class="textlabel pl-1">@@ -118,7 +118,7 @@</div></template><!-- Encryption Related -->- <div class="w-full gap-4 mt-8">+ <div class="w-full gap-4"><div class="min-w-max w-80"><div class="textlabel pl-1">{{ $t("settings.mail-delivery.field.encryption") }}@@ -133,25 +133,8 @@/></div></div>- <div class="flex flex-row w-full">- <div class="w-auto gap-4 mt-8 flex flex-row">- <NButton- type="primary"- :disabled="- !allowMailDeliveryActionButton ||- state.isSendLoading ||- state.isCreateOrUpdateLoading- "- @click.prevent="updateMailDeliverySetting"- >- {{ mailDeliverySettingButtonText }}- </NButton>- <BBSpin v-if="state.isCreateOrUpdateLoading" class="ml-1" />- </div>- </div>- <div class="border-b mt-4"></div><!-- Test Send Email To Someone -->- <div class="w-full gap-4 mt-4 flex flex-row">+ <div class="w-full gap-4 flex flex-row"><div class="min-w-max w-160"><div class="textlabel pl-1">{{ $t("settings.mail-delivery.field.send-test-email-to") }}@@ -165,10 +148,9 @@<NButtontype="primary":disabled="- state.testMailTo === '' ||- state.isSendLoading ||- state.isCreateOrUpdateLoading+ state.testMailTo === '' || state.isCreateOrUpdateLoading"+ :loading="state.isSendLoading"@click.prevent="testMailDeliverySetting">{{ $t("settings.mail-delivery.field.send") }}@@ -177,12 +159,22 @@</div></div></div>+ <div class="flex border-t pt-4 flex-row w-full justify-end">+ <NButton+ type="primary"+ :disabled="!allowMailDeliveryActionButton || state.isSendLoading"+ :loading="state.isCreateOrUpdateLoading"+ @click.prevent="updateMailDeliverySetting"+ >+ {{ mailDeliverySettingButtonText }}+ </NButton>+ </div></div></div></template><script lang="ts" setup>-import { cloneDeep, isEqual } from "lodash-es";+import { cloneDeep } from "lodash-es";import type { SelectOption } from "naive-ui";import { NCheckbox } from "naive-ui";import type { ClientError } from "nice-grpc-web";@@ -240,12 +232,32 @@ const mailDeliverySettingButtonText = computed(() => {? t("common.create"): t("common.update");});+const allowMailDeliveryActionButton = computed(() => {- return (- props.allowEdit &&- (state.useEmptyPassword ||- !isEqual(state.originMailDeliverySetting, state.mailDeliverySetting))- );+ if (!props.allowEdit) {+ return false;+ }+ if (+ !state.mailDeliverySetting.server ||+ !state.mailDeliverySetting.port ||+ !state.mailDeliverySetting.from+ ) {+ return false;+ }++ if (+ state.mailDeliverySetting.authentication !==+ SMTPMailDeliverySettingValue_Authentication.AUTHENTICATION_NONE+ ) {+ if (!state.mailDeliverySetting.username) {+ return false;+ }+ if (!state.useEmptyPassword && !state.mailDeliverySetting.password) {+ return false;+ }+ }++ return true;});onMounted(async () => {diff --git a/frontend/src/views/SettingWorkspaceSSO.vue b/frontend/src/views/SettingWorkspaceSSO.vueindex 70af0d4a05..3cfd976a1d 100644--- a/frontend/src/views/SettingWorkspaceSSO.vue+++ b/frontend/src/views/SettingWorkspaceSSO.vue@@ -19,7 +19,7 @@><FeatureBadge:feature="'bb.feature.sso'"- custom-class="mr-2 text-white"+ custom-class="mr-1 text-white"/>{{ $t("settings.sso.create") }}</NButton>diff --git a/frontend/src/views/SettingWorkspaceVCSDetail.vue b/frontend/src/views/SettingWorkspaceVCSDetail.vueindex 547ff63e1c..5e3e7049b7 100644--- a/frontend/src/views/SettingWorkspaceVCSDetail.vue+++ b/frontend/src/views/SettingWorkspaceVCSDetail.vue@@ -1,5 +1,5 @@<template>- <div class="space-y-4">+ <div class="flex flex-col gap-y-4"><div><div class="flex items-center space-x-2"><label for="instanceurl" class="textlabel">@@ -64,7 +64,7 @@/></div>- <div class="pt-4 flex border-t justify-between">+ <div class="pt-4 mt-2 flex border-t justify-between"><template v-if="connectorList.length == 0"><BBButtonConfirm:style="'DELETE'"