Skip to content
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

Alert user if they have unsaved changes #217

Open
gerrycampion opened this issue Nov 24, 2022 · 1 comment
Open

Alert user if they have unsaved changes #217

gerrycampion opened this issue Nov 24, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@gerrycampion
Copy link
Collaborator

gerrycampion commented Nov 24, 2022

Howto: https://javascript.plainenglish.io/how-to-alert-a-user-before-leaving-a-page-in-react-a2858104ca94

AC

  • If a rule is dirty (does not match the rule saved in the database) and the user tries to navigate away from the page, they should receive a notification that their progress has not been saved.
  • Rule Editor should notify the user when they try to select a new rule if the current rule has been edited without being saved or discarded.
@gerrycampion gerrycampion added the enhancement New feature or request label Nov 24, 2022
@gerrycampion
Copy link
Collaborator Author

Problem
The rue editor does not select any other rule if an opened rule is not according to schema . Clicking multiple times or idle waiting also does not work.

Steps To Reproduce

open rule editor
select any rule
in edit pane change to rule so it is not according to schema.
Now try selecting any other rule from the left rules pane
Following above steps you should be able to note that, selecting a new rule does not work anymore.

Recommendations
Rule Editor should notify the user when they try to select a new rule if the current rule has been edited without being saved or discarded.

@gerrycampion gerrycampion transferred this issue from cdisc-org/conformance-rules-editor Nov 6, 2023
@drewcdisc drewcdisc transferred this issue from cdisc-org/ddf-core-poc Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant