Machine name generation is way too slow

Created on 4 February 2016, almost 9 years ago
Updated 21 June 2023, over 1 year ago

Problem/Motivation

Anybody typing with two hands an element with a machine name, then hitting submit will almost certainly end up with an "Machine name is required" error, or worse as a developer, a 1 or 2 character machine name, meaning you have to delete and restart again.

After the validation error has happened, the machine name field is not automatically populated from the label value.

Steps to replicate:

  1. Visit /admin/people/roles/add
  2. Type anything and hit enter

Example forms where the problem exists

I thought I saw some AJAX validation which would have explained this, but I must have been dreaming.

Dependency evaluation for transliteration.js.

1. Maintainership of the package:
Transliteration.js is not well maintained as the last major version came back in 2018.

2. Security policies of the package:
Transliteration.js has not had any reported security issues to date. The library is well documented.

3. Expected release and support cycles:
There is no mention of the release cycle.

4. Code quality:
The codebase of Transliteration.js is well written, well documented, and adheres to best practices.

5. Other dependencies it would add:
Transliteration.js has no additional dependencies beyond the basic Javascript language libraries.

Link to the repo
Readme

Proposed resolution

If AJAX, validation should happen asynchronously of the value typed.

If JavaScript, some profiling and speeding up is highly desirable ;)

Remaining tasks

--

User interface changes

None

API changes

None?

🐛 Bug report
Status

Fixed

Version

11.0 🔥

Component
Form 

Last updated 3 days ago

Created by

🇦🇺Australia alan d.

Live updates comments and jobs are added and updated live.
  • Field UX

    Usability improvements related to the Field UI

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024