Repository navigation
fix(pickers): show people the server found even when the row text differs - #570
Merged
Merged
Conversation
…fers The people pickers (use case, collaborative, publication contributors) filtered the server's searchUsers results again in the browser, keeping only rows whose name or grey line contained the typed text. A person found by their full email address or login name was therefore hidden, because the row shows neither. Rows from searchUsers now carry the search text they were found for and are shown for exactly that text. Organisation rows, which are not searched on the server, and results still shown from an earlier search keep the text filter.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The people pickers (use case People & Organisations, collaborative People, publication Contributors) now show every person
searchUsersreturns, even when the row's name and grey line do not contain the typed text.Before, the picker filtered the server's results again in the browser on the row's name + grey line. Someone found by their full email address or login name was hidden, because the row shows neither.
Rows from
searchUsersnow carry the search text they were found for (matchedSearchonEntityRow) and are shown for exactly that text. Organisation rows (not searched on the server) and results still on screen from an earlier search keep the browser filter. The Add member dialog is unchanged (it already shows the server's results as they are).Needed for CivicDataLab/DataSpaceBackend#341, which stops sending other users' email and email-like login names. Safe to merge before it: on the current backend it only shows rows the server already returned.
What testers will see once DataSpaceBackend#341 is live (expected, not bugs):
@.