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: update quickly action dialog styles (#2784)
boojack038af6b066df
diff --git a/frontend/src/bbkit/BBModal.vue b/frontend/src/bbkit/BBModal.vueindex 9d16c5de18..08b29a5e39 100644--- a/frontend/src/bbkit/BBModal.vue+++ b/frontend/src/bbkit/BBModal.vue@@ -213,7 +213,7 @@ export const useOverrideSubtitle = (}.modal-container {- @apply px-0.5 pt-4 max-h-screen overflow-auto w-full;+ @apply px-px pt-4 max-h-screen overflow-auto w-full;margin-top: 0.5rem !important;}diff --git a/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue b/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vueindex b67656abcd..eb8c7254fb 100644--- a/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue+++ b/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue@@ -1,7 +1,7 @@<template>- <div class="mx-4 space-y-4 max-w-min overflow-x-hidden">+ <div class="space-y-4 max-w-min overflow-x-hidden"><div class="overflow-x-auto">- <div class="mx-1 w-192">+ <div class="w-192"><template v-if="projectId"><template v-if="isTenantProject"><!-- tenant mode project -->diff --git a/frontend/src/components/CreateDatabasePrepForm.vue b/frontend/src/components/CreateDatabasePrepForm.vueindex d60ded1988..9e9474fb39 100644--- a/frontend/src/components/CreateDatabasePrepForm.vue+++ b/frontend/src/components/CreateDatabasePrepForm.vue@@ -1,7 +1,7 @@<template>- <div class="mx-4 space-y-6 divide-y divide-block-border">- <div class="grid gap-y-6 gap-x-4 grid-cols-4">- <div class="col-span-2 col-start-2 w-64">+ <div class="space-y-6 divide-y divide-block-border">+ <div class="w-72 mx-12 space-y-4">+ <div class="w-full"><label for="project" class="textlabel">{{ $t("common.project") }} <span style="color: red">*</span></label>@@ -17,7 +17,7 @@</div><!-- Providing a preview of generated database name in template mode -->- <div v-if="isDbNameTemplateMode" class="col-span-2 col-start-2 w-64">+ <div v-if="isDbNameTemplateMode" class="w-full"><label for="name" class="textlabel">{{ $t("create-db.generated-database-name") }}<NTooltip trigger="hover" placement="top">@@ -45,7 +45,7 @@/></div>- <div class="col-span-2 col-start-2 w-64">+ <div class="w-full"><label for="name" class="textlabel">{{ $t("create-db.new-database-name") }}<span class="text-red-600">*</span>@@ -67,10 +67,7 @@</span></div>- <div- v-if="selectedInstance.engine == 'CLICKHOUSE'"- class="col-span-2 col-start-2 w-64"- >+ <div v-if="selectedInstance.engine == 'CLICKHOUSE'" class="w-full"><label for="name" class="textlabel">{{ $t("create-db.cluster") }}<span class="text-red-600">*</span>@@ -94,7 +91,7 @@filter="required"/>- <div class="col-span-2 col-start-2 w-64">+ <div class="w-full"><label for="environment" class="textlabel">{{ $t("common.environment") }} <span style="color: red">*</span></label>@@ -109,7 +106,7 @@/></div>- <div class="col-span-2 col-start-2 w-64">+ <div class="w-full"><div class="flex flex-row items-center space-x-1"><InstanceEngineIconv-if="state.instanceId"@@ -134,7 +131,7 @@</div></div>- <div v-if="requireDatabaseOwnerName" class="col-span-2 col-start-2 w-64">+ <div v-if="requireDatabaseOwnerName" class="w-full"><label for="name" class="textlabel">{{ $t("create-db.database-owner-name") }}<span class="text-red-600">*</span>@@ -151,6 +148,7 @@<!-- Providing other dropdowns for optional labels as if they are normal optional props of DB --><DatabaseLabelForm+ class="w-full":project="project":label-list="state.labelList"filter="optional"@@ -162,7 +160,7 @@selectedInstance.engine != 'SNOWFLAKE'">- <div class="col-span-2 col-start-2 w-64">+ <div class="w-full"><label for="charset" class="textlabel">{{selectedInstance.engine == "POSTGRES"@@ -180,7 +178,7 @@/></div>- <div class="col-span-2 col-start-2 w-64">+ <div class="w-full"><label for="collation" class="textlabel">{{ $t("db.collation") }}</label>@@ -197,7 +195,7 @@</div></template>- <div v-if="showAssigneeSelect" class="col-span-2 col-start-2 w-64">+ <div v-if="showAssigneeSelect" class="w-full"><label for="user" class="textlabel">{{ $t("common.assignee") }} <span class="text-red-600">*</span></label>@@ -214,8 +212,9 @@/></div></div>+<!-- Create button group -->- <div class="pt-4 flex justify-end">+ <div class="w-full pt-4 flex justify-end"><buttontype="button"class="btn-normal py-2 px-4"diff --git a/frontend/src/components/CreateDatabasePrepForm/DatabaseLabelForm.vue b/frontend/src/components/CreateDatabasePrepForm/DatabaseLabelForm.vueindex 5d4f798287..76532cdfdf 100644--- a/frontend/src/components/CreateDatabasePrepForm/DatabaseLabelForm.vue+++ b/frontend/src/components/CreateDatabasePrepForm/DatabaseLabelForm.vue@@ -2,7 +2,7 @@<divv-for="item in filteredFormItemList":key="item.label.key"- class="col-span-2 col-start-2 w-64"+ class="w-full"><div class="flex flex-row items-center space-x-1"><label for="instance" class="textlabel capitalize">diff --git a/frontend/src/components/ProjectCreate.vue b/frontend/src/components/ProjectCreate.vueindex 2305896051..054384544f 100644--- a/frontend/src/components/ProjectCreate.vue+++ b/frontend/src/components/ProjectCreate.vue@@ -1,8 +1,8 @@<template>- <form class="w-144 px-4 py-2 space-y-6 divide-y divide-block-border">+ <form class="w-96 py-2 space-y-6 divide-y divide-block-border"><div class="grid gap-y-6 gap-x-4 grid-cols-1"><div class="col-span-1">- <label for="name" class="text-lg leading-6 font-medium text-control">+ <label for="name" class="text-base leading-6 font-medium text-control">{{ $t("project.create-modal.project-name") }}<span class="text-red-600">*</span></label>@@ -17,7 +17,7 @@/></div><div class="col-span-1">- <label for="name" class="text-lg leading-6 font-medium text-control">+ <label for="name" class="text-base leading-6 font-medium text-control">{{ $t("project.create-modal.key") }}<span class="text-red-600">*</span><span class="ml-1 text-sm font-normal">@@ -32,7 +32,7 @@/></div><div class="col-span-1">- <div for="name" class="text-lg leading-6 font-medium text-control">+ <div for="name" class="text-base leading-6 font-medium text-control">{{ $t("common.mode") }}<span class="text-red-600">*</span></div>@@ -63,7 +63,7 @@</div><div v-if="state.project.tenantMode === 'TENANT'" class="col-span-1"><label- class="text-lg leading-6 font-medium text-control select-none flex items-center"+ class="text-base leading-6 font-medium text-control select-none flex items-center">{{ $t("project.db-name-template") }}<BBCheckbox@@ -144,7 +144,7 @@ import { isEmpty } from "lodash-es";import { useI18n } from "vue-i18n";import { useEventListener } from "@vueuse/core";import { generateDefaultSchedule, projectSlug, randomString } from "@/utils";-import { ProjectCreate } from "@/types";+import { Project, ProjectCreate } from "@/types";import {hasFeature,pushNotification,@@ -176,7 +176,7 @@ export default defineComponent({tenantMode: "DISABLED",dbNameTemplate: "",roleProvider: "BYTEBASE",- },+ } as Project,showFeatureModal: false,enableDbNameTemplate: false,isCreating: false,diff --git a/frontend/src/components/QuickActionPanel.vue b/frontend/src/components/QuickActionPanel.vueindex d066ca4a89..11390c38e9 100644--- a/frontend/src/components/QuickActionPanel.vue+++ b/frontend/src/components/QuickActionPanel.vue@@ -188,9 +188,8 @@state.quickActionType == 'quickaction.bb.database.schema.update'">- <!-- eslint-disable vue/attribute-hyphenation --><AlterSchemaPrepForm- :projectId="projectId"+ :project-id="projectId":type="'bb.issue.database.schema.update'"@dismiss="state.showModal = false"/>@@ -198,9 +197,8 @@<templatev-else-if="state.quickActionType == 'quickaction.bb.database.data.update'">- <!-- eslint-disable vue/attribute-hyphenation --><AlterSchemaPrepForm- :projectId="projectId"+ :project-id="projectId":type="'bb.issue.database.data.update'"@dismiss="state.showModal = false"/>@@ -208,9 +206,8 @@<templatev-else-if="state.quickActionType == 'quickaction.bb.database.create'">- <!-- eslint-disable vue/attribute-hyphenation --><CreateDatabasePrepForm- :projectId="projectId"+ :project-id="projectId"@dismiss="state.showModal = false"/></template>