Skip to content

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

chore: update onboarding guide style (#2630)

boojack5f6166d14aac
diff --git a/frontend/src/bbkit/BBAlert.vue b/frontend/src/bbkit/BBAlert.vue
index 85efe8545a..fa078b317f 100644
--- a/frontend/src/bbkit/BBAlert.vue
+++ b/frontend/src/bbkit/BBAlert.vue
@@ -91,7 +91,12 @@
class="mt-5 flex"
:class="inProgress ? 'justify-between' : 'justify-end'"
>
- <BBSpin v-if="inProgress" />
+ <div
+ v-if="inProgress"
+ class="flex flex-row justify-start items-center"
+ >
+ <BBSpin />{{ progressText }}
+ </div>
<div>
<button
type="button"
@@ -134,6 +139,7 @@ const props = withDefaults(
okText?: string;
cancelText?: string;
inProgress?: boolean;
+ progressText?: string;
payload?: Payload; // Any payload pass through to "ok" and "cancel" events
}>(),
{
@@ -142,6 +148,7 @@ const props = withDefaults(
okText: "bbkit.common.ok",
cancelText: "bbkit.common.cancel",
inProgress: false,
+ progressText: "",
payload: undefined,
}
);
diff --git a/frontend/src/components/CreateInstanceForm.vue b/frontend/src/components/CreateInstanceForm.vue
index db6a7360d3..2d667b1158 100644
--- a/frontend/src/components/CreateInstanceForm.vue
+++ b/frontend/src/components/CreateInstanceForm.vue
@@ -238,6 +238,7 @@
:in-progress="
shouldShowCreateEmbeddedPostgresButton && isCreatingEmbeddedInstance
"
+ :progress-text="$t('common.creating')"
@ok="handleWarningModalOkClick"
@cancel="state.showCreateInstanceWarningModal = false"
></BBAlert>
diff --git a/frontend/src/components/OnboardingGuides/CreateDatabaseGuide.vue b/frontend/src/components/OnboardingGuides/CreateDatabaseGuide.vue
index 4be7cd96cf..6563c758b0 100644
--- a/frontend/src/components/OnboardingGuides/CreateDatabaseGuide.vue
+++ b/frontend/src/components/OnboardingGuides/CreateDatabaseGuide.vue
@@ -5,6 +5,7 @@
:key="guide.title"
:title="guide.title"
:position="guide.position"
+ :loading="guide.showLoading || false"
:target-element-selector="guide.targetElementSelector"
></GuideDialog>
</template>
@@ -31,6 +32,16 @@ const { t } = useI18n();
const route = useRoute();
const router = useRouter();
+type GuideData = {
+ title: string;
+ description: string;
+ position: string;
+ targetElementSelector: string;
+ route: string;
+ expectedUrl: any;
+ showLoading?: boolean;
+};
+
const guideStepList = computed(() => {
return [
// guides for `add instance`
@@ -92,6 +103,7 @@ const guideStepList = computed(() => {
position: "center",
targetElementSelector: "#app",
expectedUrl: /.*/,
+ showLoading: true,
},
],
// guides for `back to home`
@@ -105,7 +117,7 @@ const guideStepList = computed(() => {
expectedUrl: /^\/.+/,
},
],
- ];
+ ] as GuideData[][];
});
const instanceList = useInstanceList();
diff --git a/frontend/src/components/OnboardingGuides/CreateDatabaseGuideFinished.vue b/frontend/src/components/OnboardingGuides/CreateDatabaseGuideFinished.vue
index 94192a5646..a3590bb6ea 100644
--- a/frontend/src/components/OnboardingGuides/CreateDatabaseGuideFinished.vue
+++ b/frontend/src/components/OnboardingGuides/CreateDatabaseGuideFinished.vue
@@ -74,14 +74,14 @@ import { useOnboardingGuideStore } from "@/store";
import { onMounted } from "vue";
onMounted(() => {
- const colors = ["#ffffff", "#00bb00", "#0000bb"];
+ const colors = ["#2563eb", "#f43f5e", "#f5a30b", "#f5e10b"];
import("canvas-confetti").then(({ default: confetti }) => {
const end = Date.now() + 3 * 1000;
const framework = () => {
confetti({
- particleCount: 3,
+ particleCount: 4,
angle: 60,
spread: 60,
origin: { x: 0 },
@@ -89,7 +89,7 @@ onMounted(() => {
colors,
});
confetti({
- particleCount: 3,
+ particleCount: 4,
angle: 120,
spread: 60,
origin: { x: 1 },
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 940281fdbf..49de0cde7d 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -1470,8 +1470,8 @@
"click-new-project": "Click \"New Project\" to create a project",
"click-new-database": "Click \"New Database\" to create a database",
"click-approve": "Click \"Approve\" to perform the issue",
- "wait-issue-finished": "...waiting for the issue finished",
- "back-to-home": "Back to home",
+ "wait-issue-finished": "waiting for the issue finished...",
+ "back-to-home": "Back to Home",
"finished-dialog": {
"you-have-done": "You have done:",
"add-an-instance": "Add an instance",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index d862a317a1..f516407c72 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -1470,7 +1470,7 @@
"click-new-project": "点击\"创建项目\"按钮",
"click-new-database": "点击\"创建数据库\"按钮",
"click-approve": "点击\"批准\"按钮来执行这个工单",
- "wait-issue-finished": "...等待工单执行完成",
+ "wait-issue-finished": "等待工单执行完成...",
"back-to-home": "回到主页",
"finished-dialog": {
"you-have-done": "你已经完成了:",
diff --git a/frontend/src/plugins/demo/components/GuideDialog.vue b/frontend/src/plugins/demo/components/GuideDialog.vue
index bb0d78bd68..ee98ac48fe 100644
--- a/frontend/src/plugins/demo/components/GuideDialog.vue
+++ b/frontend/src/plugins/demo/components/GuideDialog.vue
@@ -8,7 +8,10 @@
class="guide-wrapper"
:class="position"
>
- <p class="title">{{ props.title }}</p>
+ <p class="flex flex-row justify-start items-center">
+ <BBSpin v-if="loading" class="mr-1" />
+ {{ props.title }}
+ </p>
</div>
</Transition>
<Transition>
@@ -49,6 +52,10 @@ const props = defineProps({
type: String,
default: "",
},
+ loading: {
+ type: Boolean,
+ default: false,
+ },
});
const shouldShow = ref(false);
@@ -304,6 +311,6 @@ const updateDialogPosition = async () => {
}
.guide-wrapper.center {
- @apply w-64 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 -mt-16 whitespace-nowrap;
+ @apply w-auto top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 -mt-16 whitespace-nowrap;
}
</style>