mattermost-mobile/app/hooks
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
..
use_tabs Standardize tabs across different components (#8691) 2025-05-28 16:23:37 +02:00
access_control_attributes.test.ts Mm 63935 abac end user indicators (#8848) 2025-05-19 15:34:03 +02:00
access_control_attributes.ts Mm 63935 abac end user indicators (#8848) 2025-05-19 15:34:03 +02:00
android_back_handler.test.ts Add Playbooks read-only support for mobile devices (#8978) 2025-07-14 09:21:37 +02:00
android_back_handler.ts Make androidBackHandler to update if the handler changes (#7519) 2023-08-31 10:31:55 +02:00
apps.test.tsx MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
apps.ts Make attachments and app bindings more robust yet secure (#8570) 2025-03-14 12:02:32 +01:00
autocomplete.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
autocomplete.ts [MM-63481] Don't substract keyboard height in Android as it was already substracted (#8697) 2025-03-21 11:41:01 +01:00
bottom_sheet_lists_fix.test.tsx Fix list scrolling inside bottom sheet (#8648) 2025-03-12 17:29:50 +08:00
bottom_sheet_lists_fix.ts Fix list scrolling inside bottom sheet (#8648) 2025-03-12 17:29:50 +08:00
channel_switch.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
channel_switch.ts Add minor fixes and performance improvements on channel switch (#6469) 2022-07-15 16:04:58 +02:00
device.test.tsx Add Playbooks read-only support for mobile devices (#8978) 2025-07-14 09:21:37 +02:00
device.ts Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
did_mount.test.ts Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
did_mount.ts Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
did_update.test.tsx MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
did_update.ts Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
emoji_category_bar.test.ts MM-59740 + others - Add tests for various files in hooks/ (#8448) 2025-01-21 08:41:52 -05:00
emoji_category_bar.ts New UI for Emoji picker (#6933) 2023-01-12 13:38:44 +02:00
fetching_thread.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
fetching_thread.ts Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
field_refs.test.ts [MM-62701] [MM-62176]Edit custom profile attributes in user profile (#8557) 2025-02-19 15:51:59 +01:00
field_refs.ts Add Floating Label Autocomplete Selector (#9119) 2025-10-01 13:31:16 +02:00
file_upload_error.test.ts Ability to show quick action and add files to edit post (#8926) 2025-06-25 16:04:08 +05:30
file_upload_error.ts Ability to show quick action and add files to edit post (#8926) 2025-06-25 16:04:08 +05:30
files.test.ts Secure Files and preview PDF inline (#8844) 2025-06-19 15:30:56 +08:00
files.ts feat: support fillewillbedownloaded and sendtoastmessage pluginapi (#9416) 2026-02-16 17:10:25 +01:00
freeze.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
freeze.ts [Gekidou] optimizations, fix & moved files (#6177) 2022-04-18 08:49:17 -04:00
gallery.test.ts Refactor gallery gestures (#8752) 2025-07-22 14:00:57 +08:00
gallery.ts Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
handle_send_message.test.tsx Bor create post (#9393) 2026-02-09 17:00:54 +05:30
handle_send_message.ts Agents "RHS" view (#9318) 2026-03-16 09:48:32 -07:00
header.test.tsx MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
header.ts Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
initial_value.test.ts Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
initial_value.ts Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
input.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
input.ts Fix double tilde by waiting for text values to propagate to the native side (#7132) 2023-02-22 18:03:21 +01:00
keyboardAnimation.test.ts New keyboard library Setup (#9278) 2026-01-13 22:38:35 +05:30
keyboardAnimation.ts New keyboard library Setup (#9278) 2026-01-13 22:38:35 +05:30
markdown.test.ts Add model mocks to TestHelper (#8715) 2025-03-28 09:40:08 +01:00
markdown.ts Show at mentions in RemoveMarkdown renderer (#7664) 2023-11-17 11:43:25 +01:00
navigate_back.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
navigate_back.ts Add support for review app (#6772) 2022-11-24 18:52:15 +01:00
navigation_button_pressed.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
navigation_button_pressed.ts Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
notification_props.test.ts Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
notification_props.ts Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
persistent_notification_props.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
persistent_notification_props.ts Mobile drafts (#8280) 2025-01-13 18:40:03 +05:30
screen_transition_animation.ts Disable Animations when Accessibility configuration is to remove it (#8743) 2025-06-26 11:25:48 +02:00
show_more.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
show_more.ts [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00
team_switch.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
team_switch.ts [Gekidou] perf improvement & fix upgrade path (#6302) 2022-05-24 08:45:17 -04:00
teams_loading.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
teams_loading.ts Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
throttled.ts Implementing the Audio Playback/Download on the chat (#7900) 2025-02-19 11:17:30 +01:00
use_external_link.test.ts Update useExternalLink to match webapp (#8675) 2025-03-13 12:28:00 +01:00
use_external_link.ts Update useExternalLink to match webapp (#8675) 2025-03-13 12:28:00 +01:00
use_external_link_handler.ts Mention, embedded link and handling of post update on offline device (#9104) 2025-09-12 14:06:58 +05:30
use_screen_visibility.test.ts New keyboard library Setup (#9278) 2026-01-13 22:38:35 +05:30
use_screen_visibility.ts New keyboard library Setup (#9278) 2026-01-13 22:38:35 +05:30
useCollapsibleHeader.test.tsx Add Playbooks read-only support for mobile devices (#8978) 2025-07-14 09:21:37 +02:00
useFocusAfterEmojiDismiss.ts Fix: Keyboard opens on android when clicked on switch to keyboard btn in emoji picker (#9464) 2026-01-26 18:20:55 +05:30
useInputAccessoryView.ts New keyboard library Setup (#9278) 2026-01-13 22:38:35 +05:30
useKeyboardAwarePostDraft.test.ts New keyboard library Setup (#9278) 2026-01-13 22:38:35 +05:30
useKeyboardAwarePostDraft.ts New keyboard library Setup (#9278) 2026-01-13 22:38:35 +05:30
useKeyboardScrollAdjustment.ts New keyboard library Setup (#9278) 2026-01-13 22:38:35 +05:30
user_timezone.test.tsx Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
user_timezone.tsx Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
utils.test.tsx Fix edit attachments (#8468) 2025-01-17 12:41:14 +01:00
utils.ts Add Floating Label Autocomplete Selector (#9119) 2025-10-01 13:31:16 +02:00
why_did_you_update.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
why_did_you_update.ts [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00