-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notification of unsaved changes #697
Comments
@fredericalpers I have found a solution and I need 3 days to implement and test it. Thanks! |
@fredericalpers I implemented the "Notification of unsaved changes" with the following screens: Addresses, List View, Detail View, Similar Estate, Unit List, Contact form, Interest form, Applicant Search Form, Owner form, and Settings. Please take a look at my video and let me know your opinions. Thanks! https://files.fm/u/jgeruf6j6g#/view/wxuxy38eh8 Note: During testing, I found that the "beforeunload" event will not support the user behavior of "entering URL". https://files.fm/u/jgeruf6j6g#/view/k85e593vhj |
@dai-eastgate please investigate further thank you :) |
@fredericalpers
=> When we use "beforeunload_event" and calling the event object's preventDefault() method, we can trigger a browser-generated confirmation dialog (meant: Showing the browser-native confirmation modal) to handle the "cancel" button to show the "Notification of unsaved changes"
Above are the results of my investigation. You can check it out and let me know your opinions. Thanks! |
@dai-eastgate please go ahead and implement all possible notifications. :) |
We created a PR for this issue. Please help us to review it. Thanks! |
Initiative
Optimize the backend of the onOffice for WP-Websites Plugin for a better user experience
Epic
Notification of unsaved changes.
User story
As a real estate agent utilizing the onOffice for WP-Websites plugin, I often make configurations and adjustments in the settings to optimize my website. Currently, there is no notification system in place to alert me when I attempt to leave a settings page without saving changes. To prevent loss of modifications, I propose the implementation of a notification system that provides a clear alert when unsaved changes have been detected.
The absence of notifications for unsaved changes poses a risk of unintentional settings/data loss and can result in time-consuming reconfigurations. To address this concern, a notification system should be integrated into the onOffice for WP-Websites Plugin, ensuring that users are reminded to save their changes before navigating away from the page.
Tasks
By implementing this notification system, the onOffice for WP-Websites Plugin can enhance the user experience by minimizing the risk of unintended data loss and promoting a more user-centric approach to configuration changes.
Related links:
https://cloudscape.design/patterns/general/unsaved-changes/
https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event
The text was updated successfully, but these errors were encountered: