feat: add campaign/partner filters, delete_user action, and fix modal positioning in AdminBulkActions

Add campaign and partner filter dropdowns for user filtering, implement
delete_user bulk action with delete_from_panel checkbox, fix ActionModal
to use createPortal with viewport-fixed positioning and safe area insets.
This commit is contained in:
Fringg
2026-04-24 16:04:20 +03:00
parent 5cfbce0663
commit b01ffe3309
7 changed files with 372 additions and 10 deletions

View File

@@ -2043,12 +2043,18 @@
"assignPromoGroup": "Assign promo group",
"grantSubscription": "Grant subscription",
"setDevices": "Set devices",
"deleteSubscription": "Delete subscriptions"
"deleteSubscription": "Delete subscriptions",
"deleteUser": "Delete users"
},
"deleteSubscription": {
"warning": "Selected subscriptions will be permanently deleted from the bot and RemnaWave panel!",
"hint": "Users will lose VPN access for deleted subscriptions. This action cannot be undone."
},
"deleteUser": {
"warning": "Selected users will be permanently deleted from the bot! All their subscriptions, balance, and data will be lost!",
"hint": "This action cannot be undone. Users will need to restart the bot to create a new account.",
"deleteFromPanel": "Also delete from RemnaWave panel"
},
"params": {
"days": "Number of days",
"tariff": "Select tariff",
@@ -2088,6 +2094,8 @@
"allStatuses": "All statuses",
"allTariffs": "All tariffs",
"allGroups": "All groups",
"allCampaigns": "All campaigns",
"allPartners": "All partners",
"trialOnly": "Trial only",
"tariffsSelected": "{{count}} tariffs",
"selectAll": "Select all",