mattermost-mobile-upstream/app/components/post_draft/draft_input
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
..
draft_input.test.tsx Revert "e2e(detox): Rainforest to Detox migration (#9790)" (#9834) 2026-06-15 17:57:01 +02:00
draft_input.tsx Add custom prompts consumption (pills + composer entry) 2026-08-07 11:23:43 -04:00
header.tsx Bor create post (#9393) 2026-02-09 17:00:54 +05:30
index.ts Unlicensed server should not show the tooltip on channel send button (#8806) 2025-04-29 17:21:09 +05:30