feat: color-code referral network nodes by subscription status

Add subscription status colors: green (paid active), blue (trial active),
red (paid expired), orange (trial expired). Extract NODE_COLORS constant
as single source of truth. Add SubscriptionStatus union type. Show status
badge in user detail panel. Add i18n for all 4 locales.
This commit is contained in:
Fringg
2026-03-22 09:07:32 +03:00
parent 8e59af96c5
commit b289ea9c23
9 changed files with 134 additions and 22 deletions

View File

@@ -1091,7 +1091,11 @@
"topReferrer": "顶级推荐人 (10+)",
"campaignUser": "来自活动",
"partnerCampaignEdge": "合作伙伴 → 活动",
"campaignNode": "广告活动"
"campaignNode": "广告活动",
"paidActive": "付费订阅",
"trialActive": "试用",
"paidExpired": "付费已过期",
"trialExpired": "试用已过期"
},
"user": {
"tgId": "TG ID",
@@ -1110,7 +1114,13 @@
"source": "来源",
"referredBy": "由...推荐",
"fromCampaign": "活动",
"organic": "自然流量"
"organic": "自然流量",
"subscriptionStatus": {
"trial_active": "试用",
"paid_active": "付费",
"trial_expired": "试用已过期",
"paid_expired": "付费已过期"
}
},
"campaign": {
"startParam": "参数",