Skip to content
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

Merged
merged 3 commits into from
Feb 9, 2023

Conversation

epeach
Copy link

@epeach epeach commented Feb 7, 2023

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.

@epeach epeach requested a review from a team February 7, 2023 22:54
Copy link
Contributor

@hannahbergam hannahbergam left a 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',
Copy link
Contributor

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}
Copy link
Contributor

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', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay for tests!

@epeach epeach merged commit 6acdde7 into staging Feb 9, 2023
@epeach epeach deleted the amplitude-section-sign-in branch February 9, 2023 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants