Skip to content

Commit f2aea9c

Browse files
fix: Display appropriate title for unsubscribed state (#6396)
## Summary Fixes misleading title display in unsubscribed state of the SubscriptionPanel. ### Changes Made - **Conditional Title Logic**: Added state-aware title display in `SubscriptionPanel.vue` - **New Translation Key**: Added `subscription.titleUnsubscribed` → "Subscribe to Comfy Cloud" - **Prevents Confusion**: Eliminates "account created" or other inappropriate messages showing as titles ### Behavior - **Subscribed Users**: See "Subscription" (existing behavior) - **Unsubscribed Users**: See "Subscribe to Comfy Cloud" (new, clearer messaging) ### Testing - ✅ All existing SubscriptionPanel tests pass - ✅ TypeScript compilation successful - ✅ Linting passes - ✅ Follows translation patterns ### Context This addresses the UX issue discovered on testcloud.comfy.org where unsubscribed users were seeing misleading title text instead of clear subscription prompts. 🤖 Generated with [Claude Code](https://claude.ai/code) ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6396-fix-Display-appropriate-title-for-unsubscribed-state-29c6d73d3650818a8136f6a99e312651) by [Unito](https://www.unito.io) Co-authored-by: Claude <[email protected]>
1 parent c8e2419 commit f2aea9c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/locales/en/main.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,6 +1655,7 @@
16551655
},
16561656
"subscription": {
16571657
"title": "Subscription",
1658+
"titleUnsubscribed": "Subscribe to Comfy Cloud",
16581659
"comfyCloud": "Comfy Cloud",
16591660
"beta": "BETA",
16601661
"perMonth": "USD / month",

src/platform/cloud/subscription/components/SubscriptionPanel.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
<div class="flex h-full flex-col gap-6">
44
<div class="flex items-baseline gap-2">
55
<span class="text-2xl font-inter font-semibold leading-tight">
6-
{{ $t('subscription.title') }}
6+
{{
7+
isActiveSubscription
8+
? $t('subscription.title')
9+
: $t('subscription.titleUnsubscribed')
10+
}}
711
</span>
812
<CloudBadge
913
reverse-order

0 commit comments

Comments
 (0)