Skip to content

Remove Pathogen::Icon and standardize icon rendering#17

Merged
ericenns merged 27 commits into
mainfrom
phase-3.5-remove-pathogen-icon-20260327-134314
May 4, 2026
Merged

Remove Pathogen::Icon and standardize icon rendering#17
ericenns merged 27 commits into
mainfrom
phase-3.5-remove-pathogen-icon-20260327-134314

Conversation

@joshsadam
Copy link
Copy Markdown
Contributor

@joshsadam joshsadam commented Mar 27, 2026

What does this PR do and why?

This PR removes the internal Pathogen::Icon component and related icon support code from the gem. It updates button visuals and demo previews to use helpers.icon directly, and moves the rails_icons setup into the demo app so Lookbook previews still render.

Screenshots or screen recordings

No visual changes expected.

How to set up and validate locally

  1. Run bin/setup.
  2. Run bundle exec rubocop.
  3. Run bin/test.
  4. From demo/, run bin/setup, then bin/dev.
  5. Open http://localhost:3001/lookbook and verify the button, tabs, tooltip, and typography previews still render icons without missing asset errors.

PR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

@joshsadam joshsadam self-assigned this Mar 27, 2026
@joshsadam joshsadam changed the title Remove Pathogen Icons refactor: remove Pathogen::Icon and route buttons to rails_icons Mar 27, 2026
Copy link
Copy Markdown
Member

@ericenns ericenns left a comment

Choose a reason for hiding this comment

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

This is mostly working, except that the following previews throw errors:

Image Image

@joshsadam
Copy link
Copy Markdown
Contributor Author

This is mostly working, except that the following previews throw errors:

Image Image

Updated the instructions, need to run bin/setup not bin/dev, sorry.

@joshsadam joshsadam force-pushed the phase-3.5-remove-pathogen-icon-20260327-134314 branch from f716544 to 2a7a054 Compare April 28, 2026 17:03
@joshsadam joshsadam changed the title refactor: remove Pathogen::Icon and route buttons to rails_icons refactor!: remove Pathogen::Icon; standardize icon rendering Apr 28, 2026
@joshsadam joshsadam changed the title refactor!: remove Pathogen::Icon; standardize icon rendering Remove Pathogen::Icon and standardize icon rendering Apr 28, 2026
ChrisHuynh333
ChrisHuynh333 previously approved these changes Apr 29, 2026
joshsadam added 20 commits May 1, 2026 08:10
- remove Pathogen icon component classes and icon stylesheet
- remove icon preview class and all icon preview templates
- drop nokogiri and rails_icons from gemspec dependencies
- remove icon helper mapping and icon stylesheet/readme references
- remove rails_icons lock entry and direct dependency linkage
- align lockfile with gemspec dependency removals from task 2
- add 03.5-01 execution summary with checkpoint and verification notes
- update state, roadmap, and requirements tracking for completed plan
- replace Pathogen::Icon instantiation in ButtonVisuals#icon_visual
- normalize icon names from underscore to dash for rails_icons lookup
- add 03.5-03 summary with verification, decisions, and self-check
- update STATE.md progress, metrics, decision log, and current position
- mark ICON-03 complete in REQUIREMENTS.md
- add direct rails_icons dependency to demo Gemfile
- generate rails_icons initializer configured for heroicons
- add magnifying-glass outline SVG for leading_visual preview
- add arrow-right outline SVG for trailing_visual preview
- add 03.5-02 summary with verification outcomes and deviation log
- update state metrics/session context for 03.5-02 completion
- mark icon phase roadmap and ICON-02 requirement as complete
@joshsadam joshsadam force-pushed the phase-3.5-remove-pathogen-icon-20260327-134314 branch from f1b50fc to 5b91609 Compare May 1, 2026 14:24
Copy link
Copy Markdown
Member

@ericenns ericenns left a 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!

@ericenns ericenns merged commit f20b5ea into main May 4, 2026
3 checks passed
@ericenns ericenns deleted the phase-3.5-remove-pathogen-icon-20260327-134314 branch May 4, 2026 12:46
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.

3 participants