Add (validation) error handling to AddCodeComponentDialog and friends

Created on 31 January 2025, 3 months ago

Overview

✨ Managing code components in library Active made it possible to create new code components in the UI, atop the HTTP API that ✨ HTTP API for code component config entities Active provides 🀩 It's really cool to see in action!

But it currently only supports "the happy path": invalid user input will result in the appropriate 422 response with the corresponding validation errors. But the UI does not present those errors:

Proposed resolution

  1. Add non-2xx response handling throughout the code editor, perhaps generic, perhaps only for 422 responses that contain {"errors": {"0": {"details": "…", "source": "…"}, {"1": … }}.
  2. Bonus: use the pattern attribute for providing client-side validation, to make the user immediately aware? πŸ€“

User interface changes

Validation errors are presented to the user.

πŸ“Œ Task
Status

Active

Version

0.0

Component

Page builder

Created by

πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024