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

Skip to content

Conversation

@tonyteate
Copy link
Contributor

@tonyteate tonyteate commented Oct 21, 2025

πŸ“² What

Show 'manage pledge' menu items only when a user is a backer of a Project.

πŸ€” Why

Users can only manage the Pledge of a Project they are backing.

πŸ›  How

Check Project.isBacking() when creating the ManagePledgeMenuOptions object used to show/hide items in the 'manage pledge' menu.

πŸ‘€ See

As a non-Backer

Before πŸ› After πŸ¦‹

πŸ“‹ QA

  • Prerequisites: Log into the app
    (1) Visit the rewards carousel for a Project that you are not backing and confirm that the toolbar menu is hidden.
    (2) Visit the Manage Pledge screen for Project that you are backing, and ensure that the proper menu items are visible and accessible.

Story πŸ“–

[MBL-2842] Manage Pledge menu items visible when not backing - Jira

@tonyteate tonyteate marked this pull request as draft October 21, 2025 16:27
Copy link
Contributor

@Arkariang Arkariang Oct 21, 2025

Choose a reason for hiding this comment

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

I know is covered by tests on ProjectPageViewModelTest, but might be worth it creating specific tests for this isolated piece if possible to avoid any similar bugs in the future. No need to do it now! perfectly ok with a separated ticket

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No you're right, I was going to add a test I promise XD

Copy link
Contributor

Choose a reason for hiding this comment

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

I went ahead and commented with it still on draft, no need to apologize! XD, will be more patient promised! πŸ‘

@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2025

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

Codecov Report

❌ Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.
βœ… Project coverage is 64.65%. Comparing base (69c1fd4) to head (d0fbc64).

Files with missing lines Patch % Lines
...arter/ui/helpers/ManagePledgeMenuOptionsFactory.kt 66.66% 0 Missing and 2 partials ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2435   +/-   ##
=========================================
  Coverage     64.64%   64.65%           
- Complexity     2390     2392    +2     
=========================================
  Files           376      376           
  Lines         28453    28453           
  Branches       4119     4121    +2     
=========================================
+ Hits          18393    18395    +2     
  Misses         7800     7800           
+ Partials       2260     2258    -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.

@tonyteate tonyteate changed the title MBL-2841: Only show 'manage pledge' menu if backing the project MBL-2842: Only show 'manage pledge' menu if backing the project Oct 21, 2025
@tonyteate tonyteate marked this pull request as ready for review October 21, 2025 17:54
@tonyteate tonyteate requested a review from Arkariang October 21, 2025 17:54
Copy link
Contributor

@Arkariang Arkariang left a comment

Choose a reason for hiding this comment

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

lgtm!

@Arkariang Arkariang merged commit 172be4b into master Oct 21, 2025
3 checks passed
@Arkariang Arkariang deleted the tony/mbl-2842 branch October 21, 2025 18:30
Arkariang pushed a commit that referenced this pull request Oct 21, 2025
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.

4 participants