-
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: move MLB flow to Calypso #541
Conversation
See #431. |
59751a2
to
368374c
Compare
|
||
This step offers the user: | ||
|
||
* Domain selection with proposal of free .mlblogs.com domain and regular ``.wordpress.com` domains and prices. |
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.
There's an extra back tick here :)
stepName: 'mlb-domains', | ||
apiRequestFunction: stepActions.createSite, | ||
providesDependencies: [ 'siteSlug' ], | ||
delayApiRequestUntilComplete: true |
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.
Why do we need this?
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.
Do you mean delayApiRequestUntilComplete
? Or the whole definition? (as opposed to using just the Site
step?)
If you meant the latter I can say that at first, I replicated the domains
step definition, then changed it to be similar to site
definition.
The thing is that the way the API will handle the creation of .mlblogs.com
sites is still to be defined.
If it's implemented as a free product, then this step may be needing to provide the domainItem
dependency also instead of just the siteSlug
and use an API request function like stepAction.addDomainsItemToCart
instead of stepAction.createSite
.
And the mlb-domain
step component would need to have some extra logic for handling submit. (Currently the Site step is handling the submit, sending the step data to the API using stepActions.createSite
which demands less properties than stepActions.addDomainsItemToCart
when submitting signup step.
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.
delayApiRequestUntilComplete
is only needed if the user is going to go back and edit the content before the end of the flow. I don't think you need it here.
You're right though there is still a big question mark about how we implement the API. For now your solution of using createSite
is fine.
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.
So, in this case the anonymous user should not be able to get back to domain screen?
I mean, If the user is logged, there's no extra step after selecting domain. But if the user is anonymous there's still one more screen (the user
step) where there's a back button that would allow to alter the 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.
I thought about it some more and I think you're right. Lets leave this how it is; that's the way its done in other flows.
New flow working Now using the |
e7aa6c3
to
588587d
Compare
Design wise, the flow seems good, and it works ok. 👍 If possible, but as a "nice to have", I'd suggest some smaller style changes to make it tighter: This also requires a small "trick" in the dropdown, having both "Select your team..." (new) and "MLB" pointing to the default MLB themes. I think it's a good compromise that causes no confusion. :) |
588587d
to
6184e36
Compare
After applying @folletto recommendations |
Tested on Chrome, looks good design wise. :) Two minor details (definitely not blockers):
|
da8c7b0
to
e2ba253
Compare
Updates from #1628 are now taken in account here. |
6d32938
to
ff12de5
Compare
ff12de5
to
e28effc
Compare
@oskosk what's the status of this PR? |
e28effc
to
bedd146
Compare
@fabianapsimoes I've been keeping this up to date with Yesterday, I found a recent an issue. The URL for this signup flow Besides that, there are still two things are for the complete functionality of the MLB signup flow. Two updates on the API are needed.
|
@oskosk Did this launch fully yet (including API changes)? Or is it abandoned? |
This did not launch. Not int my plans to abandon it, but I haven't found the time to articulate the missing pieces. |
…and props.stepName as interface for custom domain site creation Previously the suffix .wordpress.com was fixed on site address input's suffix. Also the stepName was hardcoded on call to SignupActions.saveSignupStep().
It was /start/mlb but the three character url fragment conflicted with language in URL mechanism
bedd146
to
dc60a29
Compare
@lancewillett I've just updated this branch to have no conflicts with master and no conflicts with the language-recognition-from-URL mechanism mentioned in previous comment. |
Cool — next step, maybe code review and launch? :) I'm not pressuring it but wouldn't want to lose all your hard work if it gets stale or old. |
@lancewillett you sound like a racketeer :P |
Abandoning and closing since we have bigger priorities at the moment. |
The current MLB signup flow is outside of Calypso. A new flow
mlb
is created by this PR.Live preview here:
https://calypso.live/start/mlb.com/?branch=add/move-mlb-flow-to-calypso
Testing instructions
Task Roadmap
mlb-themes
,domains
anduser
.mlb-themes
.Create anUse theMlbThemeThumbnail
component (maybe compositing overThemeThumbnail
or using theThemeList
component as proposed here )Theme
component.StepWrapper
's Skip button without selecting a particular theme.mlb-domains
. Needs to be like the stepdomains
but also proposing the special .mlblogs.com domain for free.Previous MLB signup flow
Current status