-
Notifications
You must be signed in to change notification settings - Fork 400
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
Frontend Compatibility for Multiple Promoted Addon Groups #13343
Frontend Compatibility for Multiple Promoted Addon Groups #13343
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #13343 +/- ##
=======================================
Coverage 98.28% 98.28%
=======================================
Files 267 267
Lines 10620 10628 +8
Branches 3237 3241 +4
=======================================
+ Hits 10438 10446 +8
Misses 169 169
Partials 13 13 ☔ View full report in Codecov by Sentry. |
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 would approve this, with some nits, and verify with the addons-server PR after this is merged. wdyt?
b99585a
to
f7c66f9
Compare
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.
That's a good start, thanks. I provided some diffs to help you get to where I'd like us to go.
Additionally, I noticed a bunch of UI glitches:
@willdurand idk what is happening but github refuses to let me remove myself, in the process of wrestling the UI I re-requested review from you (accidentally) |
updated implementation to only show one badge in all scenarios
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.
Looking good, some more changes and we should be good
Closes mozilla/addons#15226
Makes the frontend compatible with receiving a list of promoted addons rather than just one, per mozilla/addons-server#22888.
Chooses to display only the most 'important' badge.
Still allows for just one promoted addon (i.e won't break anything while mozilla/addons-server#22888 is in progress)