Orthocorp / orthoverse-avatars

0 stars 0 forks source link

Alpha: Dynamically check new name is valid #40

Closed kf106 closed 1 year ago

kf106 commented 1 year ago

web/src/pages/HomePage/HomePage.tsx has an input field that shows the player's current name when they are logged in.

At the moment it is read only.

It should be writeable, and when they start editing the name, it should validate the content.

Local validation:

Database validation:

I am guessing that this is similar to the orthoverse.io map name search functionality.

kf106 commented 1 year ago

Implemented with kf106/clientNameValidation

https://www.youtube.com/watch?v=xauMVPim2Vk - here you can see names under 3 letters are rejected as are names containing unacceptable characters (border goes red), as are duplicate names (e.g. theotherguy), but my own name is not (bcgandalf)