From eeda567622e0ce17159c251f64126a9c2bc5d962 Mon Sep 17 00:00:00 2001 From: Fringg Date: Fri, 24 Apr 2026 07:03:53 +0300 Subject: [PATCH] feat: second header checkbox for bulk subscription selection Add green checkbox in table header next to the user checkbox for mass-selecting all visible subscriptions. Shows filled/partial/empty states matching user checkbox pattern. Only visible in multi-tariff mode. Wider select column (56px) to fit both checkboxes. --- src/pages/AdminBulkActions.tsx | 70 ++++++++++++++++++++++++---------- 1 file changed, 49 insertions(+), 21 deletions(-) diff --git a/src/pages/AdminBulkActions.tsx b/src/pages/AdminBulkActions.tsx index 1a5bdba..3417d39 100644 --- a/src/pages/AdminBulkActions.tsx +++ b/src/pages/AdminBulkActions.tsx @@ -1756,28 +1756,56 @@ export default function AdminBulkActions() { () => [ { id: 'select', - size: 40, - header: ({ table }) => ( -
- + {/* Select all subscriptions */} + {isMultiTariff && allVisibleSubscriptionIds.length > 0 && ( + )} - aria-label={t('admin.bulkActions.selectAll')} - > - {table.getIsAllRowsSelected() && } - {table.getIsSomeRowsSelected() && !table.getIsAllRowsSelected() && ( -
- )} - -
- ), +
+ ); + }, cell: ({ row }) => { const userName = row.original.full_name || row.original.username || String(row.original.telegram_id);