feat(cloud): display unavailable plans without checkout actions

This commit is contained in:
RockChinQ
2026-10-16 17:11:00 +08:00
parent aabcaedf15
commit ececcb8749
11 changed files with 40 additions and 1 deletions
@@ -430,7 +430,20 @@ export default function CloudPlansDialog({
<div className="flex-1">
<Benefits plan={plan} spaceURL={spaceURL} />
</div>
{downgradeBlocked ? null : !canManage ? (
{plan.subscription_disabled && (
<p className="mt-4 text-xs text-muted-foreground">
{t('cloudPlans.subscriptionUnavailableHint')}
</p>
)}
{plan.subscription_disabled && !current ? (
<Button
className="mt-6 w-full"
variant="outline"
disabled
>
{t('cloudPlans.subscriptionUnavailable')}
</Button>
) : downgradeBlocked ? null : !canManage ? (
<Button
className="mt-6 w-full"
variant="outline"
@@ -13,6 +13,7 @@ export interface PublicCloudPlan {
limits: Record<string, number>;
features: string[];
is_active: boolean;
subscription_disabled?: boolean;
sort_order: number;
highlight: boolean;
chat_history_retention_days: number;