mattermost-mobile/app/components
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
..
__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 Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
attachment_button 1.45 Release testing bug fixes (#5529) 2021-07-12 16:01:37 -04:00
autocomplete MM-33599 Add support for data uri icons for slash commands (#5393) 2021-07-19 16:26:39 +02:00
autocomplete_selector MM-35935 Respect disabled for bool settings (#5405) 2021-07-09 11:16:06 +02:00
avatars Feat crt (#5455) 2021-07-21 22:58:04 +05:30
channel_intro MM-36881 Fix scroll perf degradation with pull to refresh enabled (#5525) 2021-07-12 15:59:25 -04:00
channel_link Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
channel_loader Post List & post components refactored (#5409) 2021-06-03 11:12:15 -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 Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
custom_status Fixed custom status issues (#5476) 2021-06-22 10:27:47 -07:00
edit_channel_info Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
emoji MM-36900 Fix mm emoji (#5526) 2021-07-09 18:32:29 +02:00
emoji_picker MM-36900 Fix mm emoji (#5526) 2021-07-09 18:32:29 +02:00
error_list [MM-22959] Use Compass icons (#4847) 2020-10-15 15:34:24 -07:00
error_text Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07: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
friendly_date Feat crt (#5455) 2021-07-21 22:58:04 +05:30
global_threads Feat crt (#5455) 2021-07-21 22:58:04 +05:30
interactive_dialog_controller Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
layout/keyboard_layout Fix propTypes warnings (#5285) 2021-04-06 21:18:31 -04:00
load_more_posts Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
markdown Fix crash on markdown emoji with hardbreak parser (#5547) 2021-07-19 20:19:48 -04:00
network_indicator fix: connect websocket when the component mounts (#5456) 2021-06-14 15:48:39 -04:00
pasteable_text_input Update dependencies (#5266) 2021-04-06 11:12:31 -04:00
post_draft MM-34619 post draft to use the channelId prop when assigned (#5488) 2021-07-01 07:04:47 +08:00
post_list Feat crt (#5455) 2021-07-21 22:58:04 +05:30
profile_picture 1.45 Release testing bug fixes (#5529) 2021-07-12 16:01:37 -04:00
progressive_image Fix propTypes warnings (#5285) 2021-04-06 21:18:31 -04: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 Migrate message attachments to typescript (#5127) 2021-04-22 18:21:44 -04: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 Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
root MM-35384 Add country variant localization support (#5397) 2021-05-20 11:58:53 -04:00
safe_area_view MM-30164 fix safe area insets (#4979) 2020-11-23 20:10:09 -03:00
search_bar Fix propTypes warnings (#5285) 2021-04-06 21:18:31 -04:00
sidebars Feat crt (#5455) 2021-07-21 22:58:04 +05:30
slide_up_panel MM-30164 fix safe area insets (#4979) 2020-11-23 20:10:09 -03:00
status_bar [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
team_icon Refactor rest client class to use mixin and a bit of cleanup (#5318) 2021-04-15 10:04:36 -04:00
touchable_with_feedback Fix propTypes warnings (#5285) 2021-04-06 21:18:31 -04:00
user_status MM-34407 Use Avatars for Sidebar DMs (#5334) 2021-04-28 18:54:54 -04:00
widgets/settings MM-35935 Respect disabled for bool settings (#5405) 2021-07-09 11:16:06 +02: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.tsx MM-32921 shared channels (#5241) 2021-05-24 16:07:47 +05:30
conditional_touchable.js Fix propTypes warnings (#5285) 2021-04-06 21:18:31 -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.tsx Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
formatted_markdown_text.js Fix propTypes warnings (#5285) 2021-04-06 21:18:31 -04:00
formatted_text.tsx Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
formatted_time.test.js Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
formatted_time.tsx Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07:00
image_viewport.tsx Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07: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 Refactor rest client class to use mixin and a bit of cleanup (#5318) 2021-04-15 10:04:36 -04:00
profile_picture_button.test.js Refactor rest client class to use mixin and a bit of cleanup (#5318) 2021-04-15 10:04:36 -04:00
progress_bar.tsx Gallery Improvements (#4837) 2020-11-06 21:17:27 -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 Post List & post components refactored (#5409) 2021-06-03 11:12:15 -07: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