-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add info file with lists of all available icons #119
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really need something like this, where I can easily get a list of all available official icons and unofficial icons
Can you elaborate on this? I'm not opposed to this, but it would be nice for the commit message to explain the reasoning in a bit more detail.
but new icons aren't added very often at all, so I don't think this is a big deal
I am opposed to hardcoding this list, though. IMO, the fact that this stuff changes infrequently actually makes it even more important to automate this (because we don't do it frequently enough to remember there's this other thing you have to Just Remember to do).
I'd tell you to do this as part of the gulp pipeline, but that's possibly going away entirely, see #112. @lgarron, are you motivated to push #112 over the finish line?
Yeah, so the reason is that it's easier when you can immediately tell if an icon for a given ID exists. So far I've just been maintaining this exact same list on my end, and it's very annoying. I do agree that having this done automatically would be better though. |
Who is "you" here? @dmint789 the human? Or some code you've written? I think there are already a number of easy ways for a human to find what icons exist. An incomplete list:
|
@jfly I meant my code. The code needs to know when to display an svg and when to display a fallback button if the icon is missing. |
Awesome. This is the sentence missing from your commit message. |
@jfly ok. I guess I can change that once we figure out how to automate this. |
@jfly do you have ideas on how we could automate the generation of a file like this in the repo? |
I really need something like this, where I can easily get a list of all available official icons and unofficial icons. This does mean that with each new icon added this file will need to be updated with a new line, but new icons aren't added very often at all, so I don't think this is a big deal. If someone has a better idea to be able to do the same thing, I'm happy to hear.