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

Fix #6546: Fixed Display of Misc Award Images; Upgraded Award Image Scaling #6583

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

IllianiCBT
Copy link
Collaborator

  • Fixed misc image count to return misc images and not medals.
  • Added logging to warn if image files (ribbons, medals, misc) are missing.
  • Adjusted the maximum number of ribbon awards per row from 4 to 3 for better display with the new scaling tech.
  • Introduced scaleImage method in ImageUtilities. This is essentially a duplicate of scaleImageIcon, with reused components separated into a shared method.
  • Replaced award image scaling in PersonViewPanel with the new scaleImage method from ImageUtilities.

Fix #6546

Dev Notes

Users may notice some images appearing different once this has been merged, that will be because we are now respecting the image's aspect ratio, rather than using fixed values.

- Fixed misc image count to return misc images and not medals.
- Added logging to warn if image files (ribbons, medals, misc) are missing.
- Adjusted the maximum number of ribbon awards per row from 4 to 3 for better display with the new scaling tech.
- Introduced `scaleImage` method in `ImageUtilities`. This is essentially a duplicate of `scaleImageIcon`, with reused components separated into a shared method.
- Replaced award image scaling in `PersonViewPanel` with the new `scaleImage` method from `ImageUtilities`.
@IllianiCBT IllianiCBT added Bug Awards GUI Severity: Low Issues described as low severity as per the new issue form labels Apr 7, 2025
@IllianiCBT IllianiCBT self-assigned this Apr 7, 2025
@IllianiCBT IllianiCBT changed the title Fixed Display of Misc Award Images; Upgraded Award Image Scaling Fix #6546: Fixed Display of Misc Award Images; Upgraded Award Image Scaling Apr 7, 2025
Copy link

codecov bot commented Apr 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.43%. Comparing base (f44952c) to head (0c73db8).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6583   +/-   ##
=========================================
  Coverage     11.43%   11.43%           
- Complexity     6451     6455    +4     
=========================================
  Files          1087     1087           
  Lines        139447   139449    +2     
  Branches      21560    21557    -3     
=========================================
+ Hits          15944    15946    +2     
- Misses       121908   121910    +2     
+ Partials       1595     1593    -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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awards Bug GUI Severity: Low Issues described as low severity as per the new issue form
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Issue] 50.04 Awards not displaying or the award images are compressed
1 participant