Open hambai opened 9 hours ago
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:
Sections (~51 bytes added 📈 [gzipped])
Async-loaded Components (~51 bytes added 📈 [gzipped])
Legend
Generated by performance advisor bot at iscalypsofastyet.com.
The way we check the TLDs in the registration flow for Gravatar domains was assuming that the available TLDs list is already loaded. However the coded didn't work like that and if you go to the flow with a
new
query param that contains an FQDN it would show you "The domain extension you are looking for is currently not supported. Additional domain extensions may become available for a fee in the future." error message even though the TLD is a supported one.Here's how it looks
Proposed Changes
callback
parameter to thegetAvailableTlds
method so that we can call thecheckDomainAvailability
after the TLDs were loaded and set in the statecheckDomainAvailability
method always clear the error message if in the gravatar flowWhy are these changes being made?
Testing Instructions
/start/domain-for-gravatar/domain-only?search=yes&new=test20241121.link
and verify that you won't get the error/start/domain-for-gravatar/domain-only?search=yes&new=test20241121.net
and verify that you see the error/start/domain-for-gravatar/domain-only?search=yes&new=test20241121.link
and verify that you won't get the errorUnfortunately because of how the signup works the message is shown quckly if the previous search had it. This is how the signup works. Fixing that would require a bigger refactoring and I'm not even sure where to start.
Pre-merge Checklist