-
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-1816] PLOT Ineligible state #2220
base: jluna/MBL-1815/plot-plan-selector-selected-state
Are you sure you want to change the base?
[MBL-1816] PLOT Ineligible state #2220
Conversation
…jluna/MBL-1816/plot-ineligible-state # Conflicts: # Kickstarter-iOS/Features/PledgeOverTime/Views/PledgePaymentPlanOptionView.swift # Library/ViewModels/NoShippingPledgeViewModel.swift # Library/ViewModels/PledgePaymentPlansViewModel.swift
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.
Nice! Had just a few suggestions that should be pretty easy to get in before we merge this
Kickstarter-iOS/Features/PledgeOverTime/Views/PledgePaymentPlanOptionView.swift
Outdated
Show resolved
Hide resolved
@@ -174,6 +205,7 @@ final class PledgePaymentPlanOptionView: UIView { | |||
self.titleLabel.rac.text = self.viewModel.outputs.titleText | |||
|
|||
self.subtitleLabel.rac.text = self.viewModel.outputs.subtitleText | |||
self.subtitleLabel.isHidden = 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.
This can probably go in applySubtitleLabelStyle
with the other styles.
Kickstarter-iOS/Features/PledgeOverTime/Views/PledgePaymentPlanOptionView.swift
Outdated
Show resolved
Hide resolved
Kickstarter-iOS/Features/PledgeOverTime/Views/PledgePaymentPlanOptionView.swift
Outdated
Show resolved
Hide resolved
Kickstarter-iOS/Features/PledgeOverTime/Views/PledgePaymentPlanOptionView.swift
Outdated
Show resolved
Hide resolved
…jluna/MBL-1816/plot-ineligible-state # Conflicts: # Library/ViewModels/NoShippingPledgeViewModel.swift
📲 What
This PR implements the "PLOT ineligible" state for the Payment Plan Selector. It disables the "Pledge Over Time" option when the total pledge amount is below the threshold of $150.00 and displays a note indicating the ineligibility, with the amount converted using the project’s currency.
🤔 Why
The "PLOT is NOT eligible" state ensures backers understand why the "Pledge Over Time" option is unavailable. This limitation is based on the total pledge amount being below the required threshold of $150.00. By providing clear feedback, users are informed of the eligibility requirements.
🛠 How
Adding the new field
ineligible
toPledgePaymentPlanOptionData
andPledgePaymentPlansAndSelectionData
👀 See
✅ Acceptance criteria
⏰ TODO