generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into signup-flow
- Loading branch information
Showing
23 changed files
with
11,572 additions
and
48,151 deletions.
There are no files selected for viewing
This file contains 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 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,3 +24,7 @@ | |
/.node_modules.ember-try/ | ||
/bower.json.ember-try | ||
/package.json.ember-try | ||
|
||
|
||
|
||
/package-lock.json |
This file contains 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 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" | ||
|
||
npm run lint | ||
yarn lint |
This file contains 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: | ||
- npm test | ||
- yarn test |
This file contains 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 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,26 +1,38 @@ | ||
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 contains 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// New SignUp Flow | ||
export const NEW_SIGNUP_FLOW = { | ||
USER_GETTING_STARTED: 'User Getting-Started - New SignUp Flow', | ||
USER_FIRST_NAME: 'User entered First Name - New SignUp Flow', | ||
USER_LAST_NAME: 'User entered Last Name - New SignUp Flow', | ||
USER_USERNAME: 'User entered Username - New SignUp Flow', | ||
SOMETHING_WENT_WRONG: 'Something went wrong - New SignUp Flow', | ||
USER_REGISTERED: 'User Registered - New SignUp Flow', | ||
UNABLE_TO_SIGNUP: 'Unable to Sign Up - New SignUp Flow Breaks', | ||
UNABLE_TO_REGISTER: 'Unable to Register - New SignUp Flow Breaks', | ||
}; | ||
|
||
// Old SignUp Flow | ||
export const OLD_SIGNUP_FLOW = { | ||
SUBMIT_CLICKED: 'Submit Button Clicked - Old SignUp Flow', | ||
USER_REGISTERED: 'User Registered - Old SignUp Flow', | ||
UNABLE_TO_SIGNUP: 'Unable to Sign Up - Old SignUp Flow Breaks', | ||
UNABLE_TO_REGISTER: 'User unable to register - Old SignUp Flow Breaks', | ||
}; | ||
|
||
export const SIGNUP = { | ||
PAGE_LOADED: 'Signup Page Loaded Successfully', | ||
USER_ALREADY_REGISTERED: 'User Already Registered', | ||
}; |
This file contains 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 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 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 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 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
Oops, something went wrong.