Skip to content

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

feat: several improvements for the subscription page (#786)

ecmadaob68ca679867f
diff --git a/frontend/src/components/PricingTable.vue b/frontend/src/components/PricingTable.vue
index 3b77482b2b..ee04222780 100644
--- a/frontend/src/components/PricingTable.vue
+++ b/frontend/src/components/PricingTable.vue
@@ -143,18 +143,13 @@
<tr class="border-t border-gray-200">
<th class="sr-only" scope="row">Choose your plan</th>
<td v-for="plan in plans" :key="plan.type" class="pt-5 px-6">
- <a
+ <button
v-if="!plan.isFreePlan"
- href="https://hub.bytebase.com/pricing"
- target="_blank"
class="block w-full py-4 bg-gray-800 border border-gray-800 rounded-md py-2 text-sm font-semibold text-white text-center hover:bg-gray-900"
+ @click="onButtonClick(plan)"
>
- {{
- $t("subscription.buy", {
- plan: $t(`subscription.plan.${plan.title}.title`),
- })
- }}
- </a>
+ {{ plan.buttonText }}
+ </button>
</td>
</tr>
</tfoot>
@@ -408,7 +403,7 @@ export default {
"mailto:[email protected]?subject=Request for enterprise plan"
);
} else {
- window.open("https://docs.bytebase.com/", "__blank");
+ window.open("https://docs.bytebase.com/", "_self");
}
};
diff --git a/frontend/src/locales/en.yml b/frontend/src/locales/en.yml
index 2aedf70a2e..ff8145f53f 100644
--- a/frontend/src/locales/en.yml
+++ b/frontend/src/locales/en.yml
@@ -1308,6 +1308,7 @@ subscription:
activity-log: Activity log
rbac: RBAC (Owner, DBA, Developer role)
3rd-party-auth: 3rd party authentication & authorization
+ sync-members-from-vcs: Sync Project Members from VCS
plan:
title: Plan
try: Try Team
diff --git a/frontend/src/locales/zh-CN.yml b/frontend/src/locales/zh-CN.yml
index dc0e450186..eac9e7d86d 100644
--- a/frontend/src/locales/zh-CN.yml
+++ b/frontend/src/locales/zh-CN.yml
@@ -1147,6 +1147,7 @@ subscription:
activity-log: 活动日志
rbac: RBAC 权限管理
3rd-party-auth: 第三方认证 & 授权
+ sync-members-from-vcs: 从 VCS 同步成员信息
plan:
title: 版本
try: 试用团队版
diff --git a/frontend/src/types/plan.ts b/frontend/src/types/plan.ts
index 274b02ec70..1032c21a62 100644
--- a/frontend/src/types/plan.ts
+++ b/frontend/src/types/plan.ts
@@ -87,7 +87,12 @@ export const FEATURE_SECTIONS = [
},
{
id: "admin-and-security",
- features: ["activity-log", "rbac", "3rd-party-auth"],
+ features: [
+ "activity-log",
+ "rbac",
+ "3rd-party-auth",
+ "sync-members-from-vcs",
+ ],
},
];
@@ -180,6 +185,7 @@ export const TEAM_PLAN: Plan = {
{ id: "activity-log" },
{ id: "rbac" },
{ id: "3rd-party-auth" },
+ { id: "sync-members-from-vcs" },
],
};
@@ -229,5 +235,6 @@ export const ENTERPRISE_PLAN: Plan = {
{ id: "activity-log" },
{ id: "rbac" },
{ id: "3rd-party-auth" },
+ { id: "sync-members-from-vcs" },
],
};