-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
Undo/Redo action #226
Comments
To get some idea on how Undo and Redo should work in different scenarios: |
First prerequisite for undo/redo: #845 |
As a follow up to #1225 we should make following UX improvement:
High level pseudo-code proposal: function getViewForDom(dom: AppDom): ToolpadView
function isSameView(view1: ToolpadView, view2: ToolpadView): boolean
function navigateToView(ToolpadView): void |
Maybe |
This was just some pseudo-code to illustrate an idea, I didn't intend for this to be used as a starting point or anything. |
Screen.Recording.2022-11-10.at.19.16.44.movWhen I press Cmd+Z key, it undo 2 actions, not one. In the same way, when I press the shortcut to redo my change after the undo, it doesn't work. It seems that undo/redo is strongly tight to what is committed on the backend. I think that it would be great to decorrelate the two notions. Fixed in #1328
Or Figma, even better: |
@oliviertassinari thanks, that's a great catch. I already found the cause - it happens because throttled undo stack update is triggered after we undo action which messes up the state. I have one working solution to the issue that makes situation way better, but not perfect yet, I should post an update soon
I do agree, I could just remove the buttons. @gerdadesign any issues from your end if we remove the buttons? Maybe you could share what was the motivation of having them designed in the UI? Maybe we are missing some important details? |
This seems fine. For context:
So, especially for a tech-fluent audience, I think that keyboard shortcut would suffice. This would probably require adding Keyboard shortcuts to the Help menu: and then from there, showing the list of available keyboard shortcuts |
I'm removing undo/redo buttons as part of #1308 👍 |
This has been implemented |
The very first frustration I had using the tool today is not being able to undo a change. I have tried a change that didn't work, now, I'm not sure how to get back to the previous state that was better. It doesn't incentive me to experiment.
To do:
How do other tools push to history when typing text?
The text was updated successfully, but these errors were encountered: