Add a confirmation window in the GUI mode in Self-service action window to prompt users when they attempt to navigate away from the page without saving their changes. Currently, this confirmation prompt exists in JSON mode in Self-service action window, but it is missing in GUI mode, which can lead to accidental data loss.
Rationale:
In the GUI mode, users may accidentally navigate away without saving their changes. A confirmation prompt will help prevent this, ensuring users have the chance to save their work before leaving the page. This feature is especially helpful for complex edits where re-entering data can be time-consuming.
Expected Behavior:
• Trigger: When a user tries to navigate away from the page while unsaved changes are present in GUI mode.
• Confirmation Prompt: The prompt should ask the user, “Are you sure you want to leave this page without saving changes?” with options to “Stay on Page” or “Leave without Saving.”
• Consistency: This behavior should be consistent with the existing confirmation prompt in JSON mode to ensure a seamless user experience across modes.