riok / Kreya

Kreya is a GUI client for gRPC and REST APIs with innovative features for environments, authorizations and more.
https://kreya.app
279 stars 5 forks source link

Unable to save "Data" section of environment if it contains errors #219

Open AFract opened 2 months ago

AFract commented 2 months ago

Hello,

In 1.14 beta 2, I have noticed the button "Save" is greyed out if the JSON contains an error, but there's no user warning regarding this.

Some errors are not noticeable (no wavy red line under them), like the attempt of comment below but they prevent to click on Save : image

An explicit warning (especially for longer jsons, as this one is extremely simple) would be better than simply locking the Save button.

Additionally, it would be nice if it was possible to type comments in this editor (and other json fragments editors).

Thank you !

CommonGuy commented 2 months ago

Thanks for the report, we'll look into this.