Closed
Description
Feature Request
For the moment we have a 2 buttons (Add members / Manage Members), each one open is own modal, we want to refactorize this part to mutualize them in 1 modal, with a different design.
Before
After
Goal step
- On the top of the modal add the logic of "Add members", the roles will be in a select box.
- Under we will list the users added, so we need to import the logic of "Manage Members", and adapt it to the new design
- We will use a infinite scroll to display the users
- We will add a trash icon on the right of the user to remove them
- Preserve the roles update information
Code resources
Add member:
https://github.com/numerique-gouv/impress/blob/main/src/frontend/apps/impress/src/features/docs/members/members-add/components/ModalAddMembers.tsx
Manage Members:
https://github.com/numerique-gouv/impress/blob/main/src/frontend/apps/impress/src/features/docs/members/members-grid/components/MemberGrid.tsx
InfiniteScroll:
https://github.com/numerique-gouv/impress/blob/main/src/frontend/apps/impress/src/components/InfiniteScroll.tsx