Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: update demo style (#1925)

boojackf3aca5132666
diff --git a/frontend/public/demo/schema-migration-history/hint.json b/frontend/public/demo/schema-migration-history/hint.json
index c04b7b25bd..5201533767 100644
--- a/frontend/public/demo/schema-migration-history/hint.json
+++ b/frontend/public/demo/schema-migration-history/hint.json
@@ -2,25 +2,24 @@
{
"selector": "[data-label='bb-dashboard-static-sidebar']",
"type": "shield",
- "url": ".*"
- },
- {
- "selector": "[data-label='bb-database-detail-action-buttons-container']",
- "type": "shield",
- "url": ".*"
+ "url": "^.+/(db|issue)/"
},
{
"selector": "[data-label='bb-dashboard-header']",
"type": "shield",
- "url": ".*",
+ "url": "^.+/(db|issue)/",
"additionStyle": {
"zIndex": "1"
}
},
{
- "selector": "[data-label='bb-breadcrumb']",
+ "selector": "[data-label='bb-database-detail-action-buttons-container']",
"type": "shield",
- "url": ".*"
+ "url": ".*",
+ "additionStyle": {
+ "backdropFilter": "unset",
+ "background": "transparent"
+ }
},
{
"selector": "[data-label='bb-migration-history-establish-baseline-alert'] [data-label='bb-alert-ok-button']",
@@ -78,32 +77,20 @@
"position": "right"
},
"additionStyle": {
- "marginLeft": "-16px"
+ "marginLeft": "-12px"
}
},
{
"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$",
- "type": "tooltip",
- "dialog": {
- "title": "",
- "description": {
- "en-US": "Creating a new BASELINE can start a new Schema life cycle",
- "zh-CN": "新建一个 BASELINE 可以开始一个新的 Schema 生命周期"
- },
- "position": "right"
- },
+ "type": "shield",
"additionStyle": {
- "marginLeft": "8px"
+ "backdropFilter": "unset",
+ "background": "transparent"
}
},
{
- "selector": "[data-label='bb-migration-history-table'] tr:nth-child(2) > td:nth-child(2)",
+ "selector": "[data-label='bb-migration-history-table'] tr:nth-child(2) > td:nth-child(3)",
"url": ".+?/db/.+?#migration-history$",
"type": "tooltip",
"position": "left",
@@ -118,17 +105,18 @@
}
},
{
- "selector": "[data-label='bb-migration-history-table'] tr:nth-child(3) > td:nth-child(5)",
+ "selector": "[data-label='bb-migration-history-table'] tr:nth-child(3) > td:nth-child(3)",
"url": ".+?/db/.+?#migration-history$",
"type": "tooltip",
"position": "left",
"dialog": {
"title": "",
"description": {
- "en-US": "Hover the SQL, you can get the full of them",
- "zh-CN": "让我们专注在数据库变更管理场景"
+ "en-US": "Every change will generate a new Schema version",
+ "zh-CN": "每次变更都将产生一个新的 Schema 版本,点我看看"
},
- "position": "left"
+ "alwaysShow": true,
+ "position": "right"
}
},
{
@@ -191,36 +179,6 @@
"marginLeft": "8px"
}
},
- {
- "selector": "[data-label='bb-migration-history-code-diff-block'] div.d2h-file-side-diff:nth-child(2)",
- "url": ".+?/db/.+?/history/.+",
- "type": "tooltip",
- "position": "left",
- "dialog": {
- "title": "",
- "description": {
- "en-US": "This is the different codes between the two versions",
- "zh-CN": "这是两个数据库 Schema 版本之间的差异"
- },
- "alwaysShow": true,
- "position": "right"
- }
- },
- {
- "selector": "[data-label='bb-migration-history-code-block']",
- "url": ".+?/db/.+?/history/.+",
- "type": "tooltip",
- "position": "left",
- "dialog": {
- "title": "",
- "description": {
- "en-US": "This is the current full schema of the database",
- "zh-CN": "这是现在数据库的完整 Schema"
- },
- "alwaysShow": true,
- "position": "right"
- }
- },
{
"selector": "a.bb-comment-link",
"url": ".+?/issue/.+",
diff --git a/frontend/src/plugins/demo/style.css b/frontend/src/plugins/demo/style.css
index 4bc9f276a0..4d8bfada26 100644
--- a/frontend/src/plugins/demo/style.css
+++ b/frontend/src/plugins/demo/style.css
@@ -3,7 +3,6 @@
@apply fixed inset-0 overflow-hidden;
z-index: 999998;
pointer-events: auto !important;
- backdrop-filter: blur(2px);
}
.bb-guide-target-element,
@@ -37,34 +36,37 @@
.bb-hint-dialog.topright::before {
content: "";
position: absolute;
- bottom: -6px;
+ bottom: -10px;
right: 24px;
- border-left: 6px solid transparent;
- border-right: 6px solid transparent;
- border-top: 6px solid white;
+ border-left: 10px solid transparent;
+ border-right: 10px solid transparent;
+ border-top: 10px solid white;
}
.bb-hint-dialog.top {
- margin-top: 0px;
+ margin-top: -4px;
}
.bb-hint-dialog.top::before {
content: "";
position: absolute;
- bottom: -6px;
+ bottom: -10px;
left: 24px;
- border-left: 6px solid transparent;
- border-right: 6px solid transparent;
- border-top: 6px solid white;
+ border-left: 10px solid transparent;
+ border-right: 10px solid transparent;
+ border-top: 10px solid white;
}
+.bb-hint-dialog.bottom {
+ margin-top: 12px;
+}
.bb-hint-dialog.bottom::before {
content: "";
position: absolute;
- top: -6px;
+ top: -10px;
left: 24px;
- border-left: 6px solid transparent;
- border-right: 6px solid transparent;
- border-bottom: 6px solid white;
+ border-left: 10px solid transparent;
+ border-right: 10px solid transparent;
+ border-bottom: 10px solid white;
}
.bb-hint-dialog.left {
@@ -74,11 +76,11 @@
.bb-hint-dialog.left::before {
content: "";
position: absolute;
- top: 10px;
- right: -6px;
- border-top: 6px solid transparent;
- border-bottom: 6px solid transparent;
- border-left: 6px solid white;
+ top: 8px;
+ right: -10px;
+ border-top: 10px solid transparent;
+ border-bottom: 10px solid transparent;
+ border-left: 10px solid white;
}
.bb-hint-dialog.right {
@@ -87,11 +89,11 @@
.bb-hint-dialog.right::before {
content: "";
position: absolute;
- top: 18px;
+ top: 13px;
left: -6px;
- border-top: 6px solid transparent;
- border-bottom: 6px solid transparent;
- border-right: 6px solid white;
+ border-top: 10px solid transparent;
+ border-bottom: 10px solid transparent;
+ border-right: 10px solid white;
}
.bb-guide-close-button,
@@ -125,22 +127,26 @@
.bb-hint-wrapper.covered {
box-shadow: rgb(33 33 33 / 80%) 0px 0px 1px 1px,
- rgb(0 0 0 / 40%) 0px 0px 0px 100vw !important;
+ rgb(0 0 0 / 30%) 0px 0px 0px 100vw !important;
}
.bb-hint-wrapper.shield {
@apply border-none rounded-none overflow-hidden bg-transparent shadow-none cursor-not-allowed;
pointer-events: auto !important;
- backdrop-filter: blur(2px);
+ backdrop-filter: blur(4px);
background: rgba(255, 255, 255, 0.4);
}
.bb-hint-tooltip-wrapper {
- @apply fixed w-3 h-3 text-xs text-center leading-4 shadow-none rounded-full m-0 bg-white cursor-default;
+ @apply fixed text-xs text-center leading-4 shadow-none rounded-full m-0 bg-white cursor-default;
+ width: 10px;
+ height: 10px;
background-color: #4f46e5;
}
.bb-hint-tooltip-wrapper > .bb-hint-tooltip-ping {
- @apply absolute top-0 left-0 w-full h-full animate-ping rounded-full;
+ @apply absolute top-0 left-0 w-3 h-3 animate-ping rounded-full;
+ top: -1px;
+ left: -1px;
background-color: #4f46e5;
}
diff --git a/frontend/src/store/modules/actuator.ts b/frontend/src/store/modules/actuator.ts
index 82c6299217..76365a8d81 100644
--- a/frontend/src/store/modules/actuator.ts
+++ b/frontend/src/store/modules/actuator.ts
@@ -28,7 +28,7 @@ export const useActuatorStore = defineStore("actuator", {
isLiveDemo: (state) => {
return (
state.serverInfo?.demo &&
- !state.serverInfo?.demoName &&
+ state.serverInfo?.demoName !== "" &&
state.serverInfo?.demoName !== "dev" &&
state.serverInfo?.demoName !== "prod"
);