Skip to content

Remove unused font-awesome-rails#88

Merged
JuanVqz merged 1 commit into
mainfrom
chore/remove-font-awesome-rails
Jul 10, 2026
Merged

Remove unused font-awesome-rails#88
JuanVqz merged 1 commit into
mainfrom
chore/remove-font-awesome-rails

Conversation

@JuanVqz

@JuanVqz JuanVqz commented Jul 10, 2026

Copy link
Copy Markdown
Member

What

Removes the unused font-awesome-rails gem.

Why

font-awesome-rails was pulled in solely by a bare @import "font-awesome" in app/assets/stylesheets/pdf.scss, but no icon is ever rendered: there are no fa- classes, no fa_icon helpers, and no Font Awesome glyphs anywhere in the views or stylesheets. It imported the entire Font Awesome CSS plus its webfonts (fontawesome-webfont.woff/ttf/svg) into the PDF asset bundle for zero visible benefit.

The fastruby-styleguide gem does not depend on it (the styleguide uses Material Icons + Bootstrap, self-contained). font-awesome-rails is a direct-only dependency — nothing pulls it transitively.

Changes

  • Gemfile: remove gem "font-awesome-rails"
  • pdf.scss: remove the @import "font-awesome" line (and its stale section comment)
  • Gemfile.lock + dual-boot Gemfile.next.lock updated

Verification

  • assets:precompile compiles pdf.css cleanly and no fontawesome-webfont assets are emitted anymore
  • Unit tests: 16 runs, 52 assertions, 0 failures
  • rubocop clean (exact CI config), reek clean
  • System test (upload → results → PDF download) passes in headless Chrome — the PDF still renders correctly

font-awesome-rails was pulled in solely by a bare `@import "font-awesome"`
in pdf.scss, but no icon is ever rendered: no fa- classes, no fa_icon, no
FA glyphs in any view or stylesheet. It imported the entire Font Awesome CSS
plus its webfonts (fontawesome-webfont.woff/ttf/svg) into the PDF bundle for
zero visible benefit. The fastruby-styleguide gem does not use it either (it
uses Material Icons); font-awesome-rails is a direct-only dependency.

Dropped the gem and the pdf.scss import; both lockfiles updated.

Verified locally: assets:precompile compiles pdf.css with no fontawesome
webfonts emitted, unit tests 16/52/0, rubocop + reek clean, and the system
test (upload -> results -> PDF download) passes in headless Chrome — the PDF
still renders.
@JuanVqz JuanVqz self-assigned this Jul 10, 2026
@JuanVqz JuanVqz marked this pull request as ready for review July 10, 2026 14:22
@JuanVqz JuanVqz merged commit 9eec8ac into main Jul 10, 2026
2 checks passed
@JuanVqz JuanVqz deleted the chore/remove-font-awesome-rails branch July 10, 2026 14:22
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.

1 participant