-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implements undo/redo for draw, pin, and actuation mode #276
base: stage
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Looks like the undo and redo is only implemented for "drawing", "pin mapping", and the "actuation" (not from this PR) mode. Did we decide to not include the "select and move" mode? Besides, since the undo and redo might be coupled with other issues, let's try to merge PR #265 into the stage first before we work on this issue. |
The undo should be implemented within the select and move mode as well. I forgot to include that in the PR title. And yeah, I'll look into closing #265 soon. |
I tested again and the undo and redo for "select and move" mode is still missing. The icons for undo and redo disappear if I switch to the "select and move" mode. Besides, please fix the conflicts here. |
That's odd, let me look into this right now. |
Thanks, Shounak! 20230209_154859.mp4
|
Ok, the undo buttons will show up in "select and move" mode now. Let me check what's wrong with the mapping mode. Sorry about that! |
Ok, I believe I fixed the pin mapping bug. I reproduced it like in the video and the undo function didn't break. It undoes the latest pin as expected. Please let me know if it still doesn't work! |
Looks good! Thank you, Shounak. I think, for now, we should make a document for a comprehensive list of the expected behavior of the undo and redo (for the 4 modes). This will help us think and test more systematically, and it also helps when you implement Cypress tests for the undo and redo functions. Could you make one? I will comment on it after seeing your draft. |
Yeah, that sounds like a great idea! I'll make a doc in the shared drive and fill it in. Also, by 4 modes, do you mean pin, actuation, draw, and move? |
Yes! |
Also, I just tested cutting and pasting some electrodes on the GUI. It seemed to correctly return the pasted electrodes to the original position. Could you try again and see if you run into the issue again? |
I tested on the Vercel deployment for your latest commit: https://ewod-gui-2-0-158jzqwr8-leofuturer.vercel.app/ 20230209_175553.mp4 |
Please resolve the conflict here as well @skuiry |
It seems if we select some electrodes -> "move" or "cut and paste" them -> undo, those electrodes returned back to original position can not be selected anymore. After refresh the page, they can be selected again. 20230218_235608.mp4 |
No description provided.