16212: Refactors PeopleSelect component used on 'Share' dialog.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Mon, 27 Apr 2020 22:06:29 +0000 (19:06 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 29 Apr 2020 20:24:36 +0000 (17:24 -0300)
commit792b37dffef102105fa902888cb948da43b892b4
tree5b3aa887dc2d5b2f96ae80cd5bddc88e0ec98988
parent075dd4fd268311d5e28029ad3372cd5efb000c4d
16212: Refactors PeopleSelect component used on 'Share' dialog.

* Now named ParticipantSelect as it also retrieves Groups.
* Search for 'any' field on Users instead of just email.
* Don't request groups if 'onlyPeople' prop passed.
* Show users' display name, including email.
* Fix chip rendering to show the same as what's listed.

TBD: ParticipantSelect retrieves only 5 items per request when autocompleting.
This may not be what users expect, but listing too many items require UI
adjustments.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>
src/models/user.test.ts
src/models/user.ts
src/store/group-details-panel/group-details-panel-actions.ts
src/store/groups-panel/groups-panel-actions.ts
src/views-components/dialog-forms/add-group-member-dialog.tsx
src/views-components/dialog-forms/create-group-dialog.tsx
src/views-components/sharing-dialog/participant-select.tsx [moved from src/views-components/sharing-dialog/people-select.tsx with 60% similarity]
src/views-components/sharing-dialog/sharing-invitation-form-component.tsx