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

Added font-awesome-based icons #554

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

LucaCappelletti94
Copy link

As per title, adds suppory for font-awesome-based icons matched with the emojis to the best of my abilities. This is simply added as additional consts dictionaries.

Closes #553

Copy link

codecov bot commented Apr 26, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 95.92%. Comparing base (52dfd56) to head (c29e513).

❗ Current head c29e513 differs from pull request most recent head 10c2df7. Consider uploading reports for the commit 10c2df7 to get more accurate results

Files Patch % Lines
pyinaturalist/constants.py 86.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #554      +/-   ##
==========================================
- Coverage   95.95%   95.92%   -0.04%     
==========================================
  Files          59       60       +1     
  Lines        3340     3358      +18     
  Branches      638      639       +1     
==========================================
+ Hits         3205     3221      +16     
- Misses         96       98       +2     
  Partials       39       39              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@JWCook JWCook left a comment

Choose a reason for hiding this comment

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

Hi, sorry for the delay in responding to this! Just a couple changes and I'll be happy to merge this.

Copy link
Member

Choose a reason for hiding this comment

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

Since this isn't currently used by any other library features, could you move all the Font Awesome-related code from constants.py to the new module font_awesome_icons.py?

}

assert set(ICONIC_TAXA.keys()) == set(ICONIC_EMOJI.keys())
assert set(ICONIC_TAXA.keys()) == set(ICONIC_FONT_AWESOME.keys())
Copy link
Member

Choose a reason for hiding this comment

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

Could you remove these asserts? Those should generally only be used in unit tests.

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.

Feature request: support for font-awesome icons inplace of emojis for user interface
2 participants