Add thresholds to users/courses/sessions searches
In all double list screens (assign users to courses, assign users to sessions, assign users to DRH), we should have thresholds requiring a minimum of letters for the auto-complete search, depending on the total number of users in the users table.For example:
- count < 1000 users: allow search on a single letter
- 1000 < count<5000: allow search on a minimum of 2 letters
- 5000 < count ... : only allow search on a minimum of 3 letters
This would really adapt the reality of this search to the user's needs, as currently, allowing a search of one character on a 100,000 users list would be simply frustrating (quick changes would take ages to get results, and querying a list of users with 20 characters in their full name would give a 2MB download for the list to appear...