Batch Actions in a Data Table when rows have different contexts
In a data table, each row represents a user. Each user has a status. The status can be different based on the users actions within the organization. It is shown in the data table on a dashboard for monitoring purposes. The status of the user can also be changed from this dashboard.
Some rows are also logically grouped together because the users share some commonalities.
I want to know the best way to implement a batch action mode where each row can have different action associated with it depending on the current status of the user.
In the screenshot below, G is for grouped entries. Groups can have a expanded view (Purple) or a Collapsed View (Pink).
The colored tabs are different statuses which can change from one to the next. Yellow > Green > Dark Gray.
How to deal with a person clicking on the select all checkbox (row header) which results in him selecting entries that have no common actions.
Also as groups are also a part of this, is there a way to show the user that the group selected will also be acted upon even if it is collapsed? Or should I disable the batch selection mode from Group altogether but I still need to keep an option to select all the entries of one single group at the same time as well (which will also pose the same problem with different statuses and different actions available on each status).