馃帹 Design: Introduce the ability to remove an organization

Problem

Once an organization is created, how might that organization be removed? Should we even allow for that to happen? If we do, what happens to all of the content within the organization? Would it also be deleted, or would we need to give people the option to move it elsewhere?

By design, we have decided that the default organization cannot be deleted, so it will be protected by some logic to prevent deletions. The designs need to account for messaging relating to this specific scenario as well.

Proposal

  1. Default organization can't be deleted; delete button is hidden.
  2. All other organizations can be deleted; delete button is visible.
  3. Once the delete button is clicked, we'll check to see if there are still top-level groups within the organization. If there are, we will display a message letting them know that the top-level groups need to be deleted before they can delete the organization.
  4. Once the delete button is clicked, if there are no top-level groups within the organization that need to be deleted, we can proceed with displaying the confirmation message.
  5. Following the "soft delete" pattern for groups and projects, admins will see the organization that's been deleted in the "pending deletion" tab on the organization overview page. The default delete period will be seven days.
  6. Following the "soft delete" pattern for groups and projects, admins will see the organization that's been deleted in the "pending deletion" tab on the admin organization overview page (once it exists; doesn't currently). The default delete period will be seven days.
  7. Since we're allowing organizations to follow the delayed deletion pattern, we'll also need to update the settings text to clarify that organizations are now included in the more general pattern.
1. Default organization 2. All other organizations 3. "Failure" modal 4. Confirmation modal 5. Pending deletion - Org overview 6. Pending deletion - Admin 7. Pending deletion setting - text update
Default Other_orgs Failure_modal Delete_confirmation_modal Your_work_-_Organizations-pending Admin_overview_-_Organizations Screenshot_2023-08-02_at_10.15.11_AM

Figma

Edited Aug 03, 2023 by Amelia Bauerly
Assignee Loading
Time tracking Loading