leaphy-robotics / leaphy-client

Web-based client application for programming Leaphy robots
GNU General Public License v3.0
6 stars 7 forks source link

Warning when leaving editor-mode #184

Closed Roelandsmith closed 2 years ago

Roelandsmith commented 2 years ago

We need a warning: when you edited the code in the editor and you click back to 'block-screen' you lose all the edits you made in the code. So a little warning like: 'Do you want to save the changes you made?'

And also a dialogue box: like an instruction / verwachtingsmanagement: Blocks become code, but it doesn't work the other way around Blokken worden code, maar het werkt niet andersom.

ghost commented 2 years ago

Couple of questions @Roelandsmith: When do you want instruction to appear? When you switch to the code editor? Every time? This might get annoying to users. It's possible to add a checkbox: "Never show this again". This would add a bit of complexity of course, so would take a bit longer to program.

Roelandsmith commented 2 years ago

Good point. You want it when two things are TRUE:

And -indeed- also a check-box 'don't show this again' would be great way to avoid annoyance. But that checkbox for now we can choose to postpone . It's a enhancement.

ghost commented 2 years ago

Notes to self: