discourse/plugins/discourse-ai/test/javascripts/unit/services
Sam 82e463c99f
FEATURE: Star AI bot conversations in sidebar (#39869)
Adds an experimental "Starred" section to the AI bot conversation
sidebar. Users can star up to 200 conversations they own; starred
items appear in a dedicated section above the time-bucketed list and
are skipped from the regular pagination.

Introduces:

- `discourse_ai_ai_bot_conversation_stars` table and
  `DiscourseAi::AiBot::ConversationStar` model
- `ListConversations` and `UpdateConversationStar` services backing
  the existing `conversations#index` and a new
  `PUT /ai-bot/conversations/:topic_id/starred` endpoint
- Sidebar context menu component plus updates to the sidebar
  manager to render and toggle starred state

The feature is gated by the hidden, experimental
`enable_ai_bot_starred_conversations` upcoming change setting and is
off by default.


<img width="1216" height="537" alt="image"
src="https://github.com/user-attachments/assets/6c7d15bb-8b7c-48d9-9f02-f449764e63ff"
/>

<img width="955" height="648" alt="image"
src="https://github.com/user-attachments/assets/0f87bd8e-e43e-483d-bf68-886cbfb09eea"
/>

---------

Co-authored-by: discourse-patch-triage[bot] <272280883+discourse-patch-triage[bot]@users.noreply.github.com>
2026-05-14 15:04:31 +10:00
..
ai-bot-docked-submit-test.js FIX: Resolve broken uploads in AI bot docked composer (#39712) 2026-05-04 11:01:32 -07:00
ai-bot-streaming-state-test.js
ai-conversations-sidebar-manager-test.js FEATURE: Star AI bot conversations in sidebar (#39869) 2026-05-14 15:04:31 +10:00
discobot-discoveries-test.js