numerique-gouv / people

Teams management application
MIT License
13 stars 1 forks source link

✨(frontend) add mail domain access management #413

Closed daproclaima closed 1 month ago

daproclaima commented 2 months ago

Purpose

A user with the appropriate privileges should be able to administrate the user's access to his mail domain, like changing a member's access role (viewer, administrator, owner) or deleting his access.

Proposal

Add a view /mail-domains//accesses showing a list of accesses like the group members list on /teams, along with its features.

Note

Adding this new feature, which is very similar to members' management in a group, makes me think that soon, the mail domain mailboxes and access management will need to be merged into the group management feature.

Also, at the moment, only the get accesses backend endpoint is ready to be consumed.

Before

https://github.com/user-attachments/assets/742c755b-caf7-4070-b578-9927e808be3e

After

https://github.com/user-attachments/assets/588213bc-f94c-4286-8eef-ad891adbc6db

daproclaima commented 1 month ago

Sabrina is aware of the impossibility of deleting or updating accesses. She is currently developing the endpoints to bring these features.

I just did what I could to prepare the front end for these soon-to-be-released endpoints. Shortly, components to create accesses will probably have to be added to this view once the POST endpoint is developed on the backend.