-
Notifications
You must be signed in to change notification settings - Fork 991
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
MBL-1571: Bonus support in add ons screen #2089
MBL-1571: Bonus support in add ons screen #2089
Conversation
…r/android-oss into imartin/MBL-1571-bonnusSupportInAddOnsScreen
- login in case there is no user before latepledge checkout VM call `create_mutation` - tested for both late pledge and crowdfunding checkout
- Bonus support from backing loaded - Create checkout mutation called with success response
…r/android-oss into imartin/MBL-1571-bonnusSupportInAddOnsScreen
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## feature/pledge-redemption-ml1 #2089 +/- ##
===================================================================
+ Coverage 67.57% 68.44% +0.87%
+ Complexity 2130 2125 -5
===================================================================
Files 365 365
Lines 22205 21819 -386
Branches 3132 3086 -46
===================================================================
- Hits 15005 14934 -71
+ Misses 5543 5221 -322
- Partials 1657 1664 +7 ☔ View full report in Codecov by Sentry. |
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.
Nicely done, love the utils methods, makes it much cleaner
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.
😭 hardly knew them
📲 What
Bonus support stepper has been moved to AddOns Screen, for both crowdfund and late pledges.
🛠 How
Several refactors required here:
createCheckout
mutation, and call the logIn flow in case the user was not logged in.mutation for late pledges is now called in
LatePledgeCheckoutViewModel`PledgeData
objects as input an output of the screens, all calculations have been moved toPledgeData
extension functionsPledgeData.shippingCostIfShipping()
,PledgeData.checkoutTotalAmount()
,PledgeData.pledgeAmountTotalPlusBonus()
,PledgeData.pledgeAmountTotal()
, all these methods have been fully unit tested.BonusSupport.kt
,PledgeItemizedDetails
alongside the shipping selector.👀 See
AddOns screen now has the bonus support input, and above the continue button you can see the total pledge amount being updated with addOns amounts + reward amount + bonus amount
late_pledge_testing.mp4
crowdfund_pledge.mp4
| | |
📋 QA
Story 📖
MBL-1571