Miguel Alatzar
57d60649f8
[MM-22959] Use Compass icons ( #4847 )
...
* Use Compass icons
* Update ChannelInfo and AdvancedSettings
* Fix search modifiers
* Fix Autocomplete item
* Remove VectorIcon component
* Unlink react-native-vector-icons
* Revert ProgressiveImage changes
* Update Mark as Unread icon
* Apply review suggestion
* Replace extension icons
* Update video control button style
* Replace (un)flag with (un)save
* Replace (un)flag with (un)save - take 2
* Use bookmark-outline icon
Co-authored-by: Miguel Alatzar <miguel@Miguels-MacBook-Pro.local>
2020-10-15 15:34:24 -07:00
Miguel Alatzar
a5cb92876c
[MM-29225] Linking fix ( #4860 )
...
* Catch openURL over checking canOpenURL
* Update en.json
2020-10-02 10:01:44 -07:00
Elias Nahum
1d0fc0510c
MM-25684 Highlight at-mention followed by a period ( #4733 )
...
* MM-25684 Highlight at-mention followed by a period
* Refactor at_mention to not highlight the period
* Do not add a link for invalid mentions
* Suggested review
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-08-28 12:59:01 -04:00
Elias Nahum
ea4e21de93
Fix soft crash for edge emoji formatting ( #4705 )
2020-08-20 14:48:48 -04:00
Elias Nahum
a99e938e9c
MM-26817 Upgrade to RN 0.63 ( #4566 )
...
* Upgrade to RN 0.63
* Bump to RN 0.63.1
* Fix RN patch
* Use JSC Intl version
* Update android/app/build.gradle
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
* Fix Android external storage permission
* Fix emoji imageUrl when no server url is present
* Patch react-native-image-picker
* Allow to post attachment only messages
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-07-20 18:08:11 -04:00
Hossein Ahmadian-Yazdi
2840a42a00
[MM-23160][MM-24633][MM-24697] Highlight Group Names 2 ( #4551 )
...
* Initial Commit for Group Highlights
* Fix some stuff
* Get my groups
* update channel.js
* Address PR comments
* Address PR comments
* Update app/actions/views/channel.js
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
* update selector stuff
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-07-20 10:19:18 -04:00
Elias Nahum
0f72bb34c2
MM-15719 Use metadata only to render post additional content ( #4386 )
...
* MM-15719 Use metadata only to render post additional content
* Default link to empty instead of undefined
* Feedback review
2020-06-29 11:28:07 -04:00
Elias Nahum
a9763c7480
Do not preload images with FastImage ( #4314 )
2020-05-20 15:47:06 -04:00
Elias Nahum
36e55c95a2
MM-23570 Migrate from Segment to Rudder ( #4293 )
...
* Replace Segment with Rudder (ios not working)
* Update @assets reference and fix tests
2020-05-13 16:54:07 -04:00
Elias Nahum
9af108026e
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 23:23:39 +08:00
Miguel Alatzar
7bee5c368a
Always show expand button ( #4121 )
2020-04-07 13:52:59 -03:00
Miguel Alatzar
ee4b85edcf
[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-03-31 11:09:26 -07:00
Miguel Alatzar
55cac2e062
[MM-23514] Don't use state for rowsSliced/colsSliced ( #4075 )
...
* Don't use state for rowsSliced/colsSliced
* Update snapshot
* Also show moreBelow when contentHeight > MAX_HEIGHT
2020-03-25 15:59:17 -07:00
Farhan Munshi
8052112260
[MM-22622] Check mentionHighlightsDisabled in markdown ( #3975 )
...
* MM-22622 Check mentionHighlightsDisabled in markdown
* MM-22622 Use array of mentions instead of long conditional
* MM-22622 Disable Channel mention highlight for channel header change messages
* MM-22622 Update tests to ensure mention highlight disabled on system message
2020-03-03 16:37:44 +05:30
Miguel Alatzar
b8fc38d3bc
[MM-22152] [MM-22321] Fix Markdown table issues ( #3924 )
...
* Ensure isFirstRow prop is set on first row
* Determine maxPreviewColumns on mount
* Fix expand button offset on Android
* Fix moreBelow gradient
* Show right gradient when columns are sliced
* Fix moreRight conditions
2020-03-01 09:27:25 -03: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
Amit Uttam
36c7cf4014
MM-21723 Handle deep link errors to inaccessible teams, channels & permalinks ( #3815 )
...
* Consolidated error handling for a user's reachable teams.
* Consolidated error handling for a user's reachable channels.
2020-01-21 14:43:24 -03:00
Elias Nahum
7c09334dc4
Deps update ( #3806 )
...
* Dependecy updates
* Update dependencies
2020-01-20 13:20:03 -03:00
Elias Nahum
08e748bcae
MM-21634 Fix keyboard glitch when returning to channel screen from the code screen ( #3813 )
2020-01-20 08:50:32 -07:00
Amit Uttam
f3b0e4aa28
MM-21068 Notify when attempting to enter private channel/group via explicit link ( #3759 )
2020-01-13 20:57:06 -07:00
Saturnino Abril
f8698d0293
MM-21342 Fix leading zero on post by using react-intl by default and fallback to moment-timezone for unsupported locale ( #3797 )
...
* used react-intl for post time as default and moment-timezone as fallback
* add @testing-library/react-native to better test component rendering
2020-01-13 20:12:51 -03:00
Amit Uttam
a5330bc08f
MM-21369 Require server/site URL for deep links ( #3770 )
...
**Old (only worked without serverURL or siteURL)**
Beta
* `mattermost-beta://<teamname>/channels/<channelname>`
* `mattermost-beta://<teamname>/pl/<permalinkID>`
Release
* `mattermost-mobile://<teamname>/channels/<channelname>`
* `mattermost-mobile://<teamname>/pl/<permalinkID>`
**New working deep link patterns**
Beta
* `mattermost-beta://<server-or-site-URL><teamname>/channels/<channelname>`
* `mattermost-beta://<server-or-site-URL><teamname>/pl/<permalinkID>`
* `mattermost-beta://https://<server-or-site-URL><teamname>/channels/<channelname>`
* `mattermost-beta://https://<server-or-site-URL><teamname>/pl/<permalinkID>`
Note: Transport protocol (http, https, etc.) is optional.
Release
* `mattermost-mobile://<server-or-site-URL><teamname>/channels/<channelname>`
* `mattermost-mobile://<server-or-site-URL><teamname>/pl/<permalinkID>`
* `mattermost-mobile://https://<server-or-site-URL><teamname>/channels/<channelname>`
* `mattermost-mobile://https://<server-or-site-URL><teamname>/pl/<permalinkID>`
Note: Transport protocol (http, https, etc.) is optional.
2020-01-13 16:28:14 -03:00
CJ
da858797d3
MM-19837 Remove Opacity from AtMention Markdown ( #3640 )
...
* MM-19837 Remove Opacity from AtMention Markdown
Removed the opacity that was set on the base text style for the markdown on AtMention for system messages.
* MM-19837 Updated opacity for AtMention
The baseTextStyle being used to set the opacity is used across the entire text format, so for this change where an AtMention is used, I added a new opacity to overwrite the on applied by the baseTextStyle.
2019-12-03 13:07:34 -05:00
Andre Vasconcelos
f7bed8dcdb
MM-15635 - Making markdown tables more responsive ( #3249 )
...
* Making markdown tables more responsive
* Changing implementation of isTablet and isLandscape
* Fixing variable names & added more table styles
* Adding header backgrounds & iOS fixes
* Changing cell padding to 8
* Fixing positioning of expand table buttons
* Fixed android issues and flex render conditions
- Centered icon in expand button instead of using fixed paddings (icon was slightly off center)
- Fixed expand button rendering on android
- Separated full table view into ios / android to allow for separate styling
* Merging table back to single file
* Resolving conflicts & improving full table view
- Made the full table view scrollable through any part of the screen, as opposed to only the table area (only works on iOS)
- Resolved conflicts with PR that limits tables to 5 columns visible on channel view
- Made changes to keep behavior of tables consistent on table view
- Added logic to render "moreRight" element if table was cut in channel view
- Updated snapshot
2019-11-30 14:27:02 -03:00
Asaad Mahmood
19c99673f7
MM-20326 - Updating markdown table css ( #3608 )
...
* MM-20326 - Updating markdown table css
* Updating UI
* MM-20326 - Updating markdown table css
2019-11-28 03:02:40 +08:00
Miguel Alatzar
1d3379c32e
[MM-20138] Slice markdown table ( #3571 )
...
* Preview markdown table as 5x5 max
* Make linter happy
* Determine max columns from device width
* Add snapshot test
* Use Dimensions and update unit tests
* Remove async
2019-11-20 03:27:55 +08: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
Andre Vasconcelos
1413e66c36
GH-11948 Adding expand button to markdown tables ( #3280 )
...
* WIP: Adding expand button to markdown tables
* Moving padding to styleSheet
2019-10-08 18:55:08 -07:00
Matheus Cardoso
26b999e885
MM-17759 Add code highlighting ( #3072 )
...
* Add code highlighting
* Fix code style
* Add unit tests
* Some layout adjustments and code style fixes
* Fix failing test
* Fix typo
* Fixed import style
* Update snapshot
* Fix test
* Remove comment
* Add react-native-syntax-highlighter to NOTICE.txt
* Remove duplicated key
* Fix color issue on Android
* Remove unnecessary style
* Fix top spacing on Android
* Add missing trailing comma
* Revert highlighting in Android full-screen code
* Fix margins on android full-screen code
* Fix top padding on Android full-screen code
* Fix font size on Android full-screen code
* Improve top spacing on iOS full-screen code
* Update package-lock.json
* Update package-lock.json
* Update react-native-syntax-highlighter
* Revert away code highlighting on Android code block
2019-09-30 22:52:45 +08: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
6cf6e51457
[MM-17709] Avoid async getSource ( #3115 )
...
* Await getSource
* Use server url from EphemeralStore
* Set currentServerUrl in getAppCredentials too
2019-08-14 16:07:12 +05:30
Elias Nahum
e87858d7af
Various fixes ( #3078 )
...
* MM-17588 Remove navigation component from stack
* MM-175986 Fix Clock Display Settings on iOS
* Fix markdown and team icon currentServerUrl
* Fix closing permalink logs out the user
* Fix file attachment document ref
* Fix applyTheme when changing a theme in the app
* Feedback review
* remove / when fetching the image on the markdown table on relative paths
2019-08-08 22:28:07 +08: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
2abf044193
Show broken image for inline images without dimensions ( #2868 )
2019-06-06 15:14:32 -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
Elias Nahum
a16c98b34e
MM-15428 Return empty object for native managed configuration when not set ( #2770 )
2019-05-06 09:20:08 -07:00
Elias Nahum
6eeb830662
Use of cached managed config in components ( #2758 )
2019-05-01 18:34:09 -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
Yusuke Nemoto
d852e0991f
Support MinimumHashtagLength setting ( #2583 )
...
* Support MinimumHashtagLength setting
* Set default value if missing
2019-03-22 14:06:02 -03:00
Yusuke Nemoto
e1e1e7cf53
Highlight CJK mention keywords in sentense ( #2590 )
2019-03-07 22:04:10 +08:00
Saturnino Abril
8a4c6de86f
fix intermittent crash when selecting a link ( #2620 )
2019-03-05 02:28:40 +08:00
Saturnino Abril
f88c2e2a00
[MM-13295] Make channel link clickable for user who's not member of the public channel ( #2466 )
...
* Make channel link clickable for user who's not member of the public channel
* update per review
* update per comment
* remove setChannelDisplayName
2019-02-20 01:45:04 +08:00
Chris Duarte
ffe6b9e2ef
Deep linking based on channel url; Fix merge conflicts ( #2542 )
...
Code cleanup
2019-02-14 13:29:57 -05:00
Dean Whillier
7eb434b256
[MM 13934] Prevent blank mention keys from crashing the app ( #2570 )
...
* don’t match blank word boundaries
* test for blank mention keys
* Check for blank mention before looking for match
* account for multiple spaces as a blank mention
2019-02-13 15:05:52 -08:00
Elias Nahum
3db8604102
Add support for relative permalinks ( #2555 )
2019-02-08 22:54:26 +08:00
Harrison Healey
ff51501b0c
MM-11232 Fix table column width to better support wide tables ( #2467 )
...
* MM-11232 Fix table column width to better support wide tables
* Fix horizontal scrolling on Android
2019-01-07 13:53:04 -05:00
Elias Nahum
19f261a768
Fix copy markdown link ( #2449 )
2018-12-12 09:36:06 -03: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
Saturnino Abril
d8abeabd70
[MM-12353] Add feature to render jumbo emoji and unwrapped Emoji component with Text when rendering message containing emoji/s only ( #2356 )
...
* add feature to render jumbo emoji/s
* fix bottom clipping of emoji on Android
* updated per feedback
2018-11-22 11:56:27 -05:00