Add category icons in the sidebar

AI-generated summary

A discussion about adding category icons in the sidebar has sparked interest among users. davidkingham and REALITY expressed their desire for this feature, which tpetrov also supported, sharing an image of the current sidebar layout.

Arkshine took the initiative to create a fork with the desired functionality, sharing a link to the modified component on GitHub. tpetrov and others praised the effort, encouraging Arkshine to create a pull request (PR) for the official repository. nathank and Jagster supported this idea, with Arkshine eventually submitting a PR.

Additionally, Canapin shared a link to another PR that works towards customizing category icons in the core, although this feature is not yet supported.

Any plans to update this to have icons for categories in the sidebar?

7 Likes

This. Would be great.

1 Like

It would be great if the category icons worked also in the lefthand sidebar:

10 Likes

I did some modifications on my fork to add support in the sidebar.
I’m not sure this is entirely okay this way, so posting here for now. I would gladly create a PR on the official repo if valid.

To test, install a new component from https://github.com/Arkshine/discourse-category-icons and provide the branch feature/sidebar-support (click on the Advanced button)

Note: you will have to fill in your settings again. Don’t forget to disable the official one.


8 Likes

Wow, that’s awesome, thank you!

2 Likes

Sounds like a jolly good idea! Why not put that in anyway now - it will automatically comb your code modifications to ensure it is good on the linting front which can be helpful.

Or do you want to kick the tyres with it a bit more first?

2 Likes

No, Arkshine doesn’t want kick any more tyres :rofl:

I really would like to see this adopted. Moving all settings here, there and everywhere is lousy job if this could jump in the original one.

1 Like

Sorry, I forgot to answer here :smile:

I posted here for testing purposes and because with some chance someone from the team would validate my modifications.

I made a PR now.

8 Likes

While icons aren’t supported in core (yet?), work has been made toward this kind of customisation:
https://github.com/discourse/discourse-category-icons/pull/21

4 Likes