-
Notifications
You must be signed in to change notification settings - Fork 495
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
Field suggestions in form playground input lead to validation error #4758
Comments
CC @camunda/human-task-orchestration-dev, please double-check if you can reproduce this issue. |
I'll check this next week |
@nikku @barmac I worked a bit on the autocomplete, I would like some feedback on it before merging the PR. For the values besides the ones @barmac mentioned I added empty objects and arrays too. Here's the preview env: https://demo-fix-form-input-autocomple--camunda-form-playground.netlify.app/ |
@nikku This is also happening in main, I'll create an issue for it |
Checked the suggested auto completion in more details. The new suggestions are simple enough, and fix the issue. Overall, massive kudos, I think the playground goes quite some length to support users (using smart auto-completion) 🎉 Some input on the current completion functionality (beyond this bug fix):
|
I added the comma suggestion for cases where the object is empty, for the case when we're suggesting inside a half-filled property name it's a bit more tricky so I left it for a future improvement. I created issues for the bug reported previously and the autocomplete improvements:
The PR for this issue's bug is here |
Describe the bug
In the form playground input, I can provide a JSON for the variables. The editor suggests the form fields keys, but as soon as they are added, the JSON is invalid. This leads to bad UX.
Steps to reproduce
Expected behavior
No suggestions beyond valid JSON values (e.g.
null
,true
,false
).Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: