mattermost-mobile-upstream/app/components/post_draft
Claude b696c455d1
Add a Detox spec for the DM/GM permission policy actions
dm_gm_permission_policy.e2e.ts sets up an Enterprise Advanced server
with ABAC and one system permission policy on a Department attribute:
Engineering may start, read and write; Sales may only read; Contractor
may do nothing. Conversations and their first posts are created before
the policy is activated, since the admin has no Department and is
denied too. It covers:

1. Losing Read with a DM open shows the "Messages unavailable" sheet
   and removes the DM category; regaining it brings the DM and GM back,
   with the post made while hidden as an unread badge.
2. Denied Write shows the read-only composer with the DM/GM text in a
   DM and a GM.
3. Denied Start hides "Open a direct message" in the plus menu and
   "Open a DM" in Find channels, while an existing DM still opens.
4. Tapping a push for a DM while Read is denied shows the no-access
   alert and opens nothing.

Support:
- the read-only composer text gets a testID ("<draft>.read_only.text");
- a ChannelAccessRevoked component for the sheet, the alert strings,
  and ChannelScreen.postDraftReadOnlyText;
- buildTapPayload moves from push_notification_open.e2e.ts into
  support/utils so both specs share it.

Session attributes can't be changed from a simulator; that path is
covered by unit tests only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y8zZ6swdpcLxJTgxH14DDD
2026-10-11 13:36:35 +00:00
..
archived Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
custom_emoji_picker Mm 67525 bump min version (#9640) 2026-09-16 10:53:06 +00:00
draft_handler Implemented write actions 2026-10-07 09:35:46 +02:00
draft_input MM-70905 - disable and grey out the attachment button when an ABAC permission policy denies uploads in the channel 2026-09-24 12:29:48 +02:00
post_input Mm 67525 bump min version (#9640) 2026-09-16 10:53:06 +00:00
quick_actions MM-70905 - disable and grey out the attachment button when an ABAC permission policy denies uploads in the channel 2026-09-24 12:29:48 +02:00
read_only Add a Detox spec for the DM/GM permission policy actions 2026-10-11 13:36:35 +00:00
send_button MM-69625 MM-69633: Collapse-all and task filtering on playbook run checklists (#9928) 2026-08-27 18:46:43 +05: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 [MM-69129] Prevent crash on nameless attachment (#10091) 2026-08-24 12:10:59 -03:00
index.ts Apply the DM/GM write decision to conversations 2026-10-11 12:34:01 +00:00
post_draft.tsx Apply the DM/GM write decision to conversations 2026-10-11 12:34:01 +00:00