Skip to content

Conversation

@jakehwll
Copy link
Contributor

@jakehwll jakehwll commented Dec 20, 2025

Closes #21320

This PR introduces a list of deprecated icons that should no longer be displayed in the UI. These icons are kept for backward compatibility but are now filtered out from:

  1. The emoji picker component
  2. The icons page listing

The deprecated icons include:

  • Duplicate icons that have better alternatives (e.g., apple-grey.svgapple-black.svg)
  • PNG versions of icons that already have SVG versions (e.g., aws.pngaws.svg)
  • Monochrome variants that are no longer needed (e.g., docker-white.svg)

Copy link
Contributor Author

jakehwll commented Dec 20, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@jakehwll jakehwll requested review from aslilac and jaaydenh December 20, 2025 14:08
@jakehwll jakehwll marked this pull request as ready for review December 20, 2025 14:08
Copy link
Member

@aslilac aslilac left a comment

Choose a reason for hiding this comment

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

I think we could get rid of the const iconsWithoutSuffix but other than that this looks good


const iconsWithoutSuffix = icons.map((icon) => icon.split(".")[0]);
const filteredIcons = icons.filter((icon) => !DEPRECATED_ICONS.includes(icon));
const iconsWithoutSuffix = filteredIcons.map((icon) => icon.split(".")[0]);
Copy link
Member

Choose a reason for hiding this comment

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

super nit: this could strip more than just the file extension if we wanted to add a file like "coder.ai.svg"

maybe not the best example but also not that far fetched lol

the more "rigorous" thing to do would be like this:

const dotIndex = icon.lastIndexOf(".");
return dotIndex > 0 ? icon.slice(0, dotIndex) : icon;

Copy link
Member

Choose a reason for hiding this comment

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

actually wait, does this value even get used anywhere? what is this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, we already have fly.io.svg which doesn't work with this. I believe its passed into the fuzzyFinder which then breaks on fly.io if you search for it.

CleanShot 2025-12-23 at 14 00 57@2x CleanShot 2025-12-23 at 14 01 08@2x

Copy link
Member

Choose a reason for hiding this comment

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

oh, I misread the diff originally and didn't realize this was already in here. this code is my fault. 💀 anyway, can we fix it pls?

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.

🧹 Coder icon library clean up

4 participants