martin
(Martin Brennan)
3 september 2026 om 05:02
18
I’ve made a very rough draft PR here, @awesomerobot can you please maybe work on it with what you think would be some nice UI elements? I basically just set up the very basic skeleton for it to work, and to not show for private categories if the user has no access:
main ← feature/category-cards-on-hashtag
approved 06:00AM - 16 Sep 26 UTC
This PR introduces a category floating card, similar to the user card,
behind a… n upcoming change ("Enable category hashtag cards")
This card will show the category title, icon/emoji,
description, as well as links to any parent categories. Users with
permission can see the "Edit description" button, as well as the "New Topic"
button, which is also category context dependent (e.g. Events categories
will have a "New Event" button).
Also shown in the card is a list of the 3 latest categories in the topic.
Users without permission to see a category will simply follow the
hashtag link, and see no card.
<img width="660" height="335" alt="image" src="https://github.com/user-attachments/assets/a127fdf6-462a-4ebf-bd2a-b27fc29565c2" />
<img width="658" height="220" alt="image" src="https://github.com/user-attachments/assets/acea2a2c-cfb4-4d69-ac0d-7ad4f252a670" />
In addition, since it's now easier to differentiate categories with
the same name, we are also removing the verbose "Parent > Child"
labelling for category hashtags.
**Before**
<img width="805" height="259" alt="image" src="https://github.com/user-attachments/assets/5bd0c57b-228b-494e-9ebf-df012c5c598f" />
**After**
<img width="805" height="268" alt="image" src="https://github.com/user-attachments/assets/c67fc7df-3c0b-435c-ac8a-6fe748c85b63" />
3 likes