Skip to content

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

chore: only show booking demo after quickstart (#8069)

Tianzhou (天舟)ad426735ef0d
diff --git a/frontend/src/components/Quickstart.vue b/frontend/src/components/Quickstart.vue
index 6fd73a5304..b4c5ce4d19 100644
--- a/frontend/src/components/Quickstart.vue
+++ b/frontend/src/components/Quickstart.vue
@@ -81,41 +81,28 @@
</div>
<div
v-if="showBookDemo"
- class="bg-accent px-3 py-3 flex flex-wrap md:flex-nowrap items-center justify-between"
+ class="bg-accent px-4 py-2 flex flex-wrap md:flex-nowrap items-center justify-center space-x-2"
>
- <p class="ml-3 py-2 flex-1 font-medium text-white truncate">
+ <p class="ml-3 flex font-medium text-white items-center truncate">
+ 📆
<a
href="https://cal.com/adela-bytebase/30min"
target="_blank"
- class="flex underline"
+ class="flex underline ml-1"
>
- <heroicons-outline:calendar class="mr-1 w-6 h-6" />
{{ $t("banner.request-demo") }}
</a>
</p>
<div class="shrink-0 flex items-center gap-x-2">
<button
- v-if="showTrialButton"
type="button"
- class="flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-base font-medium text-accent bg-white hover:bg-indigo-50"
- @click="startTrial"
- >
- {{
- $t("subscription.start-n-days-trial", {
- days: subscriptionStore.trialingDays,
- })
- }}
- </button>
-
- <button
- type="button"
- class="flex p-2 rounded-md hover:bg-accent-hover focus:outline-none focus:ring-2 focus:ring-white"
+ class="flex rounded-md hover:bg-accent-hover focus:outline-none focus:ring-2 focus:ring-white"
@click.prevent="() => hideQuickstart()"
>
<span class="sr-only">{{ $t("common.dismiss") }}</span>
<!-- Heroicon name: outline/x -->
- <heroicons-outline:x class="h-6 w-6 text-white" />
+ <heroicons-outline:x class="h-4 w-4 text-white" />
</button>
</div>
</div>
@@ -130,10 +117,8 @@ import {
pushNotification,
useActuatorV1Store,
useCurrentUserV1,
- useSubscriptionV1Store,
useUIStateStore,
} from "@/store";
-import { PlanType } from "@/types/proto/v1/subscription_service";
import { hasWorkspacePermissionV1 } from "@/utils";
type IntroItem = {
@@ -145,7 +130,6 @@ type IntroItem = {
const actuatorStore = useActuatorV1Store();
const uiStateStore = useUIStateStore();
-const subscriptionStore = useSubscriptionV1Store();
const { t } = useI18n();
const kbarHandler = useKBarHandler();
@@ -252,11 +236,6 @@ const showBookDemo = computed(() => {
return true;
});
-const showTrialButton = computed(() => {
- if (!showBookDemo.value) return false;
- return subscriptionStore.canUpgradeTrial && !subscriptionStore.isTrialing;
-});
-
const currentStep = computed(() => {
let i = 0;
const list = introList.value;
@@ -316,20 +295,6 @@ const hideQuickstart = (silent = false) => {
});
};
-const startTrial = () => {
- subscriptionStore.trialSubscription(PlanType.ENTERPRISE).then(() => {
- pushNotification({
- module: "bytebase",
- style: "SUCCESS",
- title: t("common.success"),
- description: t("subscription.successfully-start-trial", {
- days: subscriptionStore.trialingDays,
- }),
- });
- hideQuickstart(true /* silent */);
- });
-};
-
useKBarEventOnce("open", () => {
// once kbar is open, mark the quickstart as done
uiStateStore.saveIntroStateByKey({