-
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-1210] Post campaign checkout #1984
Conversation
@@ -44,6 +44,8 @@ final class PostCampaignPledgeRewardsSummaryViewController: UIViewController { | |||
override func viewDidLoad() { | |||
super.viewDidLoad() | |||
|
|||
self.view.isHidden = true | |||
self.pledgeTotalViewController.view.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.
Note: It's important to never put anything in bindStyles
that can be overwritten later. Anything to do with initial state needs to go in viewDidLoad
instead. I spent hours trying to debug why the table wasn't showing up on the checkout screen 😭
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.
Thanks for calling that out! For some reason, the separator view was still showing... I just hid that as well and the table is back to being fully hidden before data loads!
import Library | ||
import UIKit | ||
|
||
struct PledgeViewControllerHelpers { |
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 function is literally copy-pasted from the pledgeViewController
with no changes; no need to review carefully.
SwiftFormat found issues:
Generated by 🚫 Danger |
private lazy var pledgeCTAContainerView: PledgeViewCTAContainerView = { | ||
PledgeViewCTAContainerView(frame: .zero) | ||
|> \.translatesAutoresizingMaskIntoConstraints .~ false | ||
// TODO: Add self as delegate and add support for delegate methods. |
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 wasn't sure if we have a ticket for wiring up the payment flow here; let me know if we do and I'll link it
b9ac374
to
36c0749
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.
Note: The initial prs are neatly organized if you want to review them in order. However, that merge conflict was evil, so I gave up on organized commits after that.
36c0749
to
cce1e8d
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.
This first piece is looking good!
We just need the bonus support amount to also be shown in the pledge rewards summary table. It looks like the bonus amount is being passed along to the table correctly. I'm not seeing why the table isn't displaying the bonus item row though.
@@ -44,6 +44,8 @@ final class PostCampaignPledgeRewardsSummaryViewController: UIViewController { | |||
override func viewDidLoad() { | |||
super.viewDidLoad() | |||
|
|||
self.view.isHidden = true | |||
self.pledgeTotalViewController.view.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.
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.
GTG one the circleci issues are resolved
📲 What
Add a mostly completed post campaign checkout page. This page is presented after the confirm details page. See
TODO
section for remaining work.Note: This (including the TODOs) only update the UI. The payment sheet is not wired up yet at all.
👀 See
Jira
♿️ Accessibility
Note: VoiceOver will be tested later to unblock work.
✅ Acceptance criteria
⏰ TODO
TODO in follow-up prs to unblock work
postCampaignPledge
context and b) properly set fields & respond to login flow