mattermost-mobile/app/components
Joseph Baylon f495e1e48d
MM-30289 Detox/E2E - Add e2e tests for MM-T3184 and MM-T3186 (#5133)
* MM-30289 Detox/E2E - Add e2e tests for MM-T3184 and MM-T3186

* Update detox/e2e/support/server_api/preference.js

Co-authored-by: Saturnino Abril <saturnino.abril@gmail.com>

* MM-31322: redirect permalink handler (#5136)

* invert loadTeam.error test

* MM-31322: handle _redirect permalinks

In the webapp, [there is support](7c5a2e3bfd/components/root/root.jsx (L345-L352)) for a special `_redirect` team name in certain contexts that simply means, "the current team". It's used in the context of redirecting to the integrations backstage (not relevant for mobile), for also for resolving post permalinks.

This simplifies certain kinds of integrations which no longer have to know a team name to render a permanent link to a post. An example link looks like:

    http://localhost:8065/_redirect/pl/e3sxrxtwh78jmxawsaqfemxoew

This PR adds support for same in mobile, unintentionally missed on the first round of implementation.

Fixes: https://mattermost.atlassian.net/browse/MM-31322

* Apply suggestions from code review

Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>

* linting issues

* Apply suggestions from code review

Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>

* revert showPermalink changes

* Revert "invert loadTeam.error test"

This reverts commit accf6c8fb7c56009a393a6e85084d4702deec9ed.

* support _redirect deeplinks

* Apply suggestions from code review

* Update app/components/post_list/index.js

Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>

Co-authored-by: Saturnino Abril <saturnino.abril@gmail.com>
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
2021-02-10 13:55:00 -08:00
..
__mocks__ [MM-9454] Added fade to send button (#2677) 2019-04-29 07:54:00 -07:00
__snapshots__ MM-30286 Detox/E2E: Add e2e test for MM-T3249 and added useful helpers (#4990) 2020-12-15 17:24:45 -08:00
announcement_banner MM-30164 fix safe area insets (#4979) 2020-11-23 20:10:09 -03:00
at_mention Add eslint eol-last to require newline at end of files (#4985) 2020-11-30 21:46:05 -07:00
attachment_button Build Improvements (#4884) 2020-10-15 22:09:36 -03:00
autocomplete Place (you) before username (#5168) 2021-02-10 14:11:44 -07:00
autocomplete_selector MM-30164 fix safe area insets (#4979) 2020-11-23 20:10:09 -03:00
avatars MM-29104: Add avatars component (#5001) 2021-01-11 16:09:13 +05:30
channel_intro MM-30164 fix safe area insets (#4979) 2020-11-23 20:10:09 -03:00
channel_link MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
channel_loader Fix ChannelLoader prop warning (#5055) 2020-12-18 13:48:28 -07:00
client_upgrade_listener Revert "[MM-29225] Define LSApplicationQueriesSchemes so Linking.canO… (#5067) 2021-01-06 09:11:27 -07:00
combined_system_message [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
combined_user_activity_post [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
compass_icon Add eslint eol-last to require newline at end of files (#4985) 2020-11-30 21:46:05 -07:00
custom_list MM-30164 fix safe area insets (#4979) 2020-11-23 20:10:09 -03:00
edit_channel_info Upgrade Dependencies (#5103) 2021-01-13 12:36:31 -07:00
emoji MM-26817 Upgrade to RN 0.63 (#4566) 2020-07-20 18:08:11 -04:00
emoji_picker [MM-30994] tweak emoji search options for better results (#5120) 2021-01-26 16:57:02 -07:00
error_list [MM-22959] Use Compass icons (#4847) 2020-10-15 15:34:24 -07:00
error_text MM-30286 Detox/E2E: Add e2e test for MM-T3236 and added basic unit tests (#4969) 2020-11-24 16:58:09 +08:00
failed_network_action [MM-25349] centre failed network action component and improve responsiveness to device orientation (#4834) 2020-10-26 13:32:14 +05:30
file_attachment_list MM-31764 Fix image attachment layout when permanent sidebar is visible (#5115) 2021-01-13 14:57:04 -03:00
interactive_dialog_controller Build Improvements (#4884) 2020-10-15 22:09:36 -03:00
layout/keyboard_layout MM-28539 Fix wrong participant count in GM info (#4887) 2020-10-19 10:13:30 -03:00
load_more_posts MM-19993 Fix Channel spinner is black on dark theme (#3558) 2019-11-18 22:04:52 +08:00
markdown MM-30289 Detox/E2E - Add e2e tests for MM-T3184 and MM-T3186 (#5133) 2021-02-10 13:55:00 -08:00
message_attachments Revert "[MM-29225] Define LSApplicationQueriesSchemes so Linking.canO… (#5067) 2021-01-06 09:11:27 -07:00
network_indicator MM-30164 fix safe area insets (#4979) 2020-11-23 20:10:09 -03:00
pasteable_text_input MM-30286 Detox/E2E: Add e2e test for MM-T3222 and some cleanup (#4959) 2020-11-17 10:52:03 -08:00
post MM-30286 Detox/E2E: Add e2e test for MM-T3249 and added useful helpers (#4990) 2020-12-15 17:24:45 -08:00
post_add_channel_member [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
post_attachment_image Add eslint eol-last to require newline at end of files (#4985) 2020-11-30 21:46:05 -07:00
post_attachment_opengraph Revert "[MM-29225] Define LSApplicationQueriesSchemes so Linking.canO… (#5067) 2021-01-06 09:11:27 -07:00
post_body MM-30286 Detox/E2E: Add e2e test for MM-T3249 and added useful helpers (#4990) 2020-12-15 17:24:45 -08:00
post_body_additional_content Revert "[MM-29225] Define LSApplicationQueriesSchemes so Linking.canO… (#5067) 2021-01-06 09:11:27 -07:00
post_draft Prevent double tap of send button (#5154) 2021-02-04 11:45:18 -07:00
post_header Add eslint eol-last to require newline at end of files (#4985) 2020-11-30 21:46:05 -07:00
post_list MM-30289 Detox/E2E - Add e2e tests for MM-T3184 and MM-T3186 (#5133) 2021-02-10 13:55:00 -08:00
post_profile_picture [MM-22959] Use Compass icons (#4847) 2020-10-15 15:34:24 -07:00
profile_picture [MM-22959] Use Compass icons (#4847) 2020-10-15 15:34:24 -07:00
progressive_image Add retriable FastImage component (#5167) 2021-02-10 14:41:30 -07:00
radio_button MM-30165 Detox/E2E: Add e2e tests for channel notification preference (#4949) 2020-11-10 10:53:38 -07:00
reaction_picker MM-18998 Add emojis in the post to recent emojis (#4986) 2020-12-10 20:20:40 -03:00
reactions MM-31990 fix limit reacting to a post to 40 different emojis (#5121) 2021-01-21 12:14:49 -07:00
refresh_list add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
retriable_fast_image Add retriable FastImage component (#5167) 2021-02-10 14:41:30 -07:00
retry_bar_indicator Add eslint eol-last to require newline at end of files (#4985) 2020-11-30 21:46:05 -07:00
root MM-25350 Hide 'Select Team' title on modal when error occurs (#4412) 2020-06-17 20:55:18 -04:00
safe_area_view MM-30164 fix safe area insets (#4979) 2020-11-23 20:10:09 -03:00
search_bar MM-30286 Detox/E2E: Add e2e test for MM-T3249 and added useful helpers (#4990) 2020-12-15 17:24:45 -08:00
show_more_button Build Improvements (#4884) 2020-10-15 22:09:36 -03:00
sidebars Upgrade Dependencies (#5103) 2021-01-13 12:36:31 -07:00
slide_up_panel MM-30164 fix safe area insets (#4979) 2020-11-23 20:10:09 -03:00
start [MM-22959] Use Compass icons (#4847) 2020-10-15 15:34:24 -07:00
status_bar [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
team_icon MM-30286 Detox/E2E: Add e2e test for MM-T3249 and added useful helpers (#4990) 2020-12-15 17:24:45 -08:00
touchable_with_feedback MM-29024 Detox/E2E: Add unit and e2e tests for disabled mobile upload (#4954) 2020-11-12 21:29:16 -03:00
user_status Build Improvements (#4884) 2020-10-15 22:09:36 -03:00
widgets/settings MM-30164 fix safe area insets (#4979) 2020-11-23 20:10:09 -03:00
app_version.tsx Add eslint eol-last to require newline at end of files (#4985) 2020-11-30 21:46:05 -07:00
badge.js MM-30286 Detox/E2E: Add e2e test for MM-T3249 and added useful helpers (#4990) 2020-12-15 17:24:45 -08:00
badge.test.js MM-30286 Detox/E2E: Add e2e test for MM-T3249 and added useful helpers (#4990) 2020-12-15 17:24:45 -08:00
channel_icon.js MM-28539 Fix wrong participant count in GM info (#4887) 2020-10-19 10:13:30 -03:00
conditional_touchable.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
deleted_post.js Add eslint eol-last to require newline at end of files (#4985) 2020-11-30 21:46:05 -07:00
fade.js Deps update (#3806) 2020-01-20 13:20:03 -03:00
fade.test.js Deps update (#3806) 2020-01-20 13:20:03 -03:00
formatted_date.js Migrate to moment to fix timestamps based on timezone or local time (#3126) 2019-08-15 12:32:16 -04:00
formatted_markdown_text.js Port WebSocket from mm-redux and batch actions (#4060) 2020-03-26 21:23:50 -03:00
formatted_text.js E2E: Initial Detox setup for Mobile UI automation (#4535) 2020-08-29 07:18:41 +08:00
formatted_time.js MM-21961 Fix Incorrect Timestamp on Android Mobile App (#3861) 2020-01-27 12:57:22 -07:00
formatted_time.test.js reintroduce @testing-library/react-native now with v7 (#4766) 2020-09-15 09:24:54 -07:00
image_viewport.js MM-31764 Fix image attachment layout when permanent sidebar is visible (#5115) 2021-01-13 14:57:04 -03:00
loading.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
loading.stories.tsx [MM-28845]: Add storybook to mobile repo (#4870) 2020-11-02 15:41:07 +05:30
no_results.js [MM-22959] Use Compass icons (#4847) 2020-10-15 15:34:24 -07:00
post_list_retry.js [MM-22959] Use Compass icons (#4847) 2020-10-15 15:34:24 -07:00
post_separator.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
profile_picture_button.js [MM-22959] Use Compass icons (#4847) 2020-10-15 15:34:24 -07:00
profile_picture_button.test.js reintroduce @testing-library/react-native now with v7 (#4766) 2020-09-15 09:24:54 -07:00
progress_bar.tsx Gallery Improvements (#4837) 2020-11-06 21:17:27 -03:00
recent_date.js MM-18466 Change recent date separators to yesterday/today (#3245) 2019-09-14 07:02:51 -03:00
recent_date.test.js MM-18466 Change recent date separators to yesterday/today (#3245) 2019-09-14 07:02:51 -03:00
remove_markdown.js MM-28602 Fix announcement banner crash if it includes a hashtag (#4808) 2020-09-15 10:03:40 -03:00
swiper.js MM-28688 Close sidebar when current channel is selected (#4897) 2020-10-19 20:32:34 -07:00
swiper.test.js Update total to reflect number of children (#3367) 2019-10-04 15:06:22 -07:00
tag.js MM-18603 Fix post header to prevent overlaps (#3332) 2019-09-27 17:16:36 -04:00
text_input_with_localized_placeholder.js [MM-16593] Upgrade to RN 0.61.2 (#3455) 2019-10-28 15:04:24 -07:00
vector_icon.js MM-23570 Migrate from Segment to Rudder (#4293) 2020-05-13 16:54:07 -04:00