Content
View differences
Updated by Parimal Satyal 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**
* Create Show a new Primer component titled "Danger Confirmation Dialog"
* This "danger zone" confirmation dialog will be based on when 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: user tries to delete certain high-value shared resources:
* A red warning icon
* Title: "Permanently delete?"
* A content slot, text: "This Remind them that the action is not reversible. Please proceed with caution."
* A irreversibly in a the confirmation checkbox: "I understand that this deletion cannot be reversed" dialog
* Footer actions:
* Cancel
* Delete permanently
* The Require a conscious action (a second layer of confirmation) before the "Delete permanently" button action 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 enabled
* Replace Show this when the following currently existing Rails danger zones with the new component in these pages: user tries to delete:
* work\_packages: bulk/destroyusers: deletion An OIDC provider
* repositories: destroy A SAML configuraiton
* projects: change identifier A board
* placeholder\_users: deletion A public view
* 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**
* Create
* This
* A basic (default) Danger Confirmation Dialog is composed of:
* A red warning icon
* Title: "Permanently delete?"
* A content slot, text: "This
* A
* Footer actions:
* Cancel
* Delete permanently
* The
* The Content area can be replaced with other options, like:
* Different text
* List of work packages
* Additional interaction
* Replace
* 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"