mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-29 18:13:47 +00:00
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:
@@ -12,7 +12,8 @@ export type BulkActionType =
|
||||
| 'assign_promo_group'
|
||||
| 'grant_subscription'
|
||||
| 'set_devices'
|
||||
| 'delete_subscription';
|
||||
| 'delete_subscription'
|
||||
| 'delete_user';
|
||||
|
||||
export interface BulkActionRequest {
|
||||
action: BulkActionType;
|
||||
@@ -30,6 +31,7 @@ export interface BulkActionParams {
|
||||
balance_description?: string;
|
||||
promo_group_id?: number | null;
|
||||
device_limit?: number;
|
||||
delete_from_panel?: boolean;
|
||||
}
|
||||
|
||||
export interface BulkActionErrorItem {
|
||||
|
||||
@@ -411,6 +411,11 @@ export const adminUsersApi = {
|
||||
search?: string;
|
||||
email?: string;
|
||||
status?: 'active' | 'blocked' | 'deleted';
|
||||
subscription_status?: string;
|
||||
tariff_id?: string;
|
||||
promo_group_id?: number;
|
||||
campaign_id?: number;
|
||||
partner_id?: number;
|
||||
sort_by?:
|
||||
| 'created_at'
|
||||
| 'balance'
|
||||
|
||||
Reference in New Issue
Block a user