-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(People Picker) Deterministic Suggestions Resolution #51
(People Picker) Deterministic Suggestions Resolution #51
Conversation
fixes other minor typos and consistency issues
This seems far more reliable. Thanks Scott. |
* Calendar Test Added - gitignore updated * Removed Shimmer Coverage/ Updated Test Snaps * Udpated Test for Progress Indicator * fix:(Calendar) test failing due to dependency on today's date (#30) * fix: (pivot) width in custom pages (#33) chore: (pivot) npm update - stay with pcf-scripts 1.14.2 due to webpack dependency issue * fix: auto-height in custom pages (#32) fix: onchange not fired when any outputs undefined chore: npm update and test chore: spelling mistake chore: variable names should be camelCase * Facepile component added (#35) * Facepile component added * reactdom-definition * fixing typos * Update Facepile.1033.resx Adding preview tag * Facepile propertyname changed (#48) * Features/people picker (#46) * PeoplePicker Added * Code refactor and Documentation * Updated readme, fixed typos. * refactor: code optimization-onsearch/retries * Tweaks * refactor : render - pre-selected members * Readme modified * refactor : duplicate code removed * refactor : personakey & presence type change * refactor: presence return type fix Co-authored-by: Scott Durow <scott_durow@hotmail.com> * Searchbox (#49) * Added SearchBox * updated searchbox * added comments to index * renamed component.types.ts and updated searchbox * added tests * enhancement Co-authored-by: Denise Moran <43950360+denisem-msft@users.noreply.github.com> * test: test modified * (People Picker) Deterministic Suggestions Resolution (#51) * fixes issue with suggestions not resolving correctly fixes other minor typos and consistency issues * fix casing on peoplepicker file Co-authored-by: Scott Durow <scott_durow@hotmail.com> Co-authored-by: Denise Moran <43950360+denisem-msft@users.noreply.github.com>
* Calendar Test Added - gitignore updated * Removed Shimmer Coverage/ Updated Test Snaps * Udpated Test for Progress Indicator * fix:(Calendar) test failing due to dependency on today's date (#30) * fix: (pivot) width in custom pages (#33) chore: (pivot) npm update - stay with pcf-scripts 1.14.2 due to webpack dependency issue * fix: auto-height in custom pages (#32) fix: onchange not fired when any outputs undefined chore: npm update and test chore: spelling mistake chore: variable names should be camelCase * Facepile component added (#35) * Facepile component added * reactdom-definition * fixing typos * Update Facepile.1033.resx Adding preview tag * Facepile propertyname changed (#48) * Features/people picker (#46) * PeoplePicker Added * Code refactor and Documentation * Updated readme, fixed typos. * refactor: code optimization-onsearch/retries * Tweaks * refactor : render - pre-selected members * Readme modified * refactor : duplicate code removed * refactor : personakey & presence type change * refactor: presence return type fix Co-authored-by: Scott Durow <scott_durow@hotmail.com> * Searchbox (#49) * Added SearchBox * updated searchbox * added comments to index * renamed component.types.ts and updated searchbox * added tests * enhancement Co-authored-by: Denise Moran <43950360+denisem-msft@users.noreply.github.com> * test: test modified * (People Picker) Deterministic Suggestions Resolution (#51) * fixes issue with suggestions not resolving correctly fixes other minor typos and consistency issues * fix casing on peoplepicker file * Searchbox - fix : custom page width (#52) * Added SearchBox * updated searchbox * added comments to index * renamed component.types.ts and updated searchbox * added tests * enhancement * removed comments from searchbox tests * fix : Addresses CustomPage Width Co-authored-by: Denise Moran <43950360+denisem-msft@users.noreply.github.com> * October release doc updates * refactor: modified create-release-added npm ci * Update Facepile.resx remove additional tags * Searchbox (#56) * updated readme * fix: assigning class to searchbox * feature : set focus Co-authored-by: Denise Moran <43950360+denisem-msft@users.noreply.github.com> * Creatorkit mehdis persona (#47) * Person Component * Adding missed resource properties * Various updates fixing comments from code review * Adding InitialsColors property * removing unused import and fixing readme * fix: component import fix Co-authored-by: Ramakrishnan Raman <raram@microsoft.com> * Feature/searchbox#82 (#131) * feat:#82 - completed * Feature/tooltip (#132) * Added tooltipcontext property * Updated strings * feat:icon tooltip Co-authored-by: Denise Moran <43950360+denisem-msft@users.noreply.github.com> * feat:SubwayNav component added (#133) * feat:SubwayNav component added * feat:spinbutton (#134) * included Spinbtn directory * removing code * duplicate directory mention * adding subwaynav versioning stamp * fix:custom page width issue (#145) * feat:subwaynav showanimation property (#225) * feat:subwaynav showanimation property * updated tests * fixes microsoft/powercat-creator-kit#285 (#226) * fixes microsoft/powercat-creator-kit#316 (#228) * feat: searchbox-defaultvalue-set-option (#230) * feat: searchbox-defaultvalue-set-option * fixes calendar language support (#231) * fixes searchtext bound property (#234) * fixes searchtext bound property * updated testsnap * feat: searchbox bordercolor property (#235) --------- Co-authored-by: Scott Durow <scott_durow@hotmail.com> Co-authored-by: Denise Moran <43950360+denisem-msft@users.noreply.github.com> Co-authored-by: Mehdi Slaoui Andaloussi <slaouist@hotmail.com>
With the current beta implementation of the People Picker, the comparison of suggestion results with the search text was giving unpredictable results due to the comparison of the first record using both the key and name. If there was an operation that took longer than the 8-second timeout, the results would not be displayed correctly.
Additionally, if a result set returned no matches, then the suggestions were never resolved.
This PR attempts to create a more deterministic approach to handling suggestion resolution for the following search approaches:
For the following scenarios:
updateView
will be triggered)The debounce module is used to ensure that new requests, replace previous ones and any resolution of suggestions can be superseded by a new one.
The PR also includes some minor typo and consistency fixes.
Since PCF cannot be guaranteed to return only a single suggestion result for each event raised, there is an inherent debounce and timeout built into this implementation - this does result in a somewhat response times.
I would be interested in what you think.