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

MLB:1856: changed copy on backingfragment whe plot selected #2181

Merged
merged 4 commits into from
Dec 3, 2024

Conversation

jlplks
Copy link
Contributor

@jlplks jlplks commented Nov 29, 2024

📲 What

changed copy on backingfragment whe plot selected

🤔 Why

Because copy should be different when plot is selected

🛠 How

adding validation with feature flag and project.isPledOverTimeAllowed

@codecov-commenter
Copy link

codecov-commenter commented Nov 30, 2024

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

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 68.66%. Comparing base (91785ea) to head (202d76f).

Files with missing lines Patch % Lines
...pp/src/main/java/com/kickstarter/models/Project.kt 85.71% 0 Missing and 1 partial ⚠️

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

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2181   +/-   ##
=========================================
  Coverage     68.65%   68.66%           
- Complexity     2167     2168    +1     
=========================================
  Files           348      348           
  Lines         23179    23186    +7     
  Branches       3390     3391    +1     
=========================================
+ Hits          15914    15920    +6     
  Misses         5453     5453           
- Partials       1812     1813    +1     

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

@@ -534,13 +562,22 @@ interface BackingFragmentViewModel {
Backing.STATUS_COLLECTED -> R.string.We_collected_your_pledge_for_this_project
Backing.STATUS_DROPPED -> R.string.Your_pledge_was_dropped_because_of_payment_errors
Backing.STATUS_ERRORED -> R.string.We_cant_process_your_pledge_Please_update_your_payment_method
Backing.STATUS_PLEDGED -> R.string.If_your_project_reaches_its_funding_goal_the_backer_will_be_charged_total_on_project_deadline
Backing.STATUS_PLEDGED -> {
Copy link
Contributor

Choose a reason for hiding this comment

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

@jlplks add tests for the new string, take a look here to see an example -> @Test fun testFixPaymentMethodButtonIsGone_whenBackingIsErrored() at BackingFragmentViewModelTest.kt

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added the test

Arkariang
Arkariang previously approved these changes Dec 2, 2024
@jlplks jlplks merged commit 2b898d9 into master Dec 3, 2024
3 checks passed
@jlplks jlplks deleted the jpulido/MLB-1856 branch December 3, 2024 16:53
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.

3 participants