As a user
I want to have a confirmation dialog when deleting transactions that prevents multiple confirmation pop-ups from opening simultaneously
In order to avoid confusion and potential errors when confirming or canceling deletions.
Description
wireframe
Acceptance Criteria
[ ] When a user clicks the delete button for any transaction, a single delete confirmation dialog opens.
[ ] If a delete confirmation is already open, opening another Options Menu automatically resets the before initiated delete confirmation.
[ ] The UI does not show multiple confirmation dialogs at once, even if multiple delete buttons are clicked in quick succession.
[ ] Implement a global state or context to track the active delete confirmation dialog.
[ ] The state should monitor whether a delete confirmation is open and store the transaction it refers to.
[ ] Add logic to close the existing confirmation if the user opens another options menu before confirming the delete action.
[ ] Clicking on another transaction's delete button should reset the currently active confirmation.
[ ] Add proper state reset logic so that after a confirmation (either confirm or cancel), the user can trigger new delete actions on other transactions.
Value Proposition
As a
user
I want tohave a confirmation dialog when deleting transactions that prevents multiple confirmation pop-ups from opening simultaneously
In order toavoid confusion and potential errors when confirming or canceling deletions
.Description
Acceptance Criteria
Tasks
feature/restrict-open-delete
.