-
Notifications
You must be signed in to change notification settings - Fork 481
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
[Amplitude] Section Sign In - Dismiss or Accept #50131
Conversation
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.
It looks good! I left one comment about naming consistency, but it's not hugely important so going to approve now:)
@@ -2,6 +2,8 @@ const EVENTS = { | |||
// Sign-up flow | |||
ACCOUNT_TYPE_PICKED_EVENT: 'Account Type Picked', | |||
SIGN_UP_FINISHED_EVENT: 'Sign Up Finished', | |||
SECTION_SETUP_SIGN_IN_EVENT: 'Section Setup Sign In', | |||
ABANDON_SECTION_SETUP_SIGN_IN_EVENT: 'Abandon Section Setup Sign In', |
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.
Would it be possible to align between 'abandon' and 'dismiss' throughout this implementation (I think it would be ideal if the event names/testing/function names matched)? I think either is good:)
render() { | ||
const {isOpen} = this.state; | ||
|
||
return ( | ||
<BaseDialog | ||
useUpdatedStyles | ||
handleClose={() => this.setState({isOpen: false})} | ||
handleClose={this.abandonEditingSection} |
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.
love the abstraction here:)
analyticsSpy.restore(); | ||
}); | ||
|
||
it('logs an Amplitude event for when the user selects to create a section', () => { |
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.
Yay for tests!
Adds an Amplitude log call for both the "Accept" (Start to create a section) and "Dismiss" (no action) options on the Section Creation Interstitial Dialog.
Includes test.