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
Fixes #3900: Add file size info to addon's "More Info" section #8229
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8229 +/- ##
==========================================
+ Coverage 98.11% 98.11% +<.01%
==========================================
Files 257 257
Lines 7328 7334 +6
Branches 1323 1325 +2
==========================================
+ Hits 7190 7196 +6
Misses 124 124
Partials 14 14
Continue to review full report at Codecov.
|
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.
Looks good to me, thanks!
translate(), | ||
connect(mapStateToProps), |
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.
Why is this needed?
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 changed the order because getVersionInfo
reducer inside mapStateToProps
needs i18n
prop.
https://github.com/mozilla/addons-frontend/pull/8229/files#diff-4b306eb17d4142f5ba2588bb8ef72183R307
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.
ah, I see. Thanks!
translate(), | ||
connect(mapStateToProps), |
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.
ah, I see. Thanks!
Thank you for your first contribution @voronianski 🎉 /cc @caitmuenster |
Woohoo! Thanks for the patch, @voronianski! ✨ Your contribution has been added to our recognition wiki and your mozillians profile has been vouched. Welcome onboard! We look forward to seeing you around the project. |
Thanks! |
Fixes #3900
This patch adds file size information to "More Info" section on addon's page.
Before:
After:
Approach and changes
AddonMoreInfo
component withversionInfo
propgetVersionInfo
reducer for this purpose similarly toAddonVersionCard
component which is already capable of displaying such dataTestAddonMoreInfo
to cover the change