Add loading and success indicator for registration backend checks #9590
Labels
Lead: @cdrini
Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed]
registration
Type: Feature Request
Issue describes a feature or enhancement we'd like to implement. [managed]
Type: Subtask of Epic
A subtask that is part of the work breakdown of an epic issue (see comments). [managed]
Dependency to
epic
#7694. Subtask of #9315.Problem
With all the new realtime validation in the registration form, one thing we are missing is a loading/success indicator for the backend checks (i.e. taken username/email address) -- this is particularly noticeable now that these checks sometimes happen on (debounced) key-up.
Current behavior:
Preferred behavior:
Proposal & Constraints
What is the proposed solution / implementation?
The idea is to use a similar implementation to the password toggle already in the form, rendering a single image in the right side of the email and username inputs and programmatically changing its source (for spinner vs. checkmark) and display properties (to show/hide it). Specifically:
display: none
, likely via inline stylesopenlibrary/openlibrary/plugins/openlibrary/js/realtime_account_validation.js
Lines 75 to 78 in 44a46e2
openlibrary/openlibrary/plugins/openlibrary/js/realtime_account_validation.js
Lines 82 to 83 in 44a46e2
else
clause just belowWhich suggestions or requirements should be considered for how feature needs to appear or be implemented?
max-length
for the username field (and the email field??) to prevent the text from overlapping the image, which should be no problem because the username does have a max length of 20 charactersRelated files
create.html
realtime_account_validation.js
Stakeholders
@cdrini
Instructions for Contributors
The text was updated successfully, but these errors were encountered: