mattermost-mobile-upstream/app/components/post_draft/quick_actions
Matty Code 3cae2b0dfc Add custom prompts consumption (pills + composer entry)
- Client methods for the plugin's custom prompts endpoints: list, pins,
  set pin, and server-side render (channel_id + bot_username context)
- Ephemeral per-server custom prompts store (D14 - no schema change),
  cleared on per-server logout, with a useCustomPrompts hook
- Agent projection now carries dmChannelID so surfaces can detect agent
  DM channels (isAgentDMChannel util)
- Pills surface: pinned prompts render as tappable pills on the agent
  chat intro; tapping renders the prompt server-side, posts it into the
  agent DM, and routes into the new conversation thread
- Composer surface: 'Custom prompts' entry in the AI actions sheet
  (both edit and generation modes) opens an in-sheet prompt list;
  selecting renders with the channel + selected agent context into the
  draft, prepending the agent @mention outside agent DMs (web parity
  with custom_prompts_dropdown)
- channelId threaded through quick actions to the AI actions sheet
- No authoring/management on mobile; prompt visibility (own + shared)
  enforced server-side

Co-authored-by: Christopher Speller <crspeller@users.noreply.github.com>
2026-08-07 11:23:43 -04:00
..
attachment_quick_action Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
bor_quick_action Bor create post (#9393) 2026-02-09 17:00:54 +05:30
emoji_quick_action Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
input_quick_action Revert "e2e(detox): Rainforest to Detox migration (#9790)" (#9834) 2026-06-15 17:57:01 +02:00
post_priority_action Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
index.ts Require agents plugin 2.x, consolidate agent list on /ai_bots, add is_default and turn_count columns 2026-08-07 05:09:33 -04:00
quick_actions.test.tsx Add custom prompts consumption (pills + composer entry) 2026-08-07 11:23:43 -04:00
quick_actions.tsx Add custom prompts consumption (pills + composer entry) 2026-08-07 11:23:43 -04:00