discourse/plugins/discourse-ai/assets/javascripts
chapoi e8d615b1a2
UX: Move AI category and tag suggestions inline into the composer choosers (#40838)
## Before
AI category and tag suggestions were triggered from separate buttons
using the `after-composer-tag-input` and
`after-composer-category-input`.

## Now
This change moves them into the category-chooser and mini-tag-chooser
dropdowns as inline row actions so suggestions are requested and applied
from within the list itself.

For the category chooser – single option – it shows "Choose for me"
which will select the top option and auto-close the dropdown.
<img width="778" height="767" alt="CleanShot 2026-06-15 at 14 34 41"
src="https://github.com/user-attachments/assets/db79ac7f-9f0b-43a6-96af-0f428b194cca"
/>

For the tag chooser – multi option – it shows "Show AI suggestions" and
replaces the default tag list with the AI suggestions.
<img width="778" height="767" alt="CleanShot 2026-06-15 at 14 35 02"
src="https://github.com/user-attachments/assets/5239daa9-93e4-4192-8189-e52cbbf1bdfc"
/>

The title button remains as-is functionally, but gets a light redesign:
<img width="749" height="105" alt="CleanShot 2026-06-15 at 15 50 42"
src="https://github.com/user-attachments/assets/74802c7d-eed7-40a0-995c-1769b79876fd"
/>

## Note
Difference in font-size is due to a core css bleed issue, will be
addressed in different PR.

For now, this change is scoped to the composer only, but can easily be
applied to all instances of the category/tag chooser.
2026-06-16 11:20:00 +02:00
..
discourse UX: Move AI category and tag suggestions inline into the composer choosers (#40838) 2026-06-16 11:20:00 +02:00
lib/discourse-markdown FEATURE: add thinking animation when thinking blocks are in progress (#36673) 2025-12-16 08:07:25 +11:00