Skip to content

Conversation

@Frost117
Copy link
Contributor

@Frost117 Frost117 commented Dec 5, 2025

Prerequisites

  • I have added steps to test this contribution in the description below

This pr adds asterisk for the web event modal to indicate it being mandatory, for this issue:
#21025

Description

It is only a visual indicator as the src/Umbraco.Web.UI.Client/src/packages/webhook/webhook-event/input-webhook-events.element.ts does not have any input to bobble up, like we have with the uui-input field. Meaning using the required=true attribute isn't available on the umb-input-webhook-events.

There is validation event from the backend that it doesn't know what operation it is when the field is left empty.

Changes

From:
Screenshot 2025-12-05 at 14 14 12

To this:
Screenshot 2025-12-05 at 14 14 43

Current validation when events is left blank and you save:
Screenshot 2025-12-05 at 14 14 46

Copilot AI review requested due to automatic review settings December 5, 2025 13:16
Copilot finished reviewing on behalf of Frost117 December 5, 2025 13:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a visual mandatory indicator (asterisk) to the webhook events field in the webhook details workspace view to improve user experience by clearly indicating that the field is required. The change addresses issue #21025 by making it consistent with the existing URL field which already has a mandatory indicator.

Key Changes:

  • Added mandatory attribute to the webhook events <umb-property-layout> component
  • Reformatted the URL field's <uui-input> for better code readability (no functional change)

Copy link
Contributor

@AndyButland AndyButland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Frost117 - visual update looks good, but I just thought we could improve the messaging from the API given we have this case of "no events specified" defined as an operation status. So I pushed an update to do that.

@AndyButland AndyButland enabled auto-merge (squash) December 5, 2025 14:48
@AndyButland AndyButland changed the title Added 'mandatory' tag as a visual indicator for webhook events being … Webhooks: Added 'mandatory' tag as a visual indicator for at lease one webhook event being required Dec 5, 2025
@AndyButland AndyButland merged commit 4750101 into umbraco:main Dec 5, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants