Add sorting/filtering/paging to CRM contacts
What does this MR do and why?
This MR adds searching, paging and moves sorting from client-side to server-side for the CRM contact list.
The backend changes have just been merged, but because the feature is minimally used at present, we shouldn't need to wait for the next release to drop the frontend changes.
Screenshots or screen recordings
How to set up and validate locally
You'll need a group with CRM enabled and some contacts (ideally active and inactive)- see docs. If you've recently reseeded your GDK you should already have them.
Otherwise, you should be able to do something like this from rails:
FactoryBot.create_list(:contact, 10, group: Group.find(31), state: 'inactive')
Visit the group contact list and try searching, sorting and filter (switching tabs).
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #2256