sparrowapp-dev / sparrow-app

Your next-gen API testing and development tool.
https://sparrowapp.dev
GNU Affero General Public License v3.0
52 stars 31 forks source link

Workspace - Removing a Member #1127

Closed Madhvan-0912 closed 2 months ago

Madhvan-0912 commented 3 months ago

Description:

When the user is on the members page of a team or workspace section, they should be able to remove a member. Clicking on the "Remove " option in the role dropdown should trigger a popup for confirmation. After confirming the removal, the user should see a success or failure toast message.

Figma: image

Acceptance Criteria:

Acceptance Criteria 1: Given the user is on the members page of a team or workspace section When the user clicks on the RHS side of a member where the role is mentioned Then a dropdown should appear with options to change the role and remove the member.

Acceptance Criteria 2: Given the dropdown for managing a member is displayed When the user clicks on the "Remove" option Then a popup should appear asking for confirmation to remove the member.

Acceptance Criteria 3: Given the popup for removing a member is displayed When the user views the popup Then the popup should include a confirmation message and options to remove or cancel the operation.

Acceptance Criteria 4: Given the user has confirmed to remove the member When the user clicks on "Remove" Then a success toast message should appear indicating that the member has been successfully removed.

Acceptance Criteria 5: Given the user has canceled removing the member or encountered an error When the user closes the popup Then a failure toast message should appear indicating that the operation was unsuccessful.

sanilnayak commented 2 months ago

Image

Image

sanilnayak commented 2 months ago

Working in mac @shreyas070707 please test on windows

shreyas070707 commented 2 months ago

AC1- Change the role and remove option are present in both team and workspace section

Image

Image

AC2 AND AC3- REMOVE pop-up is present and both buttons are present

Image

Image

AC4 and AC5- cancel and remove both things are working in both workspace and team level https://techdome-my.sharepoint.com/:v:/g/personal/shreyas_pharande_techdome_net_in/EcNd6TZ1cZZDnAQeJr07TrABUVESQufNnvOomWvDbx597A?e=VmSc4L