martin
(Martin Brennan)
Septembre 3, 2026, 5:02
18
J’ai fait un brouillon de PR très approximatif ici, @awesomerobot , pourrais-tu travailler dessus en y ajoutant les éléments d’interface que tu juges pertinents ? J’ai essentiellement mis en place le squelette de base pour que cela fonctionne, et pour que ce ne s’affiche pas pour les catégories privées si l’utilisateur n’y a pas accès :
main ← feature/category-cards-on-hashtag
merged 11:36PM - 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 « J'aime »