Elias Nahum
8e314022ca
MM-24285 Use FastImage instead of Image ( #4218 )
...
* Enable ESLint no-unused-vars
* Use FastImage instead of Image
* Update fast-image patch to support multiple cookies
* Fix ESLint errors
* Have jest run timers for post_textbox tests
* Feedback review
* Update snapshots
2020-04-28 11:36:32 -04:00
Miguel Alatzar
2d81b497cf
[MM-23520] Port mattermost-redux ( #4088 )
...
* Remove mattermost-redux
* Move mm-redux files into app/redux
* Add @redux path to tsconfig.json
* Fix imports
* Install missing dependencies
* Fix tsc errors
* Fix i18n_utils test
* Fix more imports
* Remove redux websocket
* Fix tests
* Rename @redux
* Apply changes from mattermost-redux PR 1103
* Remove mattermost-redux mention in template
* Add missing imports
* Rename app/redux/ to app/mm-redux/
* Remove test file
* Fix fetching Sidebar GM profiles
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-04-17 21:12:09 -07:00
Elias Nahum
0504a962a1
MM-22379 & MM-22598 Boost perf by using FastImage cache in favor of ImageCacheManager ( #3971 )
...
* MM-22379 & MM-22598 Boost perf by using FastImage cache in favor of ImageCacheManager
* Code review
2020-02-27 16:29:51 -03:00
Elias Nahum
7c09334dc4
Deps update ( #3806 )
...
* Dependecy updates
* Update dependencies
2020-01-20 13:20:03 -03:00
Miguel Alatzar
1efb01deda
[MM-16593] Upgrade to RN 0.61.2 ( #3455 )
...
* [MM-16593] [MM-17175] [MM-17164] [MM-17189] [MM-17181] Android - Upgrade to RN 0.60 (#3145 )
* Upgrade to react-native 0.60
* Use @sentry/react-native
* Manually link @sentry/react-native
* Address review comments
* Jetify after install
* Call jetify from node_modules
* [MM-17785] iOS - Upgrade to RN 0.60 (#3153 )
* Upgrade to react-native 0.60
* Use @sentry/react-native
* Manually link @sentry/react-native
* Address review comments
* Jetify after install
* Call jetify from node_modules
* Get app building for iOS
* Revert react-native-image-picker upgrade
* Minor version upgrade of react-native-image-picker
* [MM-17142] Convert all string refs to callbacks (#3217 )
* Replace string refs
* Fix tests
* Don't use inline functions
* Fix mattermost-redux reversion from master merge
* [MM-18336] Upload Sentry debug symbols only when SENTRY_ENABLED is true (#3227 )
* Upgrade @sentry/react-native
* Run Sentry gradle tasks only when enabled
* Upgrade @sentry/react-native and remove extra Sentry build phase
* [MM-17144] Use Hermes (#3226 )
* Replace string refs
* Fix tests
* Don't use inline functions
* Fix mattermost-redux reversion from master merge
* Use Hermes
* bundleCommand ram-bundle no longer needed
* Require harmony-reflect only for Android
* Fix failing test
* Path react-native's splitLayoutProps (#3337 )
* [MM-18867] [MM-17186] [MM-18866] [MM-19447] [MM-18967] Upgrade to RN 0.61.2 (#3423 )
* Upgrade to RN 0.61.2
* Update rn-fetch-blob commit hash
* Update react-native-keyboard-tracking-view commit hash
* Use react-native-youtube with AVPlayer fix
* Fix jest mocks
* Use updated document picker API
* Remove unnecessary linking
* Revert "MM-17759 Add code highlighting (#3072 )"
This reverts commit 26b999e885 .
* Fix share extension
* Revert "Revert "MM-17759 Add code highlighting (#3072 )""
This reverts commit 52aca776b12dee3abe8646d0c90480f8528e86c1.
* Address PR reviews
* Rename patch to match version
* Update react-native-youtube patch
* Update dependencies
* Fix RNDocViewer reference
* Update tests and revert to redux-persist 4.10.2
* Revert "Revert "Revert "MM-17759 Add code highlighting (#3072 )"""
This reverts commit 5ef383be2619b1be6167c23f128ecb4b4ad25df9.
* Android fixes after dep upgrades
* Use fresco 2.0.0
* Use mattermost forks
* Use React-Core in Mattermost.scheme instead of react
* Remove packager (#3452 )
* Remove Pods from source control
* Fix unit tests
* Add new line before entering the keystore in gradle.properties
* set ios as working directory for cocoapods
* Cache cocoapods on circleCI builds
* set ios as working dir
* fix cocoapods cache key
* Unify fastlane and npm dependencies command
* Use package-lock.json checksum for npm cache
* Fix package.json and use the checksum as the cache key
* Fix package.json and use the checksum as the cache key
* changes to circleci.yaml fastlane and removing pods from git
* Fix Mattermost.xcodeproj
* Update coocoapods to 1.7.5 and fix xcode header search paths
* Update package-lock.json
* Remove unused tooltip component
* Fix incorrect ref
* Disable Hermes (#3460 )
* Revert "Remove packager (#3452 )"
This reverts commit b2a79e184b3242124dfdb91ae095f6ce3f4eb986.
* Disable Hermes :'(
* Update preloaded modules
* Fix packages moduleNames and modulePaths, update snapshots and update mm-redux (ts version)
* remove document picker from modulePaths
* Fix package-lock.json
* Add eslint disable rules
2019-10-28 15:04:24 -07:00
Harrison Healey
3e0189430b
MM-18762 Remove some usage of deprecated lifecycle methods ( #3299 )
...
* MM-18762 Remove some usage of deprecated lifecycle methods
* Only load ProgressiveImage when a URI changes
2019-09-27 09:16:21 -04:00
Miguel Alatzar
459801d10b
[MM-17560] Await dismissAllModals and popToRoot prior to calling showSearchModal ( #3298 )
...
* Patch react-native-navigation
* Make navigation actions regular functions
* Fix unhandled promise rejection warning
* Missing semicolons
* Mock navigation actions
* Add unit tests for navigation actions
* Place all patches in patches directory
* Fix channel_info snapshot test
2019-09-25 15:23:45 -07:00
Elias Nahum
9975a19b91
MM-18236 Prevent the post menu from triggering when using the back gesture ( #3319 )
...
* MM-18236 Prevent the post menu from triggering when using the back gesture in the thread screen
* Update snapshots
* Update app/components/touchable_with_feedback/touchable_with_feedback.ios.js
Co-Authored-By: Miguel Alatzar <migbot@users.noreply.github.com>
* Update app/components/touchable_with_feedback/touchable_with_feedback.ios.js
Co-Authored-By: Miguel Alatzar <migbot@users.noreply.github.com>
* Update app/components/post/post.js
Co-Authored-By: Miguel Alatzar <migbot@users.noreply.github.com>
* Update app/components/touchable_with_feedback/touchable_with_feedback.ios.js
* Fix eslint
2019-09-26 00:19:49 +03:00
Miguel Alatzar
5eee2b7652
[MM-16139] [MM-16140] [MM-16141] Update the remaining screens/components ( #2920 )
...
* Update screens
* Update login tests
* Remove done
* Fix failing tests
* Update screens and components
* Check styles fix
* Update tests
* Prevent setState call after component unmounts
* Add empty setButtons func to dummy navigator
* Remove platform check
* Remove Platform import
* Update react-native-navigation version
* Add separate showModalOverCurrentContext function
* check-style fixes
* Remove overriding of AppDelegate's window
* Fix modal over current context animation
* Add showSearchModal navigation action
* Check-style fix
* Address review comments
* Update SettingsSidebar and children
* Update EditProfile screen
* Update SettingsSidebar
* Keep track of latest componentId to appear
* Track componentId in state to use in navigation actions
* Update FlaggedPosts and children
* Update RecentMentions
* Update Settings
* Store componentIds in ephemeral store
* Update AttachmentButton
* Remove unnecessary dismissModal
* Fix typo
* Upate NotificationSettings
* Update NotificationSettingsAutoResponder
* Update NotificationSettingsMentions
* Update NotificationSettingsMobile
* Update CreateChannel and children
* Update MoreChannels
* Update ChannelPeek and children
* Update ChannelNavBar and children
* Update ChannelPostList and children
* Update ChannelInfo and children
* Update ChannelAddMembers
* Update ChannelMembers
* Update EditChannel
* Fix setting of top bar buttons
* Update Channel screen and children
* Update PinnedPosts
* Update LongPost
* Update PostOptions
* Update PostTextboxBase
* Update EditPost
* Check-styles fix
* Update DisplaySettings
* Update Timezone
* Update SelectTimezone
* Update IntlWrapper and Notification
* Update InteractiveDialog and children
* Update ExpandedAnnouncementBanner
* Update ClientUpgradeListener
* Update MoreDirectMessages
* Update SelectorScreen
* Update UserProfile
* Update Thread
* Update About
* Update ImagePreview
* Update TextPreview
* Update AddReaction
* Update ReactionList and children
* Update Code
* Update TermsOfService
* Update Permalink
* Update Permalink
* Update ErrorTeamsList
* Update Search
* Remove navigator prop
* Fix setButtons calls
* Remove navigationComponentId
* Fix test
* Handle in-app notifs in global event handler
* Fix in-app notification handling
* Fix typo
* Fix tests
* Auto dismiss in-app notif after 5 seconds
* Fix typo
* Update overlay dismissal
* Animate in-app notif dismissal and allow gesture dismissal
2019-07-08 10:03:31 -07:00
Miguel Alatzar
51aac1e6e7
Merge branch 'master' into rnn-v2
2019-07-02 18:15:19 -07:00
Elias Nahum
9f88923656
Place the new message indicator at the top of the screen ( #2943 )
...
* Place the new message indicator at the top of the screen
* Add unit tests for channel postVisibility reducer
2019-07-02 12:28:13 -04:00
Miguel Alatzar
150253d392
[MM-16012] [MM-16084] Update screens related to settings sidebar + update SearchResultPost screen and its children ( #2913 )
...
* Update screens
* Update login tests
* Remove done
* Fix failing tests
* Update screens and components
* Check styles fix
* Update tests
* Prevent setState call after component unmounts
* Add empty setButtons func to dummy navigator
* Remove platform check
* Remove Platform import
* Update react-native-navigation version
* Add separate showModalOverCurrentContext function
* check-style fixes
* Remove overriding of AppDelegate's window
* Fix modal over current context animation
* Add showSearchModal navigation action
* Check-style fix
* Address review comments
* Update SettingsSidebar and children
* Update EditProfile screen
* Update SettingsSidebar
* Keep track of latest componentId to appear
* Track componentId in state to use in navigation actions
* Update FlaggedPosts and children
* Update RecentMentions
* Update Settings
* Store componentIds in ephemeral store
* Update AttachmentButton
* Remove unnecessary dismissModal
* Fix typo
* Check-style fix
* Address review comments
2019-06-24 12:52:08 -07:00
Elias Nahum
e5dab98a8e
Fix opengraph image on tablet to account for the sidebar ( #2863 )
2019-06-05 17:58:28 -04:00
Elias Nahum
f36ee37402
Upgrade to RN 0.59.6 and dependencies ( #2777 )
...
* Upgrade to RN 0.59.6 and dependencies
* Remove channel loader unused style
* Update to the latest netInfo that fixes a crash
* Do not set default timezone with moment
* Use RN 0.59.8
2019-05-13 13:33:18 -04:00
Harrison Healey
1173ca3d97
MM-14030 Don't show large gifs in posts ( #2750 )
...
* MM-14030 Don't show large gifs in posts
* Re-add default argument
2019-05-01 09:34:45 -04:00
Elias Nahum
736a955be8
Use post metadata to prevent scroll pop ( #2304 )
...
* Use post metadata to prevent scroll pop
* Fix not to fetch for reactions every time
* Update post-metadata mm-redux ref
* Update mattermost-redux to include post-metadata
2018-11-22 19:47:27 -03:00
Elias Nahum
68a3825d95
Update dependencies ( #2316 )
2018-11-18 17:54:06 -03:00
Elias Nahum
e25a1939fc
Set the file prefix in image_cache_manager ( #2313 )
2018-11-05 15:24:30 -03:00
Saturnino Abril
df0200111d
fix empty space on link preview when title and URL is not present in open graph meta ( #2197 )
2018-10-03 09:32:35 -04:00
Saturnino Abril
2cf3ac18f5
fix blank space on link preview when no site name ( #2193 )
2018-10-01 15:06:31 +08:00
Saturnino Abril
1fbfe33a22
add border to image of link preview and not allow such image width to exceed the view port width ( #2189 )
2018-10-01 09:34:30 +08:00
Elias Nahum
637ca9244a
Update RN to version 0.57.0 ( #2131 )
2018-09-20 19:05:41 -03:00
Saturnino Abril
858c8e8435
[MM-12016] Add test to PostAttachmentOpenGraph component (did some refactor to make it easily tested) ( #2144 )
...
* add test to PostAttachmentOpenGraph component (did some refactor to make it easily tested)
* remove null check to openGraphData on renderDescription
2018-09-20 11:45:23 -03:00
Elias Nahum
9ca10dc719
Make sure opengraph displays images ( #2083 )
...
* Make sure opengraph displays images
* Revert change for IMAGE_MAX_HEIGHT constant
2018-09-07 09:06:22 -04:00
Harrison Healey
07ada67e1a
MM-11449 Show OpenGraph previews for pages with any of the required fields ( #2054 )
...
* MM-11449 Show OpenGraph previews for pages with any of the required fields
* Update mattermost-redux
2018-08-30 14:18:01 -03:00
Elias Nahum
b47c7db4dc
Fix cropped images ( #1936 )
...
* Fix cropped images
* Unit tests
2018-07-20 13:34:46 -04:00
Jesse Hallam
8372e95d4a
add eslint-plugin-header, and --fix all ( #1726 )
2018-06-19 19:14:50 -04:00
Harrison Healey
40dc8912b7
Fixed empty OpenGraph previews from trying to render an empty string ( #1660 )
2018-05-08 22:03:43 +08:00
Harrison Healey
4b11195120
MM-10360 Only show link previews if they have a url defined ( #1655 )
2018-05-07 16:40:55 +08:00
Harrison Healey
3b33b51f11
MM-10360 Render OpenGraph previews for pages with an empty description ( #1651 )
...
* MM-10360 Render OpenGraph previews for pages with an empty description
* Updated mattermost-redux
2018-05-03 10:02:09 -04:00
Elias Nahum
006c5a08d7
Use local Images when possible ( #1580 )
...
* Fix advance settings android layout
* include react-native-image-gallery dependency
* ImageCacheManager
* Add support for isGif, isDocument, isVideo and purge to file utils
* Remove file fetch cache
* include progressive image component
* Refactor image previewer
* Add image preview support for open graph and embed images
* Cache user profile picture
* Fix post additional content images for android
* Preview markdown inline images
* Improve progressive image
* feedback review
2018-04-13 12:23:15 -03:00
Elias Nahum
579494feab
Long post feature ( #1525 )
...
* Long post support
* Fix upload preview
* Add MaxPostSize validation
* Fix show more button container
* localization
* feedback review
* UI feedback review
* Upgrade mattermost-redux
* Fix long post attachment list
2018-03-26 14:25:42 +03:00
Jesse Hallam
58b72302d6
update eslint's comma-dangle rule to always-multiline ( #1457 )
...
* update eslint's `comma-dangle` rule to `always-multiline`
* add check and fix scripts to package.json
* Invoke `yarn fix` to adopt the updated eslint rules. No other changes are included.
2018-02-23 09:06:02 -05:00
enahum
9509e1a83e
Fix UI when rendering link previews in a reply ( #1318 )
...
* Fix UI when rendering link previews in a reply
* feedback review
2018-01-02 17:24:03 -05:00
enahum
27713322e3
Fixed Search bugs and avoid re-renders ( #1047 )
...
* Fixed Search and avoid re-renders
* Feedback review
* Feedback review
2017-10-24 17:02:09 -04:00
enahum
f50b2b9412
Improving Performance Part 3 ( #1011 )
...
* Update mattermost-redux
* Tap on Deleted post to remove it
* Improvements when rendering post additional content
* Avoid unnecessary re-renders on the post list component
* Avoid unnecessary re-renders on the channel post list component
* Avoid unnecessary re-renders on the channel screen
* Feedback review
2017-10-11 14:54:13 -03:00
enahum
7aebcbd52e
Link Previews ( #890 )
...
* Link previews, Image previews and YouTube
* Install cocoapods dependencies
2017-09-12 15:06:19 -03:00