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 data (#1980)
boojack9b1749be2301
diff --git a/frontend/public/demo/schema-migration-history/hint.json b/frontend/public/demo/schema-migration-history/hint.jsonindex 8a1033711c..afcf7b766c 100644--- a/frontend/public/demo/schema-migration-history/hint.json+++ b/frontend/public/demo/schema-migration-history/hint.json@@ -16,7 +16,7 @@"title": "","description": {"en-US": "Since this is a read-only DEMO, you can contact [email protected] to request a full DEMO.",- "zh-CN": "但由于这是个只读 DEMO,您可以联系 [email protected] 来申请完整的 DEMO 进行尝试。"+ "zh-CN": "但由于这是个只读 DEMO,您可以联系 [email protected] 来申请完整的 DEMO 进行尝试"},"alwaysShow": true},@@ -31,8 +31,8 @@"dialog": {"title": "","description": {- "en-US": "Let's focus on the Database",- "zh-CN": "我们来查看数据库模块"+ "en-US": "Click here. Let's enter the DEMO",+ "zh-CN": "点击这里,让我们进入 DEMO"},"alwaysShow": true}@@ -44,8 +44,8 @@"dialog": {"title": "","description": {- "en-US": "Choose the target database",- "zh-CN": "选择一个目标数据库"+ "en-US": "Selecting the target database",+ "zh-CN": "选择目标数据库"},"alwaysShow": true,"position": "bottom"@@ -64,10 +64,14 @@"dialog": {"title": "","description": {- "en-US": "Let's focus on the database schema change management",- "zh-CN": "让我们专注在数据库变更管理场景"+ "en-US": "All migration records are here.",+ "zh-CN": "所有的变更记录都在这里"},"position": "right"+ },+ "additionStyle": {+ "marginLeft": "7px",+ "marginTop": "10px"}},{@@ -80,56 +84,21 @@}},{- "selector": "[data-label='bb-migration-history-table'] tr:nth-child(2) > td:nth-child(3)",- "url": ".+?/db/.+?#migration-history$",- "type": "tooltip",- "position": "left",- "dialog": {- "title": "",- "description": {- "en-US": "Every change will generate a new Schema version",- "zh-CN": "每次变更都将产生一个新的 Schema 版本,点我看看"- },- "alwaysShow": true,- "position": "right"- },- "additionStyle": {- "marginLeft": "-8px"- }- },- {- "selector": "[data-label='bb-migration-history-table'] tr:nth-child(3) > td:nth-child(3)",+ "selector": "[data-label='bb-migration-history-table'] tr:nth-child(2) > td:nth-child(2)","url": ".+?/db/.+?#migration-history$","type": "tooltip",- "position": "left",+ "position": "leftcenter","dialog": {"title": "","description": {- "en-US": "Every change will generate a new Schema version",- "zh-CN": "每次变更都将产生一个新的 Schema 版本,点我看看"+ "en-US": "In this migration, drift is detected. Click for more.",+ "zh-CN": "一次常规的变更,其中检测到了偏差。点击查看详情"},"alwaysShow": true,"position": "right"},"additionStyle": {- "marginLeft": "-8px"- }- },- {- "selector": "[data-label='bb-migration-history-table'] tr:nth-child(4) > td:nth-child(3)",- "url": ".+?/db/.+?#migration-history$",- "type": "tooltip",- "position": "left",- "dialog": {- "title": "",- "description": {- "en-US": "BASELINE records the initial state of the database schema",- "zh-CN": "BASELINE 记录了数据库 Schema 的初始状态,点我看看"- },- "position": "right"- },- "additionStyle": {- "marginLeft": "-8px"+ "marginLeft": "-16px"}},{@@ -140,10 +109,14 @@"dialog": {"title": "","description": {- "en-US": "A schema drift was detected in this change, indicating that a change beyond the control of the Bytebase platform occurred prior to this change.",- "zh-CN": "这次变更检查到了 Schema 偏差,说明这次变更之前发生了脱离 Bytebase 平台管控的变更"+ "en-US": "This migration task also detected schema drift. It means another client performed some schema changes which were out of version control.",+ "zh-CN": "本次变更还检测到了 Schema 偏差,说明有数据库变更通过其他客户端发起,脱离了版本管控"},"position": "right"+ },+ "additionStyle": {+ "marginLeft": "2px",+ "marginTop": "10px"}},{@@ -153,7 +126,7 @@"dialog": {"title": "","description": {- "en-US": "Let's go back to Migration History",+ "en-US": "Let's go back to Migration History.","zh-CN": "让我们回到 Migration History"},"alwaysShow": true,diff --git a/frontend/src/plugins/demo/hint.ts b/frontend/src/plugins/demo/hint.tsindex b0538f8a22..84134e9c00 100644--- a/frontend/src/plugins/demo/hint.ts+++ b/frontend/src/plugins/demo/hint.ts@@ -304,11 +304,12 @@ const updateTooltipPosition = (} else if (position === "left") {hintWrapper.style.top = `${bounding.top}px`;hintWrapper.style.left = `${bounding.left}px`;+ } else if (position === "leftcenter") {+ hintWrapper.style.top = `${bounding.top + bounding.height / 2 - 12}px`;+ hintWrapper.style.left = `${bounding.left}px`;} else if (position === "center") {- hintWrapper.style.top = `${bounding.top + bounding.height / 2}px`;- hintWrapper.style.left = `${bounding.left + bounding.width / 2}px`;- hintWrapper.style.marginTop = `-12px`;- hintWrapper.style.marginLeft = `-12px`;+ hintWrapper.style.top = `${bounding.top + bounding.height / 2 - 12}px`;+ hintWrapper.style.left = `${bounding.left + bounding.width / 2 - 12}px`;}requestAnimationFrame(() =>diff --git a/frontend/src/plugins/demo/style.css b/frontend/src/plugins/demo/style.cssindex 83e79d6d71..6c52145f15 100644--- a/frontend/src/plugins/demo/style.css+++ b/frontend/src/plugins/demo/style.css@@ -99,8 +99,8 @@.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;- font-size: 24px;+ @apply absolute top-1 right-1 flex justify-center items-center w-6 h-6 pb-1 rounded cursor-pointer opacity-80 text-gray-600 hover:bg-gray-200 hover:shadow;+ font-size: 20px;}.bb-guide-title-text,@@ -155,5 +155,5 @@top: 6px;left: 6px;background-color: #4f46e5;- animation-duration: 1.6s;+ animation-duration: 2s;}diff --git a/frontend/src/plugins/demo/types.ts b/frontend/src/plugins/demo/types.tsindex 9006dca462..d59d05988f 100644--- a/frontend/src/plugins/demo/types.ts+++ b/frontend/src/plugins/demo/types.ts@@ -6,7 +6,8 @@ export type Position =| "left"| "right"| "topright"- | "center";+ | "center"+ | "leftcenter";export type I18NText = {[key: string]: string;