-
Notifications
You must be signed in to change notification settings - Fork 19
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
Remove revert button #488
Remove revert button #488
Conversation
Deploying opendataeditor with Cloudflare Pages
|
@roll Hi, why are these two changes together? they can't be separated? |
@guergana |
@roll Thanks for the clarification..there are many changes so it's a bit difficult to follow what's happening but I will take a closer look . |
@guergana |
@roll the revert button is succesfully removed but I tried changing a field and opening a different file and I didn't get the popup saying there are unsaved changes.. is this still a requirement for this ticket? I tried some more times and I see the pop up does show up but inconsistently. like if you edit a field and immediately change to another file, sometimes you can see the popup flashes but disappears, and sometimes it doesnt show up at all :/ |
Hi! I tested this on Mac. Scenario 1: Quit the ODE DISCARDING changes
Then, I clicked DISCARD and got this message: Scenario 2: Quit the ODE SAVING changes
Then, I clicked SAVE and got this message: We need to remove this second dialog in both scenarios. It adds an unnecessary extra action to the user. @guergana I reproduced what you pointed out and I agree. There is something going on there..
I'm creating a new ticket for this |
@guergana |
It's easy to remove but note that without a second dialog, it looks quite weird for the user -- e.g. if you click on "Save" something happens and loads and then suddenly apps close. But of course, I can remove it if needed |
Just in case, we are talking about removing the second dialog, which appears after the user goes to the top menu and selects "Quit the ODE". We are applying the same logic that Excel has. The only difference is that Microsoft offers a third option: Cancel. Let's talk about this in the planning meeting. |
@romicolman |
Perfect! Thanks! |
@romicolman |
Hi @roll! I tested this implementation. The Revert button is no longer on the datagrid, so that's OK. In terms of leaving the app without saving changes:
The application closed without showing the dialog to confirm or discard changes: Grabacion.de.pantalla.2024-08-19.a.la.s.10.12.49.a.m.movHowever, the dialog is display after you click on a blank space in the datagrid: Grabacion.de.pantalla.2024-08-19.a.la.s.10.19.09.a.m.mov |
Hi @romicolman, Thanks! Note the as the not committed edits is a different issues it's no included into this PR. You can test altogether in #517 |
Perfect!! Thanks!! |
@romicolman I think it would make sense to test and merge this one first. It should work for any unsaved changes leaving situation except for ones when you have an active cell editing. And this one will be fixed by #517 |
…ommited (#517) * Fixed table editing
@roll I tested this issue. It works when..
Grabacion.de.pantalla.2024-08-21.a.la.s.9.31.01.a.m.movBut...if you edit the cell and do not click outside of the table (SAVE and DISCARD buttons do not get activated) the tool closes unexpectedly. I think the solution is to add a third button: CANCEL Grabacion.de.pantalla.2024-08-21.a.la.s.9.47.09.a.m.movAlso, when you edit a cell and click on the blank space, select Quit ODE, but do not choose any of the options available, the tool closes unexpectedly: Grabacion.de.pantalla.2024-08-21.a.la.s.9.47.09.a.m.mov |
Hi @romicolman I can't reproduce it: I think it MacOS specific problem where the outside click is not detected. It's easy to fix if we handle table editing state on the quick click (cc @guergana). I recommend merging this PR (as generally it fixes the core problem esp #347) and creating a follow-up issue regarding MacOS problem otherwise we will get in too many merge conflicts when I'm back in 3 weeks. PS. |
Thanks @roll ! I'm merging this so we can work on any issue that might happen when you are away. |
Please make sure that all the checks pass. Please add here any additional information regarding this pull request. It's highly recommended that you link this PR to an issue (please create one if it doesn't exist for this PR)