Signup landing page for new users - #78
Conversation
swarajpure
left a comment
There was a problem hiding this comment.
I thought we were going to have screens which ask for first name, last name and username after we click on Get Started 🤔
Or is it not so?
Not sure about those, we need to ask @ankushdharkar about that. When the user signs up using GitHub, we will be redirecting them to this page, and when they click on the |
The design link is there in the issue description itself 😅 |
akankshadharkar
left a comment
There was a problem hiding this comment.
Left a few comments
Also, I think we should change the filename from "form-input" to maybe "signup-form" since the current file doesn't contain just an input but the whole form
akankshadharkar
left a comment
There was a problem hiding this comment.
Thanks for addressing the previous comments, Sumit
Left a couple more
Rest lgtm 😄
swarajpure
left a comment
There was a problem hiding this comment.
Some doubts, please check!
| {{#if (eq this.state "get-started")}} | ||
| <SignUp::GetStarted | ||
| @changeRouteParams={{this.changeRouteParams}} | ||
| @state={{this.state}} | ||
| /> | ||
| {{else if (eq this.state "thank-you")}} | ||
| <SignUp::GetStarted | ||
| @changeRouteParams={{this.changeRouteParams}} | ||
| @state={{this.state}} | ||
| /> |
There was a problem hiding this comment.
What are these if and else doing differently? 🤔
There was a problem hiding this comment.
I want to render this component if the value of state is either get-started or thank-you.
But I am not able to find how to use the condition - if (state = 'get-started' || state = 'thank-you') in ember. And so I am rendering like this
There was a problem hiding this comment.
We're already using ember-truth-helpers in our project
Refering this might help: https://www.npmjs.com/package/ember-truth-helpers/v/2.1.0#usage
There was a problem hiding this comment.
Already tried this. But it's not working.
| if (paramValue) | ||
| this.transitionToRoute({ queryParams: { state: paramValue } }); |
There was a problem hiding this comment.
Use router service because this.transitionToRoute is deprecated.
https://deprecations.emberjs.com/v3.x/#toc_routing-transition-methods
|
|
||
| if (response.status === 401) { | ||
| if (response.status == 200 && !userData.incompleteUserDetails) { | ||
| alert("You already have filled the up form. You'll now be redirected."); |
There was a problem hiding this comment.
NIT: single quotes please?
5bc0497 to
186e4c8
Compare
|
#143 closing this PR because it's messed up so much! |
This PR fixes issue #70
the signup page can be accessed at
/signup?state=get-started