I want to have an undo option and a confirmation prompt when deleting elements to prevent accidental data loss and offer a way to revert changes
Benefit
So that I can manage assurance case elements more securely and efficiently, reducing the risk of unintentional modifications
Acceptance Criteria
GIVEN I am using the assurance case editor,
WHEN I select to delete an element,
THEN a confirmation prompt should appear asking if I am sure about the deletion,
AND the prompt should include a checkbox option 'Do not ask me again' for users who prefer to disable future prompts.
GIVEN I have deleted an element,
WHEN I realize it was a mistake,
THEN I should be able to use an undo option to restore the element immediately.
Dependencies
[ ] Review current data handling and element management workflows to ensure compatibility with undo functionality.
[ ] Design a user-friendly confirmation prompt into the existing interface.
Technical Notes
Implement the undo functionality using a stack-based approach where recent actions are stored temporarily for reversal.
Design the confirmation dialog to be intuitive and non-disruptive, adhering to the platform’s design language.
Include user preferences management for those opting out of future confirmation prompts.
Ensure that the undo feature and confirmation prompt are tested thoroughly across different user scenarios.
Definition of Done
[X] The feature fulfills all acceptance criteria.
[X] The code is reviewed and meets team coding standards.
[X] All unit, integration, and end-to-end tests are passed.
[X] The feature meets accessibility standards set for the project.
[X] The code passes the CI/CD pipeline quality controls (style and linting).
[X] The feature is merged into the main branch.
[X] The feature is deployed and functional in the QA environment.
[X] The feature was demonstrated to the team and accepted by the product owner.
Role
As an assurance case editor
Desired Feature
I want to have an undo option and a confirmation prompt when deleting elements to prevent accidental data loss and offer a way to revert changes
Benefit
So that I can manage assurance case elements more securely and efficiently, reducing the risk of unintentional modifications
Acceptance Criteria
GIVEN I am using the assurance case editor, WHEN I select to delete an element, THEN a confirmation prompt should appear asking if I am sure about the deletion, AND the prompt should include a checkbox option 'Do not ask me again' for users who prefer to disable future prompts.
GIVEN I have deleted an element, WHEN I realize it was a mistake, THEN I should be able to use an undo option to restore the element immediately.
Dependencies
Technical Notes
Definition of Done