[openstreetmap/openstreetmap-website] Add some javascript to check dynamically if the username is already taken (PR #4402)

Pieter Vander Vennet notifications at github.com
Wed Dec 13 02:36:31 UTC 2023


Hi,

I peeked over the shoulder of a friend who tried to sign up for openstreetmap. He wanted to take his given name as display name, which was already taken. When he tried some variations of his (very common) given name as well, those were taken too.

It would help if there was some more immediate feedback for this, so I've thrown in a bit of javascript into `new.html.erb` which checks 'on the go' if the name is taken or not:

[Screencast from 13-12-23 03:28:02.webm](https://github.com/openstreetmap/openstreetmap-website/assets/1466478/d3a7a718-3097-4c85-8033-540b5e86d74a)

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4402

-- Commit Summary --

  * Add some javascript to check dynamically if the username is already taken

-- File Changes --

    M app/views/users/new.html.erb (52)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4402.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4402.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4402
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4402 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231212/b694b0a7/attachment-0001.htm>


More information about the rails-dev mailing list