[Fix] webhooks form validation when no trigger is selected

What does this MR do and why?

This MR prevents users from creating a webhook without selecting any trigger events.

Currently, the Webhooks form allows saving even when no triggers are selected, which results in a non-functional webhook. This change adds client-side validation to ensure at least one trigger event is selected before the form can be submitted, and provides a clear error message when the requirement is not met.

This improves correctness and user experience by preventing invalid webhook configurations.


References


Screenshots or screen recordings

Before

  • Webhook can be saved without selecting any trigger
  • No validation error is shown

After

  • Form submission is blocked if no trigger is selected
  • Validation error is displayed prompting the user to select at least one trigger

MR acceptance checklist

  • Fix addresses the root cause of the issue
    • UI behavior matches expected user flow
    • No breaking changes introduced
    • Validation provides clear user feedback
    • Changes are scoped and maintainable

Merge request reports

Loading