Repository navigation
Curate icons to essential set (73 icons) - #300
Conversation
e914309 to
057fee9
Compare
There was a problem hiding this comment.
Pull request overview
This PR dramatically reduces the icon library from 3,447 to 96 carefully selected icons, improving maintainability and reducing bundle size. The reduction targets essential social networks, developer platforms, and IndieWeb services while preserving legacy custom icons.
Key changes:
- Implemented icon curation with
curatedIconsandminimalIconsarrays in the build script - Automated SVG file management to copy only curated icons and remove outdated ones
- Removed
genericons-neuedependency and related files
Reviewed changes
Copilot reviewed 5 out of 3360 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| static/js/simpleicons.js | Added icon curation logic, filtering mechanism, automated SVG file management, and improved PHP docblock generation |
| static/genericons-neue/genericons-license.md | Removed entire file as part of genericons-neue dependency removal |
| static/css/indieweb-minimal.css | Removed twitter color definition from minified CSS (no functional change to minified output) |
| sass/_simple-icons-min.scss | Removed twitter icon color rule as it's now a custom icon |
| package.json | Removed genericons-neue dev dependency |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I have to look at this. I think the 96 work.. but we need an easy way for users to add. |
|
Aren't they added by domain mapping? |
No, that's how it figured out what icon.. but we removed a lot of icons...so we need a way for people to add icons and colors easily. |
|
You mean for icons we possibly removed? |
Yes. That's what has been stalling me... maybe the solution is to just tell people how to request specific icons be added and take on that debt. Same as for the Syndication Links plugin where I would match this as its the same code. Alternatively some sort of dynamic downloader. |
- Reduce SVG icons from 3,447 to 96 (76 from Simple Icons + 20 custom) - Update build script to filter and copy only curated icons - Remove unused genericons-neue dependency and folder - Keep legacy icons (twitter, nostr, googlepodcasts) as custom icons Icon categories included: - Social networks (mastodon, bluesky, twitter, facebook, etc.) - Fediverse (activitypub, pixelfed, peertube, lemmy, etc.) - Developer platforms (github, gitlab, codeberg, etc.) - Media/content (spotify, youtube, substack, etc.) - Custom utility icons (website, mail, book, etc.)
057fee9 to
6afddde
Compare
|
@dshanske what about pointing the users to this repo to report the need of new icons? lets keep things simple for now and improve over time!? |
|
That's what I was thinking for now. |
|
This looks good. But I think I need to add the changes from https://github.com/dshanske/syndication-links/blob/trunk/includes/class-syn-link-domain-icon-map.php which I wrote concurrently. In there, I added a search directory functionality that could be edited. I think that would address my comment about adding in addition to the issue opening. |
# Conflicts: # package.json
|
Merged trunk, the conflict was only
One thing it does not solve: the colors come from the generated I also added a FAQ entry in the readme that points people here to request an icon, so both ways are documented. |
|
I added support for the new Icons API of WordPress 7.1 in b3d6cb3. The bundled icons (and the ones from the For older WordPress versions there is a shim in Two side effects: core sanitizes the icons and strips |
use the indieweb i as menu icon
# Conflicts: # readme.md
|
@dshanske I would really love to have your view on that one! |
|
I need to do some real world testing, but the implementation reading the code looks completely solid to me. |
dshanske
left a comment
There was a problem hiding this comment.
looks good to me on visual code review

The plugin shipped all 3,447 Simple Icons, but only a small part of them is useful for rel-me links. This PR reduces the set to 73 icons (66 from Simple Icons + 7 custom ones). I think we should get rid of the icons completely in the long run, so this is a first step.
Changes
static/js/simpleicons.js)genericons-neuedependency and foldertwitter.comto thexicon and remove the legacytwittericonindieweb_icon_file_dirsfilter, so themes and plugins can add their own icons, see the readmeSize
_simple-icons.scsssimple-icons.phpindieweb.cssThe smaller CSS should also help with #306.
Test plan
twitter.comlinks use thexiconwebsiteiconnpm run buildbuilds the icons and the CSS