mattermost-mobile/app/components
Christopher Speller 6000e69886
Agents "RHS" view (#9318)
* Add agents RHS functionality for mobile

Implements a dedicated agents interface accessible from the home screen, featuring:
- Agent chat screen with bot selector and message input
- Thread list screen showing all agent conversations
- Remote actions for fetching bots and threads from plugin API
- Navigation between chat, threads, and individual conversations
- Integration with plus menu for easy access

Follows similar pattern to playbooks with modal screens and navigation helpers.

* Fix icon name for agents menu item

Change robot-happy-outline to robot-happy to resolve PropType validation error.

* Add agents button to sidebar and fix agent chat issues

- Add AgentsButton component to channel list sidebar below Drafts
- Fix thread navigation to use fetchAndSwitchToThread instead of switchToChannelById
- Replace custom TextInput with PostDraft component in agent_chat
- Fix icon name from message-reply-text-outline to reply-outline
- Add missing i18n translations for agents UI

* Implement automatic navigation to thread after sending agent message

* Implement bot selector bottom sheet with avatars. Replace click-and-cycle behavior with a proper bottom sheet menu showing all available agents with their profile pictures. Add bot avatar display to the dropdown button for better visual identification.

* Top bar design modifications.

* Add intro graphic and text

* Fix autocomplete not working

* Tweak styles and icons.

* Remove unused

* Add version/enabled check

* Remove excessive agent button

* Style fixes

* Use non-blocking then() for onPostCreated callback in send message hook

* Add unit tests for agents product components and actions

* Review feedback, offline support

* I18n

* Tests

* Address PR review feedback: deletion handling, UI fixes, schema docs

* Remove unnecessary deleteNotPresent flag from agents handlers

* Fix agents archived channel, empty data guard, and stale relative time

* Add smoke test for AgentChat and extend ToolCard test coverage

* Fix test quality issues: remove useless tests, strengthen assertions

* Address PR review: remove barrel file, add version comment

* Mock reanimated in CitationsList test to fix CI failure

* Fix CitationsList tests after always-mounted animation change

* Address PR review: typography, Pressable, FormattedText, schema bump, and cleanup

* Apply CLAUDE.md patterns across agents codebase: Pressable, typography, FormattedText, logDebug

* Fix schema test to expect version 19
2026-03-16 09:48:32 -07:00
..
animated_number test: more meaningful AnimatedNumber component test (#8309) 2024-11-21 10:30:30 -07:00
announcement_banner Improve markdown code (#9164) 2025-11-04 10:05:56 +01:00
app_version Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
autocomplete Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
autocomplete_selector Add DialogRouter for Interactive Dialog to Apps Form migration (#9114) 2026-01-26 08:57:56 -07:00
badge feat:proper badge theme use for server list (#8313) 2024-11-05 07:11:17 -07:00
burn_on_read_label Bor create post (#9393) 2026-02-09 17:00:54 +05:30
button [MM-66420] Add missing tests for playbooks (#9258) 2025-11-06 12:01:25 +01:00
channel_actions Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
channel_bookmarks Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
channel_icon Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
channel_item Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
channel_list_row Channel banner display (#8735) 2025-04-08 11:15:18 +05:30
chips Add onPress on full chip (#9134) 2025-09-22 12:07:49 +02:00
common_post_options [MM-67456] Allow OptionItem labels to wrap to two lines (#9504) 2026-02-24 18:17:04 +01:00
compass_icon [Gekidou] compass icons (#5940) 2022-02-08 16:16:30 -03:00
connection_banner Fix connection banner not disappearing (#9532) 2026-03-03 13:08:45 +01:00
copy_text_option Remove tand prevent double tap (#9078) 2025-08-25 12:03:01 +02:00
custom_status Remove tand prevent double tap (#9078) 2025-08-25 12:03:01 +02:00
data_time_selector Add set due date functionality to playbooks (#9091) 2025-09-12 16:37:56 +02:00
document use alertOnlyPDFSupported for document files (#9023) 2025-07-27 18:05:49 +08:00
draft_scheduled_post feat: AI rewrite (#9280) 2026-02-16 16:48:57 +01:00
draft_scheduled_post_header feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
drafts_buttton Remaining test for draft and Scheduled post (#8887) 2025-07-01 13:47:02 +05:30
edited_indicator Fix the Edited post incorrect line spacing on Android (#9170) 2025-10-01 21:26:57 +08:00
emoji feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
emoji_category_bar Fix: Keyboard opens on android when clicked on switch to keyboard btn in emoji picker (#9464) 2026-01-26 18:20:55 +05:30
error_text Update dependencies and upgrade to RN 0.76.5 (#8421) 2025-01-16 07:11:32 -07:00
expo_image Fix Android image loads by attaching auth headers (#9554) 2026-02-26 21:36:03 -05:00
files Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
files_search Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
floating_input Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
formatted_date feat: AI rewrite (#9280) 2026-02-16 16:48:57 +01:00
formatted_markdown_text Improve markdown code (#9164) 2025-11-04 10:05:56 +01:00
formatted_relative_time Agents "RHS" view (#9318) 2026-03-16 09:48:32 -07:00
formatted_text Standardize tabs across different components (#8691) 2025-05-28 16:23:37 +02:00
formatted_time Feature schedule posts (#8509) 2025-04-14 22:08:59 +05:30
freeze_screen [Gekidou] optimizations, fix & moved files (#6177) 2022-04-18 08:49:17 -04:00
friendly_date Make relatives times coherent with web (#9062) 2025-08-12 14:28:25 +02:00
illustrations Update additional images branding (#8672) 2025-06-20 11:41:26 -04:00
input_accessory_view Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
jumbo_emoji Typescript support and view component for permalink with user and message (#9052) 2025-09-10 17:12:16 +05:30
loading Unify buttons (#8865) 2025-05-30 15:59:15 +02:00
loading_error Update additional images branding (#8672) 2025-06-20 11:41:26 -04:00
markdown Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
math_view Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
menu_divider Add Report a Problem functionality (#8605) 2025-04-24 11:12:55 +02:00
navigation_header Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
no_results_with_term Remove tand prevent double tap (#9078) 2025-08-25 12:03:01 +02:00
option_box Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
option_item [MM-67456] Allow OptionItem labels to wrap to two lines (#9504) 2026-02-24 18:17:04 +01:00
other_mentions_badge Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
post_draft Agents "RHS" view (#9318) 2026-03-16 09:48:32 -07:00
post_list Add autotranslations to permalink previews (#9540) 2026-03-05 12:47:18 +01:00
post_priority Standardize tags and chips through the app (#8856) 2025-06-11 10:11:05 +02:00
post_with_channel_info Add autotranslations (#9324) 2026-02-10 17:50:39 +01:00
pressable_opacity feat: support fillewillbedownloaded and sendtoastmessage pluginapi (#9416) 2026-02-16 17:10:25 +01:00
profile_picture Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
progress_bar Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
progressive_image feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
remove_markdown Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
rounded_header_context [Gekidou] Navigation bar refactored (#6319) 2022-06-01 17:07:54 -04:00
scheduled_post_indicator feat(MM-65147): upgrade to react-native 0.77.3 (#9253) 2025-12-22 07:35:38 -07:00
search Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
section_notice Improve markdown code (#9164) 2025-11-04 10:05:56 +01:00
selected_users feat: edit server pre-authentication secret (#9128) 2025-11-12 16:07:19 +01:00
server_icon Update dependencies (#8721) 2025-04-07 09:30:06 +08:00
server_user_list Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
server_version Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
settings Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
slide_up_panel_item feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
status_label Remove tand prevent double tap (#9078) 2025-08-25 12:03:01 +02:00
syntax_highlight Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
system_avatar [Gekidou] post list (#5893) 2022-01-17 07:06:26 -03:00
system_header feat: Add visible to you text on ephemeral posts (#8245) 2024-10-30 10:01:49 +01:00
tablet_title Detox/E2E: Account e2e tests in Gekidou (#6584) 2022-08-18 03:18:46 -07:00
tag Added BoR indicator in scheduled posts (#9355) 2026-01-12 20:09:24 +05:30
team_list Fix list scrolling inside bottom sheet (#8648) 2025-03-12 17:29:50 +08:00
team_sidebar Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
threads_button Fix GM/DM unread threads highlighting all teams as unreads (#8905) 2025-06-10 15:30:58 +02:00
toast Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
touchable_emoji New keyboard library Setup (#9278) 2026-01-13 22:38:35 +05:30
touchable_with_feedback Upgrade Dependencies (#7299) 2023-04-21 12:16:54 -04:00
tutorial_highlight Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
upload_item_shared feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
user_avatars_stack Add Playbooks read-only support for mobile devices (#8978) 2025-07-14 09:21:37 +02:00
user_item Standardize tags and chips through the app (#8856) 2025-06-11 10:11:05 +02:00
user_list Fix Android image loads by attaching auth headers (#9554) 2026-02-26 21:36:03 -05:00
user_list_row [MM-66375] Allow managing own membership on a channel (#9301) 2025-12-03 17:20:20 +01:00
user_status [Gekidou] update deps (#6667) 2022-10-13 08:41:18 -03:00
keyboard_aware_post_draft_container.tsx Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00