Monitor charts: Validate form for creating an alert before submitting
requested to merge 31904-form-for-creating-an-alert-should-be-validated-before-submitting-in-monitor-dashboard into master
What does this MR do?
Fixes issues with alert modals described in #31904 (closed)
- Prevents triggering a premature modal dismissal on errors
- Prevents errors from disabling fields in alert modal
- Selects a default operator to help the user make the right choice
- Places the error message with correct spacing
Please review with environment_metrics_additional_panel_types
FF on
Screenshots
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation created/updated or follow-up review issue created -
Code review guidelines -
Merge request performance guidelines -
Style guides [ ] Database guides-
Separation of EE specific content
Performance and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers
Related to #31904 (closed)
Edited by 🤖 GitLab Bot 🤖