Content
View differences
Updated by Kabiru Mwenja 3 months ago
**As** a project member editing a collaborative document
**I want to** be warned a document that might have other collaborators is deleted
**so that** there are no surprises and information doesn't just vanish
#### **Context**
The current behaviour is suboptimal in the following scenario:
* Users A and B are editing a document collaboratively
* User A deletes the document
* User B continues editing the document
* After about 10 min from when user A deleted the document, it vanishes for user B
* User B loses data and is confused, possibly frustrated.
Based on a report from Ivana.
#### **Acceptance criteria**
* When a user attempts to delete a collaborative document, show a Danger Dialog with confirmation:
* Title: "Delete this collaborative document?"
* Text: "This will also delete this document for any other users editing or viewing this document. They might lose some of their edits."
* Confirmation: "I understand that this deletion cannot be reversed"
* Actions:
* "Delete permanently" (danger)
* "Cancel" (secondary)
* When a document a user is editing is deleting in the background (by another user)
* The document goes in to read-alone mode.
* Immediately warn the user with a flash banner:
* Scheme: Danger
* Title: Document deleted
* Text: This document was deleted by another user and will be lost on reload. Please copy any text you would like to preserve.
* Not dismissable
* No actions
####
####
#### **Technical notes**
* ~~We We need to remove the 10 minute delay and be able to propagate information about deletion to other connected users immediately.~~ immediately.
#### **Permissions and visibility considerations**
* No changes. Deletion is only possible by users who have the necessary permissions.
#### **Translation considerations**
* The texts require new translation strings
#### **Out of scope**
* Proper offline mode
**I want to** be warned a document that might have other collaborators is deleted
**so that** there are no surprises and information doesn't just vanish
#### **Context**
The current behaviour is suboptimal in the following scenario:
* Users A and B are editing a document collaboratively
* User A deletes the document
* User B continues editing the document
* After about 10 min from when user A deleted the document, it vanishes for user B
* User B loses data and is confused, possibly frustrated.
Based on a report from Ivana.
#### **Acceptance criteria**
* When a user attempts to delete a collaborative document, show a Danger Dialog with confirmation:
* Title: "Delete this collaborative document?"
* Text: "This will also delete this document for any other users editing or viewing this document. They might lose some of their edits."
* Confirmation: "I understand that this deletion cannot be reversed"
* Actions:
* "Delete permanently" (danger)
* "Cancel" (secondary)
* When a document a user is editing is deleting in the background (by another user)
* The document goes in to read-alone mode.
* Immediately warn the user with a flash banner:
* Scheme: Danger
* Title: Document deleted
* Text: This document was deleted by another user and will be lost on reload. Please copy any text you would like to preserve.
* Not dismissable
* No actions
####
####
#### **Technical notes**
* ~~We
#### **Permissions and visibility considerations**
* No changes. Deletion is only possible by users who have the necessary permissions.
#### **Translation considerations**
* The texts require new translation strings
#### **Out of scope**
* Proper offline mode