-
Notifications
You must be signed in to change notification settings - Fork 999
MBL-2842: Only show 'manage pledge' menu if backing the project #2435
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
Conversation
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 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
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.
No you're right, I was going to add a test I promise XD
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 went ahead and commented with it still on draft, no need to apologize! XD, will be more patient promised! π
|
Codecov Reportβ Patch coverage is
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. π New features to boost your workflow:
|
Arkariang
left a comment
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.
lgtm!
(cherry picked from commit 172be4b)
π² 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 theManagePledgeMenuOptionsobject used to show/hide items in the 'manage pledge' menu.π See
As a non-Backer
π QA
(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