Open
Description
Notes
It'd be nice to have the option to either hide or gray out users who don't make sense to suggest (can't be added to, or are already in a group for example). This would benefit from backend support, or otherwise you might end up with cascading queries from trying to find someone valid to suggest.
Backend support for this might...
- Prioritize ordering valid suggestions first
- Accept a criteria for ordering/labeling ("downgrade users who are in this group", "downgrade users who are not in this org") and report which criteria applies, allowing the frontend to provide information. ("This user cannot be added to this group, because they are not in this organization.")
- Ignore invalid suggestions outright (might be confusing if you're searching for a user that you know exists)
- Rather than trying to make this some super general thing, we have a few endpoints like /organization/:orgId/members/member-suggestions that just know how to do the right thing for a specific context.
This could be partially implemented on the frontend, but wouldn't be able to prioritize valid suggestions, and would need to make a lot of queries about users to see if they're valid suggestions or not.
I think this could be really nice to have, but could also be pretty gnarly to implement.
Goals
- Ignore or gray-out invalid user suggestions.