mattermost-mobile/app/screens
Miguel Alatzar f79f9dc697
[MM-23761] [MM-25766] Add "More Messages" button (#4526)
* Add more messages button

* Update existing tests

* Various fixes:

* Use viewAreaCoveragePercentThreshold over itemVisiblePercentThreshold
* Remove currentUserId check when adding New Message line to postIds and
  instead update the channel last viewed time when an own post is received

* Update snapshots

* Add showMoreMessagesButton prop and default to false

* Android fixes

* Add tests

* Localize more messages text

* Use FormattedText

* i18 extract

* Style fixes

* Account for network indicator

* Fix for failing tests

* Various fixes:

* Set the unreadMessageCount when POST_UNREAD_SUCCESS is dispatched
  with a positive deltaMsgs
* Hide the more messages button when the unread count decreases or
  when the new message line is removed shortly after loading the
  channel

* No need for POST_UNREAD_SUCCESS if we manually call onViewableItemsChanged

* Reset unread count if current channel on channel mount

* Animate text opacity

* Compare indeces to determine when scrolling has ended

* Fix opacity animation trigger

* try with scrolling to the last rendered item

* Add onScrollEndIndex

* Improve animations

* Don't track moreCount in state

* Use moreText over prevNewMessageLineIndex to determine firstPage

* Update intl message format and call cancel in componentDidUpdate when needed

* Fix intl format

* Remove opacity animation and countText

* Fix pressed not being reset

* No need to separate intl func

* Return after resetting

* Fix accidental removal of setState call

* Reset pressed when newLineMessageIndex changes

* Use default windowSize and lower POST_CHUNK_SIZE and delays

* Queue a cancel timer that gets cleared only when the newMessageLineIndex changes

* Define uncancel func

* Increase cancelTimer delay

* Subtract read posts from unread count and account for retry indicator

* Add retry bar indicator tests

* Use props.unreadCount

* Fix handling of newMessageLineIndex change

* Fix handling of newMessageLineIndex change take 2

* Fix handling of newMessageLineIndex change take 3

* Use 'native' TouchableWithFeedback with dark overlay

* Fix handling of manually unread

* Update chunk and window sizes

* Fix hsl

* Update text only when newMessageLineIndex/endIndex is reached

* Don't delay cancel if when no more unreads

* Fixes for when opening the app

* No need to process viewableItems when unreadCount is 0

* Remove line

* Don't show if unreadCount is 0

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-07-09 13:30:30 -07:00
..
about MM-23570 Migrate from Segment to Rudder (#4293) 2020-05-13 16:54:07 -04:00
add_reaction MM-24115 Use Native + BuiltIn emojis instead of systemEmojis (#4274) 2020-05-13 18:23:47 -04:00
channel [MM-23761] [MM-25766] Add "More Messages" button (#4526) 2020-07-09 13:30:30 -07:00
channel_add_members Fix overflow of searchbar for iOS in Landscape (#4312) 2020-05-20 23:34:16 -04:00
channel_info MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
channel_members Fix overflow of searchbar for iOS in Landscape (#4312) 2020-05-20 23:34:16 -04:00
client_upgrade MM-23570 Migrate from Segment to Rudder (#4293) 2020-05-13 16:54:07 -04:00
code added isLandscape (#4188) 2020-04-22 18:48:51 -07:00
create_channel MM-26490 Dismiss keyboard when closing more dms / channels / create channel (#4538) 2020-07-07 17:37:52 -04:00
edit_channel [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
edit_post MM-21368 Notify user when editing message that's too long (#4371) 2020-06-10 13:01:40 -03:00
edit_profile MM-25694 Disallow profile picture update is set by LDAP (#4377) 2020-06-02 12:04:28 -04:00
error_teams_list Fix infinite skeleton in different use cases and do not scroll to messages already seen (#4304) 2020-05-19 18:54:34 -04:00
expanded_announcement_banner [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
flagged_posts Fix infinite skeleton in different use cases and do not scroll to messages already seen (#4304) 2020-05-19 18:54:34 -04:00
forgot_password MM-23570 Migrate from Segment to Rudder (#4293) 2020-05-13 16:54:07 -04:00
image_preview MM-15758 Update dependencies including Fastlane (#4272) 2020-05-18 11:24:47 -07:00
interactive_dialog [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
login MM-26667 Set EMM username as the initial loginId (#4519) 2020-07-02 14:27:19 -04:00
login_options Fix SSO and clear cookies (#4422) 2020-06-15 14:00:13 -04:00
long_post [MM-24068] Animate top bar height/padding (#4370) 2020-06-01 10:03:58 -07:00
mfa Handle MFA error in MFA screen (#4308) 2020-05-20 08:28:14 -07:00
more_channels MM-26490 Dismiss keyboard when closing more dms / channels / create channel (#4538) 2020-07-07 17:37:52 -04:00
more_dms MM-26490 Dismiss keyboard when closing more dms / channels / create channel (#4538) 2020-07-07 17:37:52 -04:00
notification MM-23570 Migrate from Segment to Rudder (#4293) 2020-05-13 16:54:07 -04:00
options_modal Apply background style for Android as well (#4326) 2020-05-22 11:35:37 -04:00
permalink [MM-24068] Animate top bar height/padding (#4370) 2020-06-01 10:03:58 -07:00
pinned_posts Fix infinite skeleton in different use cases and do not scroll to messages already seen (#4304) 2020-05-19 18:54:34 -04:00
post_options MM-26638 MM-26656 await when dismissing post options modal (#4518) 2020-07-02 11:59:14 -04:00
reaction_list MM-25956 Use new mobile modal style on Other User Profile (#4507) 2020-07-09 08:34:42 +09:00
recent_mentions Fix infinite skeleton in different use cases and do not scroll to messages already seen (#4304) 2020-05-19 18:54:34 -04:00
search MM-26699 Track open modals (#4539) 2020-07-08 10:43:20 -07:00
select_server MM-25831 Fix timing issue with cancelPing (#4389) 2020-06-08 14:16:44 -03:00
select_team Fix unhandled error when logging out from the select team screen (#4423) 2020-06-17 14:37:46 -07:00
selector_screen Fix overflow of searchbar for iOS in Landscape (#4312) 2020-05-20 23:34:16 -04:00
settings Update settings.js (#4517) 2020-07-06 10:49:14 -07:00
sso MM-25967 Disable Shared Process Pool in WebView (#4511) 2020-07-01 16:06:59 -04:00
table MM-15635 - Making markdown tables more responsive (#3249) 2019-11-30 14:27:02 -03:00
table_image MM-15719 Use metadata only to render post additional content (#4386) 2020-06-29 11:28:07 -04:00
terms_of_service MM-25946 prompt sys admins if they are running server versions below 5.19 (#4488) 2020-06-26 15:58:37 -04:00
text_preview [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
thread MM-22401 Refactor Post Draft (#4122) 2020-05-06 06:30:51 -04:00
user_profile MM-25956 Use new mobile modal style on Other User Profile (#4507) 2020-07-09 08:34:42 +09:00
index.js Allow interaction when the in-app notification is shown (#4295) 2020-05-19 15:54:47 -07:00