Description
Implement a confirmation dialog that appears when users try to navigate away from a node with unsaved changes
Trigger when:
- Selecting a different node while draft is dirty
- Closing the side panel while draft is dirty
- Selecting another node while draft is dirty
Dialog options:
- Discard: Abandon changes and proceed with navigation
- Keep editing: Cancel navigation and return to editing
- No prompt when draft is clean
- Implement for both light and dark modes
Motivation
Users need protection against accidentally losing their work. When they've made changes but haven't saved, navigating away would silently discard those edits. The guard dialog makes the consequence explicit
and gives users a choice: commit to losing the changes or go back and save them. This is a standard pattern in editing interfaces (text editors, forms, etc.) that prevents frustrating data loss.
Proposed Implementation
No response
Definition of Done
Description
Implement a confirmation dialog that appears when users try to navigate away from a node with unsaved changes
Trigger when:
Dialog options:
Motivation
Users need protection against accidentally losing their work. When they've made changes but haven't saved, navigating away would silently discard those edits. The guard dialog makes the consequence explicit
and gives users a choice: commit to losing the changes or go back and save them. This is a standard pattern in editing interfaces (text editors, forms, etc.) that prevents frustrating data loss.
Proposed Implementation
No response
Definition of Done