Skip to content
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-1573: Checkout Screen (Pledge and update payment method flows for crowdfund) #2096

Merged
merged 8 commits into from
Aug 14, 2024

Conversation

Arkariang
Copy link
Contributor

@Arkariang Arkariang commented Aug 14, 2024

📲 What

  • New checkout screen using late pledges UI + entirely new VM
  • ⚠️ Still work in progress more PR's will come later on with: Adding new payment method, Choose another reward flow.
  • ⚠️ Still work in progress more PR's will come with bunch of testing!

👀 See

PledgeAndChangePaymentMethod.mp4

| | |

📋 QA

  • Pledge to any project in staging
  • Change the payment method for a any of your pledged projects in staging

Story 📖

MBL-1573

@Arkariang Arkariang changed the title MBL-1573: Checkout Screen (Pledge and update payment method flows) MBL-1573: Checkout Screen (Pledge and update payment method flows for crowdfund) Aug 14, 2024
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 274 lines in your changes missing coverage. Please review.

Project coverage is 67.43%. Comparing base (97e377b) to head (717fdc1).

Files Patch % Lines
...ewmodels/projectpage/CrowdfundCheckoutViewModel.kt 0.00% 239 Missing ⚠️
...ickstarter/services/mutations/UpdateBackingData.kt 0.00% 23 Missing ⚠️
...ain/java/com/kickstarter/libs/utils/RewardUtils.kt 0.00% 7 Missing ⚠️
...i/activities/compose/projectpage/CheckoutScreen.kt 0.00% 5 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@                         Coverage Diff                         @@
##             feature/pledge-redemption-ml1    #2096      +/-   ##
===================================================================
- Coverage                            68.26%   67.43%   -0.84%     
  Complexity                            2136     2136              
===================================================================
  Files                                  365      366       +1     
  Lines                                21965    22237     +272     
  Branches                              3120     3158      +38     
===================================================================
  Hits                                 14995    14995              
- Misses                                5296     5568     +272     
  Partials                              1674     1674              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Arkariang Arkariang marked this pull request as ready for review August 14, 2024 15:56
@Arkariang Arkariang self-assigned this Aug 14, 2024
@Arkariang Arkariang added the Pledge Redemption PRs related to Pledge Redemption 2024 label Aug 14, 2024
import com.kickstarter.ui.fragments.PledgeFragment

fun Fragment.selectPledgeFragment(
pledgeData: PledgeData,
pledgeReason: PledgeReason
): Fragment {
return PledgeFragment().withData(pledgeData, pledgeReason)
val fragment = if (pledgeReason == PledgeReason.FIX_PLEDGE) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notice here we can decide which crowdfund flows will use the new UI + VM

* - When updating payment method with a previously existing payment source
* - Updating any other parameter like location, amount or rewards
*/
fun getUpdateBackingData(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Package level method

Copy link
Contributor

@leighdouglas leighdouglas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉🎉🎉

@Arkariang Arkariang merged commit 127a79d into feature/pledge-redemption-ml1 Aug 14, 2024
3 checks passed
@Arkariang Arkariang deleted the imartin/MBL-1573 branch August 14, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pledge Redemption PRs related to Pledge Redemption 2024
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants