Skip to content

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

feat: add label (#581)

ecmadao091f3e2b49e3
diff --git a/frontend/src/components/PricingTable.vue b/frontend/src/components/PricingTable.vue
index f0bb286aaa..db15d04ce1 100644
--- a/frontend/src/components/PricingTable.vue
+++ b/frontend/src/components/PricingTable.vue
@@ -17,9 +17,19 @@
>
<div class="flex-1">
<img :src="plan.image" class="hidden lg:block p-5" />
- <h3 class="text-2xl font-semibold text-gray-900">
- {{ $t(`subscription.plan.${plan.title}.title`) }}
- </h3>
+
+ <div class="flex items-center h-10">
+ <h3 class="text-xl font-semibold text-gray-900">
+ {{ $t(`subscription.plan.${plan.title}.title`) }}
+ </h3>
+ <span
+ v-if="plan.label"
+ class="ml-2 inline-flex items-center px-3 py-0.5 rounded-full text-base font-sm bg-indigo-100 text-indigo-800"
+ >
+ {{ plan.label }}
+ </span>
+ </div>
+
<p class="text-gray-500 mb-10 h-12">
{{ $t(`subscription.plan.${plan.title}.desc`) }}
</p>
@@ -171,6 +181,7 @@ interface LocalState {
}
interface LocalPlan extends Plan {
+ label: string;
image: string;
price: string;
buttonText: string;
@@ -229,6 +240,7 @@ export default {
buttonText: getButtonText(plan),
highlight: plan.type === PlanType.TEAM,
isFreePlan: plan.type === PlanType.FREE,
+ label: t(`subscription.plan.${plan.title}.label`),
}));
});
diff --git a/frontend/src/locales/en.yml b/frontend/src/locales/en.yml
index 56b88b8313..22dbb855cc 100644
--- a/frontend/src/locales/en.yml
+++ b/frontend/src/locales/en.yml
@@ -1192,7 +1192,7 @@ subscription:
desc: "@:{'subscription.upgrade'} to unlock schema dirft auto-detection"
feature-sections:
database-management:
- title: Database Management
+ title: Database Development
features:
instance-count: Instance count
instance-upto-5: Up to 5
@@ -1234,10 +1234,13 @@ subscription:
title: Plan
free:
title: Free
+ label: ''
desc: Personal project or small team, no DBA
team:
title: Team
+ label: Beta
desc: Medium size team, has dedicated DBA or TL for engineering velocity
enterprise:
title: Enterprise
+ label: Early access
desc: Large organization, has dedicated DBA group to manage database fleet
diff --git a/frontend/src/locales/zh-CN.yml b/frontend/src/locales/zh-CN.yml
index f9855c0932..a0fdebbfb8 100644
--- a/frontend/src/locales/zh-CN.yml
+++ b/frontend/src/locales/zh-CN.yml
@@ -1104,10 +1104,13 @@ subscription:
title: 版本
free:
title: 免费版
+ label: ''
desc: 个人或小团队,无专职 DBA
team:
title: 团队版
+ label: Beta
desc: 中型团队,有专职 DBA 或 TL 以提高工程速度
enterprise:
title: 企业版
+ label: 预览版
desc: 大型组织,有专属 DBA 团队来管理数据库
diff --git a/frontend/src/types/plan.ts b/frontend/src/types/plan.ts
index 0bc46ebee8..d38a061602 100644
--- a/frontend/src/types/plan.ts
+++ b/frontend/src/types/plan.ts
@@ -26,7 +26,6 @@ export type PlanPatch = {
export interface Plan {
// Plan meta data
- label?: string;
type: PlanType;
trialDays: number;
unitPrice: number;
@@ -138,7 +137,6 @@ export const FREE_PLAN: Plan = {
export const TEAM_PLAN: Plan = {
// Plan meta data
- label: "Beta",
type: PlanType.TEAM,
trialDays: 7,
unitPrice: 1740,
@@ -187,7 +185,6 @@ export const TEAM_PLAN: Plan = {
export const ENTERPRISE_PLAN: Plan = {
// Plan meta data
- label: "Early access",
type: PlanType.ENTERPRISE,
trialDays: 7,
unitPrice: 0,