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

[NT-486] Tracking event for Update Payment Method #923

Merged
merged 7 commits into from
Nov 1, 2019

Conversation

cdolm92
Copy link
Contributor

@cdolm92 cdolm92 commented Oct 31, 2019

📲 What

Improvements in monitoring user behavior for v1 checkout. This tracks update payment methods.

🤔 Why

We now have the Update Payment Method Button Clicked event.

✅ Acceptance criteria

  • Navigate to a live and backed project. Go to the manage menu and tap Change Payment Method. Change your payment method and tap Confirm, you should see the "Update Payment Method Button Clicked" triggered.

@cdolm92 cdolm92 requested a review from Scollaco October 31, 2019 18:21
@cdolm92 cdolm92 changed the title tracking event for update payment method [NT-486] Tracking event for Update Payment Method Oct 31, 2019
Copy link
Contributor Author

@cdolm92 cdolm92 left a comment

Choose a reason for hiding this comment

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

Reviewed w/ @Scollaco


//Tracking
projectAndPledgeAmount
.filter { context, _, _ in context == .changePaymentMethod}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Change to .filter { $0.0 == .changePaymentMethod }

@@ -548,6 +548,17 @@ public class PledgeViewModel: PledgeViewModelType, PledgeViewModelInputs, Pledge

self.submitButtonTitle = context.map { $0.submitButtonTitle }
self.title = context.map { $0.title }
let projectAndPledgeAmount = Signal.combineLatest(context, project, pledgeAmount)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

rename to contextAndProjectAndPledgeAmount

updateBackingResult: .success(updateBackingEnvelope)
)

withEnvironment(apiService: mockService, currentUser: .template) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

remove environment.

Copy link
Contributor

@Scollaco Scollaco left a comment

Choose a reason for hiding this comment

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

🚢

@cdolm92
Copy link
Contributor Author

cdolm92 commented Oct 31, 2019

Thanks for approving, it will merge when tests pass. Fixed merge conflict and organized the tracking test a little better.

@cdolm92 cdolm92 merged commit 9cd4b22 into master Nov 1, 2019
@cdolm92 cdolm92 deleted the update-payment-method-event branch November 1, 2019 14:35
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.

2 participants