Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jlplks
Copy link
Contributor

@jlplks jlplks commented Jun 9, 2025

📲 What

Refactored the onContinueClicked method in CheckoutFlowViewModel to support a simplified use case where only a continueCallback is needed. This is now used in ProjectPageActivity when login flow is already guaranteed to be completed.

🤔 Why

The original onContinueClicked required both logInCallback and continueCallback, even in cases where the user is already logged in and the login check was redundant. This change adds a simpler, cleaner path for flows where login gating is handled earlier in the UI flow, improving readability and responsibility separation.

🛠 How

Implemented the onContinueClicked(continueCallback: () -> Unit) method to:

  • Emit the next UI state (currentPage = 4, expanded = true)
  • Immediately invoke the provided continueCallback
  • Updated ProjectPageActivity to use this simplified version when login is already guaranteed.

👀 See

latepledgefix.webm

📋 QA

  1. Launch the app and navigate to a late pledge project.
    2. Do the checkout flow
    3. Select a reward and proceed to add addons.
    4. Addons selection should then send you the final checkout step
    5. Verify pledge submission still works correctly.

Story 📖

MBL- 2489 Late pledges Regression for Android 3.32.0

@codecov-commenter
Copy link

codecov-commenter commented Jun 9, 2025

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

Codecov Report

Attention: Patch coverage is 66.66667% with 7 lines in your changes missing coverage. Please review.

Project coverage is 66.51%. Comparing base (0fdad87) to head (a652ada).

Files with missing lines Patch % Lines
...er/viewmodels/projectpage/CheckoutFlowViewModel.kt 0.00% 4 Missing ⚠️
...ter/viewmodels/projectpage/ProjectPageViewModel.kt 81.81% 0 Missing and 2 partials ⚠️
...iewmodels/projectpage/RewardsSelectionViewModel.kt 83.33% 1 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2344   +/-   ##
=========================================
  Coverage     66.51%   66.51%           
- Complexity     2271     2272    +1     
=========================================
  Files           367      367           
  Lines         25785    25803   +18     
  Branches       3861     3866    +5     
=========================================
+ Hits          17151    17164   +13     
- Misses         6657     6660    +3     
- Partials       1977     1979    +2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jlplks
Copy link
Contributor Author

jlplks commented Jun 11, 2025

just need to fix the tets that are not working now

tonyteate

This comment was marked as resolved.

Copy link
Contributor

@tonyteate tonyteate left a comment

Choose a reason for hiding this comment

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

👍

@jlplks jlplks merged commit 283d294 into master Jun 11, 2025
3 checks passed
@jlplks jlplks deleted the jpulido/MBL-2489 branch June 11, 2025 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants