mattermost-mobile/app/utils
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
..
bottom_sheet [MM-17560] Await dismissAllModals and popToRoot prior to calling showSearchModal (#3298) 2019-09-25 15:23:45 -07:00
sentry MM-23570 Migrate from Segment to Rudder (#4293) 2020-05-13 16:54:07 -04:00
avoid_native_bridge.js
channels.js [MM-22671] [MM-22935] Fetch posts for unread channels on loadChannelsForTeam (#4078) 2020-03-31 18:41:11 -03:00
client_upgrade.js MM-23570 Migrate from Segment to Rudder (#4293) 2020-05-13 16:54:07 -04:00
draft.js Revert "[MM-29225] Define LSApplicationQueriesSchemes so Linking.canO… (#5067) 2021-01-06 09:11:27 -07:00
draft.test.js MM-23090 MM-26078 && MM-26876 Refactor post draft component (#4621) 2020-08-06 19:39:25 -04:00
emoji_utils.js Add eslint eol-last to require newline at end of files (#4985) 2020-11-30 21:46:05 -07:00
emoji_utils.test.js Fix soft crash for edge emoji formatting (#4705) 2020-08-20 14:48:48 -04:00
emojis.js MM-24115 Use Native + BuiltIn emojis instead of systemEmojis (#4274) 2020-05-13 18:23:47 -04:00
error_handling.js Various fixes: (#4474) 2020-06-23 16:39:49 -07:00
file.js MM-31705 allow file local path to use multiple dots (#5109) 2021-01-11 12:53:06 -07:00
file.test.js MM-31705 allow file local path to use multiple dots (#5109) 2021-01-11 12:53:06 -07:00
general.js MM-29252 Tapping on invalid permalink shows an error (#4926) 2020-10-28 11:54:47 -03:00
i18n.js
image_cache_manager.js Gallery Improvements (#4837) 2020-11-06 21:17:27 -03:00
image_cache_manager.test.js Gallery Improvements (#4837) 2020-11-06 21:17:27 -03:00
images.js MM-30164 fix safe area insets (#4979) 2020-11-23 20:10:09 -03:00
images.test.js MM-14030 Don't show large gifs in posts (#2750) 2019-05-01 09:34:45 -04:00
latinise.js Port WebSocket from mm-redux and batch actions (#4060) 2020-03-26 21:23:50 -03:00
list_view.js
markdown.js [MM-22959] Use Compass icons (#4847) 2020-10-15 15:34:24 -07:00
markdown.test.js MM-26722 check for switchKeyboardForCodeBlocks only on iOS 12+ (#4537) 2020-07-07 13:01:48 -04:00
member_list.js Refactor CustomList to use Section and Flat Lists (#2332) 2018-11-13 18:16:57 -05:00
message_attachment_colors.js Add eslint eol-last to require newline at end of files (#4985) 2020-11-30 21:46:05 -07:00
network.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
notify_props.js
opengraph.js
preferences.js Add eslint eol-last to require newline at end of files (#4985) 2020-11-30 21:46:05 -07:00
reaction.js [MM-13433] Fix unnecessary rendering for reactions component and reaction list screen (#2464) 2018-12-18 23:07:42 +08:00
reaction.test.js [MM-13433] Fix unnecessary rendering for reactions component and reaction list screen (#2464) 2018-12-18 23:07:42 +08:00
security.js Revert updated dependecies for SSO (#4499) 2020-06-26 21:50:53 -04:00
status.js MM-13846 Alert boxes to follow UX Guidelines (#2525) 2019-01-28 12:48:07 -03:00
supported_server.test.js MM-26744 in-prompt for end users if server is unsupported (#4565) 2020-07-15 11:17:55 -04:00
supported_server.ts Revert "[MM-29225] Define LSApplicationQueriesSchemes so Linking.canO… (#5067) 2021-01-06 09:11:27 -07:00
tap.js MM-13151 Increase double tap delay for post action buttons (#2406) 2019-04-02 10:22:31 -04:00
tap.test.js MM-22089 set default prevent double tap to 1s for ChannelInfo modal (#4133) 2020-04-27 10:04:58 -04:00
teams.js [MM-23391] Sort sidebar teams order by user preference (#4911) 2020-12-10 17:35:05 -03:00
teams.test.js [MM-23391] Sort sidebar teams order by user preference (#4911) 2020-12-10 17:35:05 -03:00
theme.js [MM-23761] [MM-25766] Add "More Messages" button (#4526) 2020-07-09 13:30:30 -07:00
theme.test.js [MM-16593] Upgrade to RN 0.61.2 (#3455) 2019-10-28 15:04:24 -07:00
time_tracker.js
timezone.js MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
tooltip.js
url.js MM-30289 Detox/E2E - Add e2e tests for MM-T3184 and MM-T3186 (#5133) 2021-02-10 13:55:00 -08:00
url.test.js Revert "[MM-29225] Define LSApplicationQueriesSchemes so Linking.canO… (#5067) 2021-01-06 09:11:27 -07:00
users.js Port WebSocket from mm-redux and batch actions (#4060) 2020-03-26 21:23:50 -03:00
why_did_you_update.js
wrap_context_provider.js [MM-16139] [MM-16140] [MM-16141] Update the remaining screens/components (#2920) 2019-07-08 10:03:31 -07:00