-
Notifications
You must be signed in to change notification settings - Fork 67
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
Preview/undoing of web editor changes #34
Comments
I suggest that we generate a diff similar to the one in the plugin and either display it when saving or add a button for it. |
Yeah, I think doing both could work. Maybe have it display over the top of the page (like the help menu) so it can be easily dismissed or closed. |
In my opinion the best user experience would be to show a confirmation screen when the user clicks the save button and it displays all of their current updates (additions, deletions and changes). They can click a confirm button to send the data back to bytebin or cancel (maybe even remove changes). I think we can solve this by changing up the JSON node data as follows:
This would allow us to loop through all the nodes and show the user which ones are new, changed and deleted. They can then confirm these are the changes they wanted and continue the save process (at this point the data would be sent to bytebin and a token returned). I assume this change would break things LuckPerms side, as currently the deleted nodes are removed from the This is the only option I can think of, if you think it will work then I'm happy to do what I can on this side. |
I dislike the idea of it slowing down the workflow. I’d prefer to get the option to preview the changes with a button. So maybe add a quick save button? |
Or Preview & Save buttons? Preview brings up a screen showing all the changes along with Save and Cancel buttons. Otherwise just click Save to save as normal. This would still require a change in the object data. |
Sounds even better. Though it should be fairly straight forward to implement the diff algorithm Luck uses in the plugin on the page. So no change in the data is needed, as you still have the original data. |
Fair enough, if I could understand the algorithm better then I could probably do this myself. |
Taken from
LuckPerms/LuckPerms#655
The text was updated successfully, but these errors were encountered: