Skip to content

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

chore: improve upgrade subscription banner (#6140)

Tianzhou (天舟)bd9af29ef2a0
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 939dd31cb7..1ecc685897 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -1858,7 +1858,7 @@
}
},
"plan-features": "{plan} Features",
- "overuse-warning": "{neededPlan} on {currentPlan} may be lost. Upgrade now to ensure continued access.",
+ "overuse-warning": "{neededPlan} on {currentPlan} will be restricted. Upgrade now to ensure continued access.",
"overuse-modal": {
"description": "You are using features unavailable in the {plan}. Upgrade now to ensure continued access:",
"instance-count-exceeds": "Instance count exceeds the limit ${count}"
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index f1c3311a1b..0f3be1cced 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -1854,9 +1854,9 @@
}
},
"plan-features": "{plan}功能",
- "overuse-warning": "{neededPlan}在{currentPlan}可能受限,现在升级以确保正常使用。",
+ "overuse-warning": "{neededPlan}在{currentPlan}将会受限,请尽快升级以确保正常使用。",
"overuse-modal": {
- "description": "您正在使用当前 {plan} 不包含的功能。立即升级避免影响使用。",
+ "description": "您正在使用当前「{plan}」不包含的功能。立即升级避免影响使用。",
"instance-count-exceeds": "实例数量超出了限制 {count}"
},
"features": {
diff --git a/frontend/src/views/BannerUpgradeSubscription.vue b/frontend/src/views/BannerUpgradeSubscription.vue
index 2f20b59ca8..038ca69290 100644
--- a/frontend/src/views/BannerUpgradeSubscription.vue
+++ b/frontend/src/views/BannerUpgradeSubscription.vue
@@ -5,7 +5,9 @@
class="mx-auto py-1 px-3 w-full flex flex-row items-center justify-center flex-wrap"
>
<div class="flex flex-row items-center">
- <heroicons-outline:megaphone class="w-5 h-auto text-gray-800 mr-1" />
+ <heroicons-outline:exclamation-circle
+ class="w-5 h-auto text-gray-800 mr-1"
+ />
<i18n-t tag="p" keypath="subscription.overuse-warning">
<template #neededPlan>
<span
@@ -20,7 +22,7 @@
</i18n-t>
</div>
<button
- class="bg-white btn btn-normal btn-small flex flex-row justify-center items-center ml-2 !py-1"
+ class="btn btn-normal btn-small flex flex-row justify-center items-center ml-2 !py-1 px-2"
@click="gotoSubscriptionPage"
>
{{ $t("subscription.button.upgrade") }}
@@ -91,10 +93,7 @@ const instanceStore = useInstanceStore();
const environmentV1Store = useEnvironmentV1Store();
const showBanner = computed(() => {
- return (
- subscriptionStore.currentPlan !== PlanType.ENTERPRISE &&
- overusedFeatureList.value.length > 0
- );
+ return true;
});
const neededPlan = computed(() => {