-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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-1897] Hide "Edit Reward" when pledge over time #2221
[MBL-1897] Hide "Edit Reward" when pledge over time #2221
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.
Small change to the test may be required, correct me if I'm wrong though.
|
||
self.showActionSheetMenuWithOptions.assertValues([ | ||
[ | ||
ManagePledgeAlertAction.updatePledge, |
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.
Should it be including updatePledge
? If this is only implemented when featureNoShippingAtCheckout()
is true, then it looks like updatePledge
should also be filtered out.
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.
You're correct – since pledgeOverTime
coexists with noShippingAtCheckout
, I should include that feature flag as well and remove updatePledge
from this test. Thanks for pointing it out!
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.
Looks good apart from the test thing that Amy already pointed out!
|
||
let mockConfigClient = MockRemoteConfigClient() | ||
mockConfigClient.features = [ | ||
RemoteConfigFeature.pledgeOverTime.rawValue: true |
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.
I agree with Amy - just add the featureNoShippingAtCheckout
flag here, too, so that the test makes sense!
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.
Also agree – the test has been updated to include the featureNoShippingAtCheckout
flag. Thanks for the input!
…o jluna/MBL-1897/plot-manage-pledge-summary-hide-edit-reward
…de-edit-reward # Conflicts: # Kickstarter-iOS/Features/PledgeOverTime/Controller/PledgePaymentPlansViewController.swift # Kickstarter-iOS/Features/PledgeOverTime/Controller/PledgePaymentPlansViewControllerTest.swift # Kickstarter-iOS/Features/PledgeOverTime/Views/PledgePaymentPlanOptionView.swift # Library/ViewModels/NoShippingPledgeViewModel.swift # Library/ViewModels/PledgePaymentPlansOptionViewModel.swift # Library/ViewModels/PledgePaymentPlansOptionViewModelTest.swift # Library/ViewModels/PledgePaymentPlansViewModel.swift # Library/ViewModels/PledgePaymentPlansViewModelTest.swift
…dgeOverTime` coexists with `noShippingAtCheckout`
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.
Agree with you both, test updated
|
||
self.showActionSheetMenuWithOptions.assertValues([ | ||
[ | ||
ManagePledgeAlertAction.updatePledge, |
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.
You're correct – since pledgeOverTime
coexists with noShippingAtCheckout
, I should include that feature flag as well and remove updatePledge
from this test. Thanks for pointing it out!
|
||
let mockConfigClient = MockRemoteConfigClient() | ||
mockConfigClient.features = [ | ||
RemoteConfigFeature.pledgeOverTime.rawValue: true |
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.
Also agree – the test has been updated to include the featureNoShippingAtCheckout
flag. Thanks for the input!
📲 What
This PR hides the "Edit Reward" option for PLOT-enabled pledges in the "Manage Pledge" screen.
🤔 Why
Backers with PLOT (Pledge Over Time) enabled cannot edit their pledge after the initial checkout. The "Edit Reward" option must be removed to avoid confusion and align with the PLOT functionality restrictions.
🛠 How
backing.PaymentIncrements
is not yet available (MBL-1851), a temporary validation has been added for development and testing purposes.featurePledgeOverTimeEnabled()
is used to simulate that the pledge isPledge Over Time
.backing.PaymentIncrements
properly.👀 See
✅ Acceptance criteria
Pledge Over Time
is enabled.Pledge Over Time
is disabled.⏰ TODO
featurePledgeOverTimeEnabled()
withbacking.PaymentIncrements
once MBL-1851 is implemented.