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 migration history demo (#1877)
boojack97fa61681701
diff --git a/frontend/public/demo/schema-migration-history/hint.json b/frontend/public/demo/schema-migration-history/hint.jsonindex 8bfdbaedfd..19be643f05 100644--- a/frontend/public/demo/schema-migration-history/hint.json+++ b/frontend/public/demo/schema-migration-history/hint.json@@ -2,17 +2,22 @@{"selector": "[data-label='bb-dashboard-static-sidebar']","type": "shield",- "url": ".+/db/"+ "url": ".*"},{"selector": "[data-label='bb-database-detail-action-buttons-container']","type": "shield",- "url": ".+/db/"+ "url": ".*"},{"selector": "[data-label='bb-dashboard-header']","type": "shield",- "url": ".+/db/"+ "url": ".*"+ },+ {+ "selector": "[data-label='bb-breadcrumb']",+ "type": "shield",+ "url": ".*"},{"selector": "[data-label='bb-migration-history-establish-baseline-alert'] [data-label='bb-alert-ok-button']",@@ -32,7 +37,7 @@},{"selector": "[data-label='bb-dashboard-header-database-entry']",- "url": "^(?!.+/db)",+ "url": "^(?!.+/(db|issue/))","cover": true,"dialog": {"title": "",@@ -68,8 +73,16 @@"zh-CN": "让我们专注在数据库变更管理场景"},"position": "right"+ },+ "additionStyle": {+ "marginLeft": "-16px"}},+ {+ "selector": "[data-label='bb-database-detail-tab'] button:nth-child(3)",+ "url": ".*",+ "type": "shield"+ },{"selector": "[data-label='bb-establish-baseline-button']","url": ".+?/db/.+?#migration-history$",@@ -86,19 +99,6 @@"marginLeft": "8px"}},- {- "selector": "[data-label='bb-database-overview-description-list']",- "url": ".+?/db/.+?#overview$",- "dialog": {- "title": "",- "description": {- "en-US": "The basic information of the database is shown here",- "zh-CN": "这里展示了数据库的基本信息"- },- "alwaysShow": true,- "position": "topright"- }- },{"selector": "[data-label='bb-migration-history-table'] tr:nth-child(2) > td:nth-child(1)","url": ".+?/db/.+?#migration-history$",@@ -205,5 +205,19 @@"alwaysShow": true,"position": "topright"}+ },+ {+ "selector": "a.bb-comment-link",+ "url": ".+?/issue/.+",+ "type": "tooltip",+ "dialog": {+ "title": "",+ "description": {+ "en-US": "Let's go back to Migration History",+ "zh-CN": "让我们回到 Migration History"+ },+ "alwaysShow": true,+ "position": "right"+ }}]diff --git a/frontend/src/components/Breadcrumb.vue b/frontend/src/components/Breadcrumb.vueindex 4305cd91f3..4c9975cdf2 100644--- a/frontend/src/components/Breadcrumb.vue+++ b/frontend/src/components/Breadcrumb.vue@@ -1,5 +1,5 @@<template>- <nav class="flex" aria-label="Breadcrumb">+ <nav class="flex" aria-label="Breadcrumb" data-label="bb-breadcrumb"><div v-for="(item, index) in breadcrumbList" :key="index"><div class="flex items-center space-x-2"><router-linkdiff --git a/frontend/src/components/Issue/TaskRunTable.vue b/frontend/src/components/Issue/TaskRunTable.vueindex 1d1abfe3d7..55e137da03 100644--- a/frontend/src/components/Issue/TaskRunTable.vue+++ b/frontend/src/components/Issue/TaskRunTable.vue@@ -43,7 +43,7 @@{{ comment(taskRun) }}<template v-if="commentLink(task, taskRun).link"><router-link- class="ml-1 normal-link"+ class="bb-comment-link ml-1 normal-link":to="commentLink(task, taskRun).link">{{ commentLink(task, taskRun).title }}</router-link>diff --git a/frontend/src/plugins/demo/hint.ts b/frontend/src/plugins/demo/hint.tsindex 18a4d112ca..23a92f82ae 100644--- a/frontend/src/plugins/demo/hint.ts+++ b/frontend/src/plugins/demo/hint.ts@@ -113,7 +113,9 @@ const renderHintDialog = (dialog: { title, description, position, alwaysShow },} = hintData;const hintDialogDiv = document.createElement("div");- hintDialogDiv.className = `bb-hint-dialog bb-hint-${hintIndex}`;+ hintDialogDiv.className = `bb-hint-dialog bb-hint-${hintIndex} ${+ position ?? "bottom"+ }`;if (hintData.type === "tooltip") {hintDialogDiv.classList.add("tooltip-dialog");@@ -288,6 +290,11 @@ const updateTooltipPosition = (const position = hintData.position;const bounding = getElementBounding(targetElement);+ if (bounding.width === 0 && bounding.height === 0) {+ removeHint(hintIndex);+ return;+ }+if (!position || position === "right") {hintWrapper.style.top = `${bounding.top}px`;hintWrapper.style.left = `${bounding.left + bounding.width}px`;diff --git a/frontend/src/plugins/demo/style.css b/frontend/src/plugins/demo/style.cssindex eb2ba2079a..9739bcd8be 100644--- a/frontend/src/plugins/demo/style.css+++ b/frontend/src/plugins/demo/style.css@@ -2,6 +2,9 @@.bb-hint-cover-wrapper {@apply fixed inset-0 overflow-hidden;z-index: 999998;+ pointer-events: auto !important;+ backdrop-filter: blur(2px);+ background: rgba(255, 255, 255, 0.4);}.bb-guide-target-element,@@ -22,7 +25,7 @@.bb-guide-dialog,.bb-hint-dialog {- @apply fixed bg-white w-72 m-1 text-black p-3 px-4 rounded-lg text-left -top-full -left-full overflow-hidden;+ @apply fixed bg-white w-72 m-1 my-2 text-black p-2 px-4 rounded text-left -top-full -left-full;box-shadow: 0 3px 30px rgb(33 33 33 / 30%);z-index: 1000000;}@@ -31,6 +34,66 @@@apply mx-2;}+.bb-hint-dialog.topright::before {+ content: "";+ position: absolute;+ bottom: -6px;+ right: 24px;+ border-left: 6px solid transparent;+ border-right: 6px solid transparent;+ border-top: 6px solid white;+}++.bb-hint-dialog.top {+ margin-top: 0px;+}+.bb-hint-dialog.top::before {+ content: "";+ position: absolute;+ bottom: -6px;+ left: 24px;+ border-left: 6px solid transparent;+ border-right: 6px solid transparent;+ border-top: 6px solid white;+}++.bb-hint-dialog.bottom::before {+ content: "";+ position: absolute;+ top: -6px;+ left: 24px;+ border-left: 6px solid transparent;+ border-right: 6px solid transparent;+ border-bottom: 6px solid white;+}++.bb-hint-dialog.left {+ margin: 0;+ margin-top: -6px;+}+.bb-hint-dialog.left::before {+ content: "";+ position: absolute;+ top: 12px;+ right: -6px;+ border-top: 6px solid transparent;+ border-bottom: 6px solid transparent;+ border-left: 6px solid white;+}++.bb-hint-dialog.right {+ margin-top: -14px;+}+.bb-hint-dialog.right::before {+ content: "";+ position: absolute;+ top: 20px;+ left: -6px;+ border-top: 6px solid transparent;+ border-bottom: 6px solid transparent;+ border-right: 6px solid white;+}+.bb-guide-close-button,.bb-hint-close-button {@apply fixed top-0 right-0.5 px-1 font-thin rounded cursor-pointer opacity-60 hover:opacity-50;@@ -58,12 +121,10 @@.bb-hint-wrapper {@apply fixed rounded cursor-pointer overflow-hidden;z-index: 999999;- box-shadow: rgb(33 33 33 / 30%) 0px 0px 1px 2px;}.bb-hint-wrapper.covered {- box-shadow: rgb(33 33 33 / 80%) 0px 0px 1px 2px,- rgb(33 33 33 / 60%) 0px 0px 0px 5000px !important;+ box-shadow: rgb(33 33 33 / 80%) 0px 0px 1px 2px, transparent 0px 0px 0px 100vw !important;}.bb-hint-wrapper.shield {@@ -75,7 +136,7 @@.bb-hint-tooltip-wrapper {@apply fixed w-4 h-4 text-xs text-center leading-4 shadow-none rounded-full m-0 bg-white cursor-default;- animation: 2s linear 2s infinite breathing;+ animation: 2s linear 0s infinite breathing;box-shadow: rgb(78 70 211) 0px 0px 1px 2px;color: rgb(78 70 211);}diff --git a/frontend/src/views/DatabaseDetail.vue b/frontend/src/views/DatabaseDetail.vueindex c13f7737e4..859459b0f8 100644--- a/frontend/src/views/DatabaseDetail.vue+++ b/frontend/src/views/DatabaseDetail.vue@@ -20,6 +20,7 @@</div><dlclass="flex flex-col space-y-1 md:space-y-0 md:flex-row md:flex-wrap"+ data-label="bb-database-detail-info-block"><dt class="sr-only">{{ $t("common.environment") }}</dt><dd class="flex items-center text-sm md:mr-4">