Open naghdy opened 5 years ago
This one is now on the browser team's pivotal board for this iteration.
can't reproduce
so there are the conditions for this error
if (value !== val.trim()) return DomainNameStatus.TosViolation;
if (value.length < 4) return DomainNameStatus.TosViolation;
if (addressLikeUsername(value)) return DomainNameStatus.TosViolation;
but i can't reproduce it with spaces, only one way i found 1) enter the wrong name, less than 4 chars 2) add space before a name, and make a name more than 4 chars 3) press done 4) nothing happens, same error on the screen the reason name with spaces is not handled
Do we want to change the text for this error?
@flexsurfer could we tailor the error messages to the error?
Please enter a name more than 4 characters in length.
Only letters and numbers are allowed. Please try another name.
Related issue on naming requirements: https://github.com/status-im/status-react/issues/7886
Also, I was creating this new issue, when I came accross this one. I think it might be the same:
When searching for an available name in the ENS DApp, the DApp shows an unexpected message: "This name is not allowed by the terms & conditions. Please try another."
This message occurs when a character (typically the first character) is entered as a upper case. character. (Starting with uppercase is a default on native keyboards and therefore this issue is most likely to occur on the first character, but can occur with use of any upper case character.)
The input field displays all characters as lower case, also when they are entered as upper case. Meanwhile the upper case entry still triggers the validation as upper case is not allowed.
The issue occurs on (not necessarily limited to)
iOS version 12.1.4 iPhone 8
Status version 0.12.0
Android Galaxy s10e
Status version 0.12.1
The app shows upper case when upper case is entered Nice to have: The app brings up a native keyboard that only provides lower case (Android, already the case on iOS)
The app displays lower case while upper case is entered. The app brings up the native keyboard with default set to for the first character to be upper case (Android, not the case on iOS)
Known steps towards feature implementation. What needs further specifying and investigating.
DApp follows expected behavior on both iOS and Android
cc @naghdy do you recall if this issue mostly occurred using iOS or Android?
Ah, interesting. Good find @hesterbruikman. This is something we will need to account for in the new registration flow in Status @jeluard @asemiankevich.
Thanks! I'll make sure this case is addressed in the native registration.
Getting this bug below even when the username length is fine. Also the error is confusing for users because it doesn't explain what is going on.