Enhance billing status handling in PlanContent component
CI / Backend (build + test) (push) Failing after 1m23s
CI / Frontend (lint + typecheck + build) (push) Successful in 44s

- Integrated billing status query to determine if payment is required for users with active plans.
- Added conditional rendering for a payment notice card, guiding users to the billing page if payment is needed.
- Updated i18n resource files with new translations for payment-related messages, improving user clarity on billing status.
This commit is contained in:
Leonid Pershin committed 2026-07-24 02:43:49 +03:00
1 parent 694683455b
commit 4e1b63645f
2 files changed
+50 -13

No files matched your search

+2
View File
@@ -117,6 +117,7 @@ const resources = {
downgradeNotice: 'Новая квота меньше текущего числа конфигов, занимающих место в квоте (включая приостановленные за неуплату) — выберите, какие отозвать:',
selectExactly: 'Нужно выбрать ровно {{count}} конфиг(ов) для отзыва.',
topUpCreated: 'Тариф увеличен. Создана доплата за оставшийся оплаченный период.',
paymentRequiredNotice: 'Оплата ещё не произведена (или срок истёк) — конфиги недоступны, пока не оформите оплату.',
goToBilling: 'Перейти к оплате',
mustSelectConfigs: 'Выберите конфиги для отзыва.',
perQuarter: '3 мес: {{price}}',
@@ -708,6 +709,7 @@ const resources = {
downgradeNotice: 'The new quota is lower than your current number of configs that still count against it (including ones suspended for non-payment) — choose which to revoke:',
selectExactly: 'Select exactly {{count}} config(s) to revoke.',
topUpCreated: 'Plan increased. A top-up was created for the remaining paid period.',
paymentRequiredNotice: "You haven't paid yet (or your paid period expired) — configs stay unavailable until you complete a payment.",
goToBilling: 'Go to payment',
mustSelectConfigs: 'Select configs to revoke.',
perQuarter: '3 months: {{price}}',