fix(subscription): plan comparison + checkout read the live plan catalog
CI/CD / CI · API (dotnet build + test) (push) Successful in 42s
CI/CD / CI · Admin API (dotnet build) (push) Successful in 30s
CI/CD / CI · Dashboard (tsc) (push) Successful in 1m10s
CI/CD / CI · Admin Web (tsc) (push) Successful in 38s
CI/CD / CI · Website (tsc) (push) Successful in 47s
CI/CD / CI · Koja (tsc) (push) Successful in 50s
CI/CD / Deploy · all services (push) Successful in 3m27s
CI/CD / CI · API (dotnet build + test) (push) Successful in 42s
CI/CD / CI · Admin API (dotnet build) (push) Successful in 30s
CI/CD / CI · Dashboard (tsc) (push) Successful in 1m10s
CI/CD / CI · Admin Web (tsc) (push) Successful in 38s
CI/CD / CI · Website (tsc) (push) Successful in 47s
CI/CD / CI · Koja (tsc) (push) Successful in 50s
CI/CD / Deploy · all services (push) Successful in 3m27s
The merchant plan page hard-coded 4 tiers, prices and a feature matrix that drifted from the admin-editable platform catalog (Starter tier missing, stale prices/features). PlanComparison and CheckoutScreen now consume /platform/plans + new /platform/features-catalog: - columns = active plans by SortOrder (incl. Starter), names from DisplayNameFa/En, prices from MonthlyPriceToman - limit rows from PlanLimitsData (int.MaxValue → "نامحدود") - feature rows from the feature catalog, ticked via FeatureKeys - checkout validates the ?plan= param against isBillableOnline and prices from the catalog — no more client-side price constants fa/en/ar limit-row labels added. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1320,6 +1320,17 @@
|
||||
"Business": "أعمال",
|
||||
"Enterprise": "مؤسسات"
|
||||
},
|
||||
"limits": {
|
||||
"maxOrdersPerDay": "طلبات في اليوم",
|
||||
"maxBranches": "الفروع",
|
||||
"maxTerminals": "أجهزة الكاشير",
|
||||
"maxTables": "الطاولات",
|
||||
"maxCustomers": "عملاء CRM",
|
||||
"maxSmsPerMonth": "رسائل SMS شهرياً",
|
||||
"maxMenuItems": "أصناف القائمة",
|
||||
"maxReportHistoryDays": "سجل التقارير (أيام)",
|
||||
"maxMenuAi3dPerMonth": "صور AI ثلاثية الأبعاد شهرياً"
|
||||
},
|
||||
"features": {
|
||||
"ordersPerDay": "طلبات يومياً",
|
||||
"terminals": "أجهزة نقطة البيع",
|
||||
|
||||
@@ -1402,6 +1402,17 @@
|
||||
"Business": "Business",
|
||||
"Enterprise": "Enterprise"
|
||||
},
|
||||
"limits": {
|
||||
"maxOrdersPerDay": "Orders per day",
|
||||
"maxBranches": "Branches",
|
||||
"maxTerminals": "POS terminals",
|
||||
"maxTables": "Tables",
|
||||
"maxCustomers": "CRM customers",
|
||||
"maxSmsPerMonth": "SMS per month",
|
||||
"maxMenuItems": "Menu items",
|
||||
"maxReportHistoryDays": "Report history (days)",
|
||||
"maxMenuAi3dPerMonth": "AI 3D images per month"
|
||||
},
|
||||
"features": {
|
||||
"ordersPerDay": "Orders per day",
|
||||
"terminals": "POS terminals",
|
||||
|
||||
@@ -1403,6 +1403,17 @@
|
||||
"Business": "بیزنس",
|
||||
"Enterprise": "سازمانی"
|
||||
},
|
||||
"limits": {
|
||||
"maxOrdersPerDay": "سفارش در روز",
|
||||
"maxBranches": "شعبه",
|
||||
"maxTerminals": "ترمینال صندوق",
|
||||
"maxTables": "میز",
|
||||
"maxCustomers": "مشتری CRM",
|
||||
"maxSmsPerMonth": "پیامک در ماه",
|
||||
"maxMenuItems": "آیتم منو",
|
||||
"maxReportHistoryDays": "تاریخچه گزارش (روز)",
|
||||
"maxMenuAi3dPerMonth": "تصویر AI سهبعدی در ماه"
|
||||
},
|
||||
"features": {
|
||||
"ordersPerDay": "سفارش در روز",
|
||||
"terminals": "ترمینال صندوق",
|
||||
|
||||
Reference in New Issue
Block a user