In my system, I initially had a single table of users with a simple search field that would filter the table on whatever input was given.
Now I extended this table with a group selection on the left of the table. User can create these groups, and add the user under the correct group.
The problem I now have though is that the search filter doesn't really make sense. Say for example i search on "Mary" It currently will do this:
This is how it worked before, and how it worked on other tables in the system as well. But then I realized, with the addition of the group selection on the left: What if there other Mary's in the other groups?
Likewise, say i search on a "Michael", a user that's in a different group than the one is currently selected:
This gives the impression that there's no user named Michael in the system, but what if there was a Michael under the R&D group?
So a two solutions I thought of:
2) Don't show results automatically, but show a dropdown with results that the user must select