-
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-1744: Refactor Fix Pledge Flow #2142
Conversation
…project page and manage pledge screens
@@ -175,6 +176,9 @@ class ProjectPageActivity : | |||
env | |||
} | |||
|
|||
val ffClient = requireNotNull(environment?.featureFlagClient()) | |||
ffClient.activate(this) |
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.
calling activate
when the activity is loaded will minimize the fist installation gap when the information requested to firebase remote config has not yet been applied.
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2142 +/- ##
============================================
+ Coverage 67.48% 67.50% +0.02%
- Complexity 2221 2222 +1
============================================
Files 368 368
Lines 22889 22893 +4
Branches 3294 3294
============================================
+ Hits 15446 15454 +8
+ Misses 5689 5685 -4
Partials 1754 1754 ☔ View full report in Codecov by Sentry. |
@@ -441,9 +446,14 @@ class CrowdfundCheckoutViewModel(val environment: Environment, bundle: Bundle? = | |||
selectedPaymentMethod | |||
) | |||
} | |||
PledgeReason.FIX_PLEDGE, // Managed on PledgeFragment/ViewModel | |||
PledgeReason.FIX_PLEDGE -> { | |||
// - Fix pledge should NOT send amounts/rewardId's/locationId ONLY selected paymentMethod |
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.
❤️
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.
🎉
📲 What
Refactor of Fix Pledge flow
🤔 Why
CrowdfundCheckoutFragment/Viewmodel
, if feature flag is off will still usePledgeFragment/Viewmodel
PledgeFragment/Viewmodel
PledgeFragmentViewModel
🛠 How
CrowdfundViewModel
UpdateBacking
mutation only receivespaymentSourceId
when fixing a pledge.👀 See
FixPledgeFlowWorking.mp4
| | |
📋 QA
4000000000000341
then get the project to collect, (the card will fail due to insufficient funds), and fix pledge flow will be available.Story 📖
MBL-1744