Conversation
This time, the _Next_ button is not enabled until the user has entered an invalid site address.
The invalid address error message will only be shown 2 seconds after the user stopped typing.
This is to match the new iOS error message.
Generated by 🚫 dangerJS |
| } else { | ||
| AppLog.e(T.API, "onDiscoveryResponse has error: " + event.error.name() | ||
| + " - " + event.error.toString()); | ||
| + " - " + event.error.toString()); |
There was a problem hiding this comment.
Auto-formatted. ¯\_(ツ)_/¯
|
For the error message, I'd go with something that explains the error a bit more fully and avoids abbreviations (like e.g.). For example:
This doesn't strike me as significantly longer than the current version, but let me know if it creates a length issue. |
This is based on Editorial’s advice.
|
Thank you, @benhuberman. I've applied your suggestion. This is what it looks like now: |
|
I like how it looks, @shiki. I'm sorry I didn't catch this when reviewing this the first time, but I just saw that the first sentence on that screen could also use a small tweak -- the your/you sounds redundant (and it's strongly assumed that you'd only ever connect your own site). I'd go with this instead:
|
|
No worries at all @benhuberman. Updated: |
AmandaRiu
left a comment
There was a problem hiding this comment.
Tested through the noted scenarios and reviewed the code. LGTM ![]()


Closes #9720.
This adds realtime validation for the site address in Login or Add Site. This is based on the iOS implementation described in wordpress-mobile/WordPress-iOS#10294 (comment).
To implement this, I moved all the site address logic to a new class,
LoginSiteAddressValidator. The class encapsulates the validation, cleaning, and error reporting using debounce. A corresponding unit test,LoginSiteAddressValidatorTest, has also been added.Known Issues
The
LoginSiteAddressFragmentdoesn't retain any error message shown below the text field after configuration changes. I didn't attempt to fix this. I thought it would be a huge change.Testing
Adding a Site
Logging in with a self-hosted site
On both scenarios, please test against the specs described above. Please also test that there are no regressions in logging in with a valid site.
Reviewing
Only 1 reviewer is needed but anyone can review.
Editorial
We're hoping to get a review for the error message that is shown when the URL is invalid:
Release Notes
RELEASE-NOTES.txt.Tasks
WordPress-Login-Flow-Android