Changes discarded without warning when clicking off a tab
Open a new script, add some changes, click off the script, click back, CHANGES GONE!!!
Same with environments: open configure environment. Create an environment "prod", add some variables, create a new environment "test", click back to "prod" CHANGES GONE!!!
No warnings, no prompts, nothing. Really frustrating.
It has happend to me
Hi, I tried following the instructions @VictorioBerra wrote in the original comment, but it seemed like the variable names were saving fine. Is there another way to reproduce the bug?
@AngelaSYuan I will upload a video tonight or tomorrow
By the way, I would like to take on this bug! For context, this would be part of a school project that has a near deadline.
Also @VictorioBerra, I seemed to be able to replicate the bug for environment variables: when modifying variables, switching environments without clicking the "Save" button loses progress. The scripts part seems to work fine still though, but I will look out for your video.
I'm thinking of adding a short text warning near the blue Save button, and preventing the user from switching environments before saving. That way, their changes aren't unexpectedly lost. Would be open to hearing others' thoughts!
@AngelaSYuan Yes the environment variables bug is correct. Regarding the save dialog, there is already a warning dialog, I would replicate it exactly to maintain consistency throughout Bruno:
To see this dialog, open a saved request, edit it (like headers or something), and then click close without saving.
Regarding the other bug:
@VictorioBerra Got it! For some reason, I don't see a "New Script" option in the choices.
However, I believe I fixed the bug for the environment variables bug! Just opened a PR here: https://github.com/usebruno/bruno/pull/2034
@AngelaSYuan That is probably a Golden Edition only feature.