mattermost-mobile-upstream/app/components/post_draft
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
..
archived Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
custom_emoji_picker Mattermost Blocks (#9764) 2026-06-29 18:42:16 +02:00
draft_handler Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
draft_input Add custom prompts consumption (pills + composer entry) 2026-08-07 11:23:43 -04:00
post_input fix: hardware Enter key not sending messages in channel on iPad (#9965) 2026-07-24 19:16:08 +00:00
quick_actions Add custom prompts consumption (pills + composer entry) 2026-08-07 11:23:43 -04:00
read_only Fix more messages indicator on read only channels (#8652) 2025-03-11 07:32:22 +08:00
send_button Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
send_handler Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
status_indicator feat: AI rewrite (#9280) 2026-02-16 16:48:57 +01:00
typing Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
uploads Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
index.ts fix: app bugs surfaced by Detox RF migration (#9789) 2026-06-09 13:25:42 +05:30
post_draft.tsx Fixes autocomplete, bad ssl message on android and edit post (#9799) 2026-06-01 23:21:29 +08:00