Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: project deployment config ui (#9695)
ecmadao26762ebfd1c6
diff --git a/frontend/src/components/Project/ProjectBranchProtectionRulesSettingPanel.vue b/frontend/src/components/Project/ProjectBranchProtectionRulesSettingPanel.vueindex a9d3057c1f..2876e91363 100644--- a/frontend/src/components/Project/ProjectBranchProtectionRulesSettingPanel.vue+++ b/frontend/src/components/Project/ProjectBranchProtectionRulesSettingPanel.vue@@ -1,6 +1,6 @@<template>- <div class="w-full flex flex-col justify-start items-start py-2">- <div class="w-full flex flex-row justify-between items-center mt-4 mb-4">+ <div class="w-full flex flex-col justify-start items-start pt-6">+ <div class="w-full flex flex-row justify-between items-center mb-4"><h3 class="text-lg font-medium leading-7 text-main">{{ $t("project.settings.branch-protection-rules.self") }}</h3>diff --git a/frontend/src/components/ProjectDeploymentConfigPanel.vue b/frontend/src/components/ProjectDeploymentConfigPanel.vueindex 6ef88d95db..c7787baf6f 100644--- a/frontend/src/components/ProjectDeploymentConfigPanel.vue+++ b/frontend/src/components/ProjectDeploymentConfigPanel.vue@@ -1,11 +1,11 @@<template>- <div class="max-w-[60rem] mx-auto">- <div v-if="state.ready && state.deployment" class="mb-6">+ <div class="w-full pt-6 space-y-6">+ <div v-if="state.ready && state.deployment" class="space-y-4"><div class="text-lg font-medium leading-7 text-main">{{ $t("deployment-config.preview-deployment-pipeline") }}</div><DeploymentMatrix- class="w-full mt-4 !px-0 overflow-x-auto"+ class="w-full !px-0 overflow-x-auto":project="project":deployment="state.deployment":database-list="databaseList"@@ -14,62 +14,70 @@/></div>- <div class="text-lg font-medium leading-7 text-main mt-6 pt-4">- {{ $t("common.deployment-config") }}- </div>+ <div class="space-y-4">+ <div class="text-lg font-medium leading-7 text-main">+ {{ $t("common.deployment-config") }}+ </div>- <template v-if="state.ready">- <BBAttention- v-if="state.deployment === undefined"- :style="'WARN'"- :title="$t('common.deployment-config')"- :description="$t('deployment-config.this-is-example-deployment-config')"- >- </BBAttention>-- <div v-else>- <DeploymentConfigTool- v-if="state.deployment.schedule"- :schedule="state.deployment.schedule"- :allow-edit="allowEdit"- :database-list="databaseList"- />- <div class="pt-4 border-t flex justify-between items-center">- <div class="flex items-center space-x-2">- <NButton v-if="allowEdit" @click="addStage">- {{ $t("deployment-config.add-stage") }}- </NButton>- </div>- <div class="flex items-center space-x-2">- <NButton- v-if="allowEdit"- :disabled="!isDeploymentConfigDirty"- @click="revertDeploymentConfig"- >- {{ $t("common.revert") }}- </NButton>- <NPopover v-if="allowEdit" :disabled="!state.error" trigger="hover">- <template #trigger>- <NButton- type="primary"- :disabled="!allowUpdateDeploymentConfig"- @click="updateDeploymentConfig"- >- {{ $t("common.update") }}- </NButton>- </template>-- <span v-if="state.error" class="text-error">- {{ $t(state.error) }}- </span>- </NPopover>+ <template v-if="state.ready">+ <BBAttention+ v-if="state.deployment === undefined"+ :style="'WARN'"+ :title="$t('common.deployment-config')"+ :description="+ $t('deployment-config.this-is-example-deployment-config')+ "+ >+ </BBAttention>++ <div v-else>+ <DeploymentConfigTool+ v-if="state.deployment.schedule"+ :schedule="state.deployment.schedule"+ :allow-edit="allowEdit"+ :database-list="databaseList"+ />+ <div class="pt-4 border-t flex justify-between items-center">+ <div class="flex items-center space-x-2">+ <NButton v-if="allowEdit" @click="addStage">+ {{ $t("deployment-config.add-stage") }}+ </NButton>+ </div>+ <div class="flex items-center space-x-2">+ <NButton+ v-if="allowEdit"+ :disabled="!isDeploymentConfigDirty"+ @click="revertDeploymentConfig"+ >+ {{ $t("common.revert") }}+ </NButton>+ <NPopover+ v-if="allowEdit"+ :disabled="!state.error"+ trigger="hover"+ >+ <template #trigger>+ <NButton+ type="primary"+ :disabled="!allowUpdateDeploymentConfig"+ @click="updateDeploymentConfig"+ >+ {{ $t("common.update") }}+ </NButton>+ </template>++ <span v-if="state.error" class="text-error">+ {{ $t(state.error) }}+ </span>+ </NPopover>+ </div></div></div>- </div>- </template>+ </template>- <div v-else class="flex justify-center items-center py-10">- <BBSpin />+ <div v-else class="flex justify-center items-center py-10">+ <BBSpin />+ </div></div></div></template>diff --git a/frontend/src/components/ProjectSettingPanel.vue b/frontend/src/components/ProjectSettingPanel.vueindex f46e4e70c0..88e622bf9f 100644--- a/frontend/src/components/ProjectSettingPanel.vue+++ b/frontend/src/components/ProjectSettingPanel.vue@@ -6,14 +6,13 @@:project="project":allow-edit="allowEdit"/>- <div v-if="isTenantProject" class="pt-6">- <ProjectDeploymentConfigPanel- id="deployment-config"- :project="project"- :database-list="databaseV1List"- :allow-edit="allowEdit"- />- </div>+ <ProjectDeploymentConfigPanel+ v-if="isTenantProject"+ id="deployment-config"+ :project="project"+ :database-list="databaseV1List"+ :allow-edit="allowEdit"+ /><div class="pt-4"><ProjectArchiveRestoreButton :project="project" /></div>