-
Notifications
You must be signed in to change notification settings - Fork 48
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
[FEATURE] Create/Edit rule validation on submit and visual-yaml editor switching #215
Comments
@kamingleung @getsaurabh02 @amsiglan We should have same form validation experience as we have on other plugins. Here is an example of Screen.Recording.2022-12-22.at.8.58.08.PM.movPlease notice that even this form is not fully consistent since required message on job name is different depending if user action is clicking submit button vs blur out of input field. Acceptance Criteria should be:
I still need to think on switching the editor type behavior in context of validation messages |
@djindjic Do we know which fields are required to create a rule?
Here are some guidance on validation pattern: If users attempt to click on Create when there are validation errors, we should show a toast like this at the bottom right of the screen: |
@kamingleung |
@kamingleung |
@kamingleung @amsiglan @getsaurabh02
Please check current behavior on the video and compare it to old behavior on playground Screen.Recording.2022-12-27.at.9.26.26.AM.mov |
@djindjic Thanks for your updates.
Follow-up questions from your video:
For rule name:
For author:
|
@kamingleung
Since PR for this issue is already merged I've done it in currently active one which is related (#279) Please check video: Screen.Recording.2022-12-30.at.9.26.27.PM.mov |
@djindjic This looks good to me. Thanks for your updates! |
Is your feature request related to a problem?
Specific client side validations should be shown inlined on form submit (not only on blur) for both visual and yaml editor.
Additionally, show client side validation messages while switching between editors.
Screen.Recording.2022-12-13.at.8.02.28.AM.mov
The text was updated successfully, but these errors were encountered: