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 packaging of fonts #2020

Merged
merged 1 commit into from
Jul 23, 2024
Merged

🐛 Fix packaging of fonts #2020

merged 1 commit into from
Jul 23, 2024

Conversation

sjd78
Copy link
Member

@sjd78 sjd78 commented Jul 22, 2024

Update webpack.common.ts to the current patternfly-react-seed1 packaging configs for fonts. This allows the correct fonts to be used in the app - RedHatText over helvetica.

This also resolves any browser console reported errors of the form:

  • Failed to decode downloaded font: <url>
  • OTS parsing error: invalid sfntVersion: 1702391919

Update clean script for client package to include jest coverage reports.

Resolves: #2021

Footnotes

  1. https://github.com/patternfly/patternfly-react-seed

@sjd78 sjd78 added this to the v0.5.0 milestone Jul 22, 2024
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 42.07%. Comparing base (b654645) to head (66393a9).
Report is 196 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2020      +/-   ##
==========================================
+ Coverage   39.20%   42.07%   +2.87%     
==========================================
  Files         146      171      +25     
  Lines        4857     5511     +654     
  Branches     1164     1359     +195     
==========================================
+ Hits         1904     2319     +415     
- Misses       2939     3076     +137     
- Partials       14      116     +102     
Flag Coverage Δ
client 42.07% <ø> (+2.87%) ⬆️
server ?

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Update `webpack.common.ts` to the current patternfly-react-seed[^1]
packaging configs for fonts.  This allows the correct fonts to be
used in the app - `RedHatText` over `helvetica`.

This also resolves any browser console reported errors of the form:
  - `Failed to decode downloaded font: <url>`
  - `OTS parsing error: invalid sfntVersion: 1702391919`

[^1]: https://github.com/patternfly/patternfly-react-seed

Signed-off-by: Scott J Dickerson <[email protected]>
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.

[BUG] Browser console logs errors with downloaded fonts
2 participants