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

Global undo button #85

Open
bestchai opened this issue May 27, 2020 · 0 comments
Open

Global undo button #85

bestchai opened this issue May 27, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@bestchai
Copy link
Member

bestchai commented May 27, 2020

As it currently stands it is very easy for a developer to modify the input panel either manually or by pressing the "Remove traces with highlighted lines" button. When this happens the user may accidentally loose their work and have to start over to get it back to a previous state.

By implementing an undo button users will be able to not only correct mistakes but also test modifying the input panel to see what happens without the fear of loosing their data.

There are two possible ways to implement an undo button in Perfume:

  1. Only keep track of the input panel and re-infer the model and invariants each time
    • Should work alright (and save less data locally) however re-inferring the model and invariants may yield different results.
  2. Keep track of the entire JSON "data" object
    • We will always have the same model and invariants whenever the users presses the back button however if a large JSON object is being used the system may run out of space (or we may have to limit how many times the back button may be pressed)

On the topic of a back button we should also allow a "forward" button to undo the back button.

[Issue created by stanleyrya: 2016-04-15]

@bestchai bestchai added the enhancement New feature or request label May 27, 2020
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