YannickRe / spfx-msgraph-peoplesearch

Show and search users from your organization with an SPFx web part, through Microsoft Graph.
40 stars 33 forks source link

Umlaut replacement and customizable multiple persona search fields settings added #86

Open haksuman opened 2 months ago

haksuman commented 2 months ago
Q A
Bug fix? no
New feature? yes
Doc fix no
Related issues? no

What's in this Pull Request?

Basically two things added in this pull-request. The first one is a toggle settings to convert searchbox umlaut charachters into equivalent text corresponding values to fix empty query errors for theses use cases. (ü -> ue, ö -> oe, ä -> ae, ß -> ss). For example, when the user typed "Müller" to search bar, it sends search query as "Mueller" if this umlaut setting is enabled. Location of settings can be seen in following picture.

image

Secondly, in current version search bar only searches throught the userPrincipalName. In this pull request, it is made to be customizable for which fields should be included in search results and it allows to search through multiple fields. In following picture, it can be seen that searchable fields can be adjusted on changing needs.

image