generated from RealDevSquad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 95
Signup flow #246
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
Closed
Closed
Signup flow #246
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b4755d8
initiated the test flow
shreya-mishra11 cf8ca09
old signup flow test done
shreya-mishra11 e74ec93
fixed the test issues
shreya-mishra11 acd4e8e
Merge branch 'develop' into signupFlow
shreya-mishra 4e2f0dc
fixed the test issues
shreya-mishra11 12e4d2d
fixed the test issues
shreya-mishra11 e81154b
fixed the test issues
shreya-mishra11 f8fa733
Delete package.json
shreya-mishra bad18c8
added yarn lock
shreya-mishra11 5d21a8b
Merge branch 'signupFlow' of https://github.com/Real-Dev-Squad/websit…
shreya-mishra11 70c0915
Revert "Delete package.json"
shreya-mishra11 bb0cd95
removed package.lock because yarn is already there
shreya-mishra11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,3 @@ | |
| /.node_modules.ember-try/ | ||
| /bower.json.ember-try | ||
| /package.json.ember-try | ||
|
|
||
|
|
||
|
|
||
| /package-lock.json | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,4 +3,4 @@ | |
|
|
||
| echo "Checking for linting problems, please wait⏳\n" | ||
|
|
||
| yarn lint | ||
| npm run lint | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,4 +22,4 @@ branches: | |
| - master | ||
|
|
||
| script: | ||
| - yarn test | ||
| - npm test | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,38 +1,26 @@ | ||
| import Component from '@glimmer/component'; | ||
| import { action } from '@ember/object'; | ||
| import { inject as service } from '@ember/service'; | ||
| import { NEW_SIGNUP_FLOW } from '../../constants/analytics'; | ||
|
|
||
| export default class ButtonComponent extends Component { | ||
| @service analytics; | ||
|
|
||
| @action | ||
| buttonClickHandler() { | ||
| const { state, clickHandler, disabled } = this.args; | ||
| let event; | ||
|
|
||
| switch (state) { | ||
| case 'get-started': | ||
| event = NEW_SIGNUP_FLOW.USER_GETTING_STARTED; | ||
| !disabled ? clickHandler('firstName') : ''; | ||
| break; | ||
| case 'firstName': | ||
| event = NEW_SIGNUP_FLOW.USER_FIRST_NAME; | ||
| !disabled ? clickHandler('lastName') : ''; | ||
| break; | ||
| case 'lastName': | ||
| event = NEW_SIGNUP_FLOW.USER_LAST_NAME; | ||
| !disabled ? clickHandler('username') : ''; | ||
| break; | ||
| case 'username': | ||
| event = NEW_SIGNUP_FLOW.USER_USERNAME; | ||
| !disabled ? clickHandler() : ''; | ||
| break; | ||
| default: | ||
| event = NEW_SIGNUP_FLOW.SOMETHING_WENT_WRONG; | ||
| return; | ||
| } | ||
|
|
||
| this.analytics.trackEvent(event); | ||
| } | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This can be a static named id, so that we can easily grab it in the tests.