-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signup: Add a domain to an existing site (/domains) #13605
Conversation
client/signup/config/steps.js
Outdated
stepName: 'site-picker', | ||
apiRequestFunction: stepActions.linkExistingSite, | ||
props: { | ||
headerText: i18n.translate( 'Choose your site?' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! I've found a possible matching string that has already been translated 18 times:
translate( 'Choose a site' )
ES Score: 7
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
079c192
to
b450976
Compare
{ | ||
type: 'domain', | ||
label: 'Just buy a domain', | ||
label: translate( 'Just buy a domain' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! I've found a possible matching string that has already been translated 18 times:
translate( 'Buy Domain' )
ES Score: 6
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overal, the approach seems good - I'll test more tomorrow.
@@ -13,7 +13,7 @@ export default () => ( | |||
<use xlinkHref="#path-1"></use> | |||
</mask> | |||
</defs> | |||
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> | |||
<g id="Page-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
export default connect( | ||
( state ) => { | ||
return { | ||
sites: getSites( state ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused here - what's the purpose of this sites
vs the global ones on line 18? It seems like you're only using the global ones?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought I might use this one, forgot to remove it. Not there yet. :)
<SiteSelector | ||
filter={ | ||
function( site ) { | ||
return ! site.jetpack; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A possible additional criteria - being an admin on the site :) Otherwise, they user won't be able to manage the domain, right?
As discussed on Slack, I can't reproduce the first issue (infinitely loading plans page) anymore, so unless someone else can reproduce it, I'd treat it as a one-off issue on my end. |
client/lib/signup/step-actions.js
Outdated
import defer from 'lodash/defer'; | ||
import isEmpty from 'lodash/isEmpty'; | ||
import pick from 'lodash/pick'; | ||
import { assign, defer, isEmpty, isNull, omitBy, pick, startsWith } from 'lodash'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this number of imports, it might be better to put them on new line each.
931c6cd
to
df8bc6e
Compare
client/signup/config/steps.js
Outdated
stepName: 'site-picker', | ||
props: { | ||
headerText: i18n.translate( 'Choose your site?' ), | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! I've found a possible matching string that has already been translated 18 times:
translate( 'Choose a site' )
ES Score: 7
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
@gwwar still not for review. Forgot to remove the label. |
@aidvu, I can't seem to finish (or get to) checkout with the newest change - I get redirected to something like |
bbd6325
to
0e716f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested again - now all works fine 👍 Thank you for your perseverance with this PR! 😅 NOW MERGE IT WHILE IT'S WORKING! 😀
localize the copy update css
fix stuff per code reviews
getSiteBySlug doesn't return computed attributes for a site thus there is no site slug.
db8369e
to
dcf7c4b
Compare
Add steps that allow adding a domain to an existing eligible site coming from
/domains
.Added
site-picker
step for logged-in users which creates a new cart and redirects to checkout, because this is a regular purchase with an existing site.What to test for logged in user:
/domains
picking an existing site which has a plan (only domain added)/domains
picking an existing site w/o plan (plan and domain added)/domains
picking an existing site which is domain-only (plan and domain added)Easiest way is to hit: http://calypso.localhost:3000/start/domain-first/?new=some-random-url-xxx-test.com
Fixes: #12196