-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[MBL-1613] Handle errors for late pledges without dismissing the view controller #2171
Conversation
ad875bf
to
5ec631f
Compare
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.
LGTM 👍
@@ -34,12 +34,11 @@ public protocol NoShippingPostCampaignCheckoutViewModelOutputs { | |||
var goToLogin#: Signal<(LoginIntent, Project, Reward), Never> { get } | |||
var paymentMethodsViewHidden: Signal<Bool, Never> { get } | |||
var processingViewIsHidden: Signal<Bool, Never> { get } | |||
var showErrorBannerWithMessage: Signal<String, Never> { get } | |||
var showErrorBannerWithMessage: Signal<(String, /* persist: */ Bool), Never> { get } |
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.
nit: Adding parameter names instead of an inline comment might clarify that this output has the option to persist.
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.
Oh cool! Updated! TIL that swift allows you to name fields in a tuple (obj-c does not!)
… controller (#2171) * Fix late pledge error handling * Use named tuple fields for error banner
📲 What
Handle errors in the late pledge flow without a confirm details page by just showing an error banner (not dismissing the vc). The error banner will persist if the error happens when creating the checkout. If it's an error that happens in a part of the flow the user can retry (after hitting "pledge" or adding a new card) the banner disappears.
👀 See
Jira
✅ Acceptance criteria