pezzolabs / pezzo

🕹️ Open-source, developer-first LLMOps platform designed to streamline prompt design, version management, instant delivery, collaboration, troubleshooting, observability and more.
https://pezzo.ai
Apache License 2.0
2.54k stars 210 forks source link

Test Field in Environment and Prompt accepting values with spaces #242

Closed adityapuri75 closed 1 year ago

adityapuri75 commented 1 year ago

Report

If the textfield is empty while user is trying to saving the prompt or a Environment value the Validation working Fine but if we add only spaces in the textfield the it will accept the empty value and create a prompt or Environment with no Name.

https://github.com/pezzolabs/pezzo/assets/49858681/8c5299b6-22fd-45a7-926e-32d4b0bb96a3

Expected behavior

It should not accept the empty values

Steps to reproduce the problem

as suggested in the report

How do you use Pezzo?

Pezzo Cloud

AAKASHBANSAL96 commented 1 year ago

@adityapuri75 Can you please assign this to me?

adityapuri75 commented 1 year ago

Hello @AAKASHBANSAL96 i am also a contributor, @arielweinberger can assign the issue.

arielweinberger commented 1 year ago

Fixed in #262