Content
View differences
Updated by Henriette Darge over 1 year ago
**As** a project member admin
**I want to** be asked for confirmation before I delete certain important objects
**so that** make sure I don't indadvertently delete important information
#### **Acceptance criteria**
**Step 1**
* Create a new Primer component titled "Danger Confirmation Dialog"
* This dialog will be based on the [**Feedback Dialog**](https://qa.openproject-edge.com/lookbook/pages/patterns/feedback_dialog_and_feedback_message)
* A basic (default) Danger Confirmation Dialog is composed of:
* A red warning icon
* Title: "Permanently delete?"
* A content slot, text: "This action is not reversible. Please proceed with caution."
* A confirmation checkbox: "I understand that this deletion cannot be reversed"
* Footer actions:
* Cancel
* Delete permanently
* The "Delete permanently" button is disabled until the user checks the confirmation checkbox
* The Content area can be replaced with other options, like:
* Different text
* List of work packages
* Additional interaction
**Step 2**
* Replace the following currently existing Rails danger zones with the new component in these pages:
* work\_packages: bulk/destroyusers: deletion
* repositories: destroy
* projects: change identifier
* placeholder\_users: deletion
* projects: destroy
* storages: destroy
* openid\_connect: destroy
* ldap\_groups/synchronized\_filters: destroy
* ldap\_groups/synchronized\_groups: destroy
* saml/providers: destroy
* Do **not** replace the currently implemented Rails danger zones in this page:
* admin/backups: reset\_token
#### Visuals
**Default Danger Confirmation Dialog, confirmation checkbox unchecked:**
**<img class="image_resized op-uc-image op-uc-image_inline" style="width:700px;" src="/api/v3/attachments/234574/content">**
**Default Danger Confirmation Dialog, confirmation checkbox checked:**
<img class="image_resized op-uc-image op-uc-image_inline" style="width:700px;" src="/api/v3/attachments/234575/content">
**Danger confirmation Dialog: Delete List (Hierarchy) custom field:**
<img class="image_resized op-uc-image op-uc-image_inline" style="width:700px;" src="/api/v3/attachments/234576/content">
**Danger Confirmation Dialog: Delete SSO:**
<img class="image_resized op-uc-image op-uc-image_inline" style="width:700px;" src="/api/v3/attachments/234577/content">
**Danger Confirmation Dialog: Bulk delete work packages:**
**<img class="image_resized op-uc-image op-uc-image_inline" style="width:700px;" src="/api/v3/attachments/234578/content">**
#### **Figma**
workPackageValue:"Figma wireframes"
**I want to** be asked for confirmation before I delete certain important objects
**so that** make sure I don't indadvertently delete important information
#### **Acceptance criteria**
* This dialog will be based on the [**Feedback Dialog**](https://qa.openproject-edge.com/lookbook/pages/patterns/feedback_dialog_and_feedback_message)
* A basic (default) Danger Confirmation Dialog is composed of:
* A red warning icon
* Title: "Permanently delete?"
* A content slot, text: "This action is not reversible. Please proceed with caution."
* A confirmation checkbox: "I understand that this deletion cannot be reversed"
* Footer actions:
* Cancel
* Delete permanently
* The "Delete permanently" button is disabled until the user checks the confirmation checkbox
* The Content area can be replaced with other options, like:
* Different text
* List of work packages
* Additional interaction
**Step 2**
* Replace the following currently existing Rails danger zones with the new component in these pages:
* work\_packages: bulk/destroyusers: deletion
* repositories: destroy
* projects: change identifier
* placeholder\_users: deletion
* projects: destroy
* storages: destroy
* openid\_connect: destroy
* ldap\_groups/synchronized\_filters: destroy
* ldap\_groups/synchronized\_groups: destroy
* saml/providers: destroy
* Do **not** replace the currently implemented Rails danger zones in this page:
* admin/backups: reset\_token
#### Visuals
**Default Danger Confirmation Dialog, confirmation checkbox unchecked:**
**<img class="image_resized op-uc-image op-uc-image_inline" style="width:700px;" src="/api/v3/attachments/234574/content">**
**Default Danger Confirmation Dialog, confirmation checkbox checked:**
<img class="image_resized op-uc-image op-uc-image_inline" style="width:700px;" src="/api/v3/attachments/234575/content">
**Danger confirmation Dialog: Delete List (Hierarchy) custom field:**
<img class="image_resized op-uc-image op-uc-image_inline" style="width:700px;" src="/api/v3/attachments/234576/content">
**Danger Confirmation Dialog: Delete SSO:**
<img class="image_resized op-uc-image op-uc-image_inline" style="width:700px;" src="/api/v3/attachments/234577/content">
**Danger Confirmation Dialog: Bulk delete work packages:**
**<img class="image_resized op-uc-image op-uc-image_inline" style="width:700px;" src="/api/v3/attachments/234578/content">**
#### **Figma**
workPackageValue:"Figma wireframes"