Have the server return more user-friendly error messages for code component and section creation

Created on 8 May 2025, 5 days ago

Overview

@jessebaker from ✨ Show human readable error messages when creating component fails Active suggested making the error messages returned from the server more user friendly.

For example, when you try to create a code component with a name that already exists,

'js_component' entity with ID 'my_test' already exists. gets returned. But this could maybe be updated to something like A component with that name already exists, use a unique name.

For code component creation I think this is the only error that will be shown to the user because ✨ Show human readable error messages when creating component fails Active adds front-end validation for invalid names (special characters, starts with a number).

Regarding sections, it looks like you are able to create sections with the same name. Don't know if this is expected behavior or a bug, but would like someone on the backend to confirm that. If it is a bug, then the error message for that should be user-friendly too.

Proposed resolution

Update server message to something more user friendly, less developer-oriented.

User interface changes

✨ Feature request
Status

Active

Version

0.0

Component

Theme builder

Created by

πŸ‡ΊπŸ‡ΈUnited States hooroomoo

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