Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Show confirmation dialog before removing a team member and revoking admin rights #63240

@vdavid

Description

@vdavid

Context:

  • On the https://sourcegraph.com/cody/team/manage page, when an admin clicks "Remove" on a user, we just remove the user and free up the seat. To re-add the teammate, they need to re-invite them, and the teammate needs to accept.
  • An admin can revoke admin rights even from themselves (provided that there is another admin on the team) with a single click. To revert this action, they need to ask a remaining admin to make them an admin again.

Problem: This behavior can easily become problematic by admins clicking there by mistake or just clicking to see, not expecting immediate action.

Solution: Reuse the modal that we use for plan cancellations:

  • Revoke admin rights
    • Copy:
      • Are you sure?
      • By revoking admin rights for , they will no longer be able to administer users on this Cody Pro team. They will still have access to Cody Pro and remain on the team.
      • Do you want to proceed?
    • CTAs:
      • No, I've changed my mind
      • Confirm
  • Remove teammates:
    • Copy:

      • Are you sure?
      • By removing , they will be notified by email that they've been removed from the team and immediately lose access to Cody Pro.
      • Do you want to proceed?
    • CTAs:

      • No, I've changed my mind
      • Confirm removal

      Screenshot 2024-06-18 at 3.27.22 PM.png

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions