mattermost-mobile/app/utils
Anurag Shivarathri fedf636b2f
Feat crt (#5455)
* [MM-31133]: participants screen component (#5116)

* Fixed imports

* Misc fixes

* Added i18n string

* Moved '(you)' after the name

* [MM-30386][MM-30387] Client and redux changes for collapsed reply threads (#5175)

* [MM-30386][MM-30387] Client and redux changes for collapsed reply threads

* fix tests

* add and use flat shim

* use test helper function

* use test helper function

* revert crt changes to unused client and action functions

* use toEqual

* incorporate code review feedback

* don't assume server success

* batch actions

* clearer code

* WIP in changes, websockets and more redux changes

* Added mark thread as read and mark all as read in a team

* Added isCollapsedThreadEnabled entity

* Fixed loading global screens on load if it's the last visited screen

* Added root count and websocker and redux events related to threads

* Fixed Message, Mention count root count on init and decrement actions

* Moved old client to new client/rest

* Misc fix

* Misc fix

* Misc.

* Old redux test cases fix

* Added polyfill back for array flat

* Fixes mark as unread and pariticipants error in thread

* Fixed initial load when CRT not enabled

* Handling CRT preference change

* Get threads fallsback to search in posts in case of unfollowed or unloaded threads

* Gets threads on reconnect

* DM, Channel counter fix

* Added threads redux tests

* Fixed channel dot issue when child post is arrived channel not active

* Cleaning up threads on load, not letting posts included in threads getting deleted which can trigger many posts to be loaded at once

* Fixed crash on team switch, partly fixed enable/disable from webapp

* Fix when viewing a post from notification, to prevent from navigating back to global threads

* Fixed when preferences are changed before app is launched

* Fixed issue of NO THREADS appearing on reconnect

* Excludes CRT handling for newly logged in users

* Fixed unread dot showing even when all messages are read

* Update app/mm-redux/selectors/entities/threads.ts

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* Not viewing threads action is pushed only when suer is in Global Threads

* Fixed cleanup to exclude current team when cleanup starts on app going to background

* Dispatch is not passed as param, misc code fixes

* Preferences check and handling code refactored

* added redux-mock-store

* Preference change fix

* Removed user login dispatch when handling crt change

* Fixed fallback thread support

* Return getThread

* Added threads to sidebar, moved teamId logic to action

* [MM-29106, MM-34847, MM-34843, MM-34846] Collapsed reply threads, Global Threads & In Channel experience UI implementation (#5376)

* feat: global threads screen

* Refactored global thread menu and misc design fixes

* Added empty states for threads, unread. Removing markdown from thread messages.

* Added friendly date, fixed long usernames & channel names in threads view.

* Mark thread as read

* Added intl, refactored code, seperated thread footer from thread item

* Added intl to global threads, added global threads to android

* Added Follow button to thread view

* Added thread badges

* In Channel experience .. WIP

* Clean posts in channel incase CRT is enabled.

* Added follow button, deleted messages doesnot have footer and design is now according to figma

* Removed old post and post header

* Added for follow/unfollow thread and fixed old one

* MISC design & code fixes

* Added options-follow/unfollow to the post's long press menu

* Shows ORIGINAL MESSAGE DELETED in thread when root post gets deleted

* Post list ts fix

* Old testcases fix

* Eslint fix

* Added custom status emoji in at mention autocomplete

* Fixed the width of the displayname and username

* Changed the max width for the full name and username in the autocomplete item

* Review fixes
Changed the behaviour of ellipses for long names

* Removed safearea bottom

* Fixes Mark and unread and thread header theme

* Fixes mark as unread and pariticipants error in thread

* Unfollowing post fix and misc

* Merge with master fix

* Added fallback to get thread from posts in case of not following/unloaded threads

* Refactored code and added tests for screens

* Loads threads from  global threads screen, marks thread as marked on new thread posts

* Fixed tabs render on no threads, threads footer items styling and tests

* Loads threads based on tab and items according to constant

* Added infinite loading, unreads based on redux and not active thread list

* Fixed the username cutting off after truncating display name issue

* Changed avatars to touchableOpacity and added prop for parent component to style

* Fixed infinite loading, tab switching scroll to top, misc styles, team switching, scroll indicator insets

* Added follow button to DMs, moved follow button further right only on ios

* Snapshot updated

* Moved from useSelector to connect HOC

* Scrolls to top on team change, changed thread constant from mm-redux

* Fix merge issue

* Test case fix

* Fixed participants list

* Update app/components/global_threads/global_threads.tsx

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* Update app/components/global_threads/thread_footer/thread_footer.tsx

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* Update app/components/sidebars/main/channels_list/channel_item/index.js

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* Update app/screens/thread/index.js

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* Moved date numbers to constants

* Fixed global threads component issues

* Thread item display logic moved to redux

* Misc fixes

* Reverted to TouchableWithFeedback with opacity

* Removed obselete snapshots

* Removing currentTeamId as we aregetting it in action

* Moved to connect component from useSelect for sidebar

* Thread read issue fix

* Removed react-native-navigation mock

Co-authored-by: Anurag Shivarathri <anurag6713@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Manoj <manoj@brightscout.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

Co-authored-by: Anurag Shivarathri <anurag6713@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Manoj <manoj@brightscout.com>

Co-authored-by: Ashish Bhate <bhate.ashish@gmail.com>
Co-authored-by: Ashish Bhate <ashish.bhate@mattermost.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Manoj <manoj@brightscout.com>
2021-07-21 22:58:04 +05:30
..
bottom_sheet [MM-17560] Await dismissAllModals and popToRoot prior to calling showSearchModal (#3298) 2019-09-25 15:23:45 -07:00
sentry Refactor rest client class to use mixin and a bit of cleanup (#5318) 2021-04-15 10:04:36 -04:00
apps.test.ts Feature - Cloud Apps (#5226) 2021-03-22 18:02:06 -04:00
apps.ts Feature - Cloud Apps (#5226) 2021-03-22 18:02:06 -04:00
avoid_native_bridge.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
channels.js Added "Join prompt" when sys admin clicks on perma links of private channels (#4988) 2021-02-12 09:09:34 +05:30
datetime.ts Feat crt (#5455) 2021-07-21 22:58:04 +05:30
document.ts Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
draft.js Post List & post components refactored (#5409) 2021-06-03 11:12:15 -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.json MM-36900 Fix mm emoji (#5526) 2021-07-09 18:32:29 +02:00
emoji_utils.js [MM-35909] Support for emoji 13 (#5497) 2021-06-30 00:41:11 +02:00
emoji_utils.test.js [MM-35909] Support for emoji 13 (#5497) 2021-06-30 00:41:11 +02:00
emojis.js MM-36900 Fix mm emoji (#5526) 2021-07-09 18:32:29 +02:00
error_handling.js Refactor rest client class to use mixin and a bit of cleanup (#5318) 2021-04-15 10:04:36 -04: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
gallery.ts Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
general.js MM-34508 in-app browser emm configuration (#5274) 2021-04-07 14:15:19 -04:00
i18n.js Add t() translation mark to i18nable strings and update translations (#2026) 2018-09-21 11:25:38 -03:00
image_cache_manager.js Refactor rest client class to use mixin and a bit of cleanup (#5318) 2021-04-15 10:04:36 -04:00
image_cache_manager.test.js Gallery Improvements (#4837) 2020-11-06 21:17:27 -03:00
images.test.ts Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
images.ts Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
latinise.js Port WebSocket from mm-redux and batch actions (#4060) 2020-03-26 21:23:50 -03:00
list_view.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
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.ts Migrate message attachments to typescript (#5127) 2021-04-22 18:21:44 -04:00
mix.ts Refactor rest client class to use mixin and a bit of cleanup (#5318) 2021-04-15 10:04:36 -04:00
network.js Refactor rest client class to use mixin and a bit of cleanup (#5318) 2021-04-15 10:04:36 -04:00
notify_props.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
opengraph.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
permission.ts Update dependencies and setup project with node 16 / npm 7 (#5474) 2021-06-21 18:36:38 -04:00
post.ts Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
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 Update react-native-cookies & react-native-webview + always use defaultDataStore (#5452) 2021-06-15 18:40:35 -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 Fixes for release 1.42 (#5339) 2021-04-19 08:41: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 Add Perf metrics, some cleanup & dep updates (#5378) 2021-05-12 08:48:20 -04:00
theme.test.js [MM-16593] Upgrade to RN 0.61.2 (#3455) 2019-10-28 15:04:24 -07:00
timezone.js MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
tooltip.js add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
url.js MM-34508 in-app browser emm configuration (#5274) 2021-04-07 14:15:19 -04: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 Fix Posts cutoff (#2071) 2018-09-04 11:53:15 -03:00
wrap_context_provider.js [MM-16139] [MM-16140] [MM-16141] Update the remaining screens/components (#2920) 2019-07-08 10:03:31 -07:00