martin
(Martin Brennan)
3 Settembre 2026, 5:02am
18
Ho creato una bozza molto grezza del PR qui, @awesomerobot , potresti forse lavorarci su aggiungendo ciò che ritieni possano essere degli elementi UI interessanti? In pratica ho solo impostato lo scheletro di base per farlo funzionare e per non mostrarlo nelle categorie private se l’utente non ha accesso:
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 Mi Piace