Commit graph

105 commits

Author SHA1 Message Date
Martin Kraft
b4ca6421a0 MM-11318: Expands shortened links inline. (#1993)
* MM-11318: Expands shortened links inline.

* MM-11318: Accepts only image/* mime types. Switches to HEAD request.

* MM-11318: Fix for YouTube links.

* MM-11318: Renames function because it handles non-images.

* MM-11318: Checks for unmounted. Doesn't request known youtube redirects.
2018-08-24 15:02:07 -04:00
Elias Nahum
830132bc38
Add a timeout to avoid race conditions when opening the app from a push notification (#2015) 2018-08-17 08:55:35 -03:00
Elias Nahum
1ec8dd4577
Fix video playback when filename contains spaces (#1997)
* Fix video playback when filename contains spaces

* Feedback review
2018-08-13 10:19:29 -03:00
Harrison Healey
34a37cef05 MM-11477 Ensure client calls are wrapped with error handling (#1976) 2018-08-07 13:11:48 -04:00
Harrison Healey
979b80d34f MM-11477 Fix error in breadcrumb generation and parse URL correctly (#1977) 2018-08-07 13:05:59 -04:00
Harrison Healey
b01849be39 MM-11477 Attempt to capture uncaught redux errors as Sentry breadcrumbs (#1974) 2018-08-07 10:32:04 -04:00
Chris Duarte
26950abb61 Add deep linking support (#1805) 2018-07-31 08:43:54 -04:00
Elias Nahum
b47c7db4dc
Fix cropped images (#1936)
* Fix cropped images

* Unit tests
2018-07-20 13:34:46 -04:00
Harrison Healey
d410b1eed3 MM-11324 Added defensive code to hashCode function (#1925) 2018-07-13 22:25:10 +05:30
Elias Nahum
7e90c8ee06
Merge pull request #1908 from mattermost/release-1.10
merge Release 1.10 into master
2018-07-09 19:12:39 -04:00
Elias Nahum
01792f2b54
Handle bad state (#1903)
* Upgrade mattermost-redux

* Check if url start with http before pinging

* Remove required status prop in settings sidebar

* Prevent the app to get into a bad state and if that happens try and recover
2018-07-09 18:33:13 -04:00
Elias Nahum
91a4abbd24
Fix race condition when opening the app from push notification (#1898) 2018-07-09 16:15:50 -04:00
Elias Nahum
f157084ad2
Fix replying from push notification (#1894) 2018-07-09 14:59:19 -04:00
Elias Nahum
5bf248d5c4
Fix getting the youtube video id (#1890)
* Fix getting the youtube video id regardless where the id is defined in the link

* feedback review

* Simplify and add unit tests for getYouTubeVideoId
2018-07-05 15:02:34 -04:00
Elias Nahum
07367aa802
Merge branch 'release-1.9' into merge-1.9 2018-07-03 11:24:02 -04:00
Elias Nahum
8c066e0ba3 Attempt to fix some crashes (#1860)
* Attempt to fix some crashes

* remove unnecessary shareExtensionData middleware
2018-07-03 10:14:55 -04:00
Elias Nahum
dbb6f16e92
Fetch posts when receive push notifications as soon as possible (#1811) 2018-06-27 12:08:00 -04:00
Stan Chan
583d6b74ee Timezone feature (#1456)
* Add automatic and manual timezone support

Update users timezone and scrollTo selected timezone in SelectTimezone coponent

Clean styles for SelectTimezone screen

Add auto-timezone update when login or enter app

Hide timezone feature behind config

Fix requested changes

Parse SupportedTimezone from config

Add localTime and localized post stamps

Add trailing commas

Include all timezone util methods from redux

Remove EnableTimezoneSelection flag

WIP get timezones from server

Pull supportedTimezones from api

Minor fixes

Remove wrapWithPreventDoubleTap

Revert back to react-intl formatDate

Include timeZone prop in FormattedTime

Refactor Timezone row into component

Minor cosmetic changes

Add minimum server support for the timezone feature

Move getSupportedTimezones to componentWillMount

Move autoUpdateTimezone function to handleSuccessfulLogin

Specify user timezone in profile_header

Remove format props from FormattedTime

Add ExperimentalTimezone flag

Replace Client().getServerVersion() with entities.general.serverVersion

Add isTimezoneEnabled helper function

Move isMinimumServerVersion to utils/timezone.js

* Fix style errors

* Remove date-time-format-timezone polyfill

* Feedback changes

* Use timezone selector from redux

* Explicitly pass hour12 props to intl.formatDate

* Update package-lock

* Revert iOS project file changes

* Fix license header

* Include timezone related paths in modulePaths

* Fix license header

* Fix minor issue with rebasing

* Fix issue with getconfig in GeneralSettings

* Update package-lock
2018-06-27 06:55:03 -04:00
Elias Nahum
375c41dc3c
Merge branch 'release-1.9' 2018-06-25 15:31:46 -04:00
Harrison Healey
599fa7b4e1 MM-11018 Provide default message for Sentry breadcrumbs (#1819) 2018-06-25 11:25:31 -04:00
Chris Duarte
1a3558bc5e Auto responder feature (#1500)
* Add Auto Responder support

Add Auto Responder message support for <Post/>

Add Out Of Office support

Add Confirmation dialog for Out Of Office status reset

Fixing styling issues

Ensure AutoResponder is enabled in settings with ooo status

Save AutoResponder according to Out Of Office status

Fix copy for AutoResponder hint

Fix eslint errors

* Add constants from Redux

* Small refactor

* Add name consistency with the feature "auto responder"

* Add minimum server version of 4.9 for AutoResponder support

* Add ViewTypes.PROFILE_PICTURE_SIZE in post_profile_picture

* Add ExperimentalEnableAutomaticReplies flag

* Update copy and auto responder styles

* Remove unwanted imports

* AutoResponder feauture in 4.9

* Add AutoResponder Thread support

* Fix OOF copy from review

* Change copy for Auto Responder

* Address feedback

* Fix license headers

* Status name translated in Alert

* Add umbrella icon for AutoResponder

* Fix minor issues with rebase

* Fix License headers
2018-06-22 13:09:37 -04:00
Elias Nahum
7b18047800
CBA support for iOS (#1767)
* CBA Support

* cba support for iOS Share extension

* Autologin with credentials

* Set initial config for ExperimentalClientSideCertEnable as false

* Fix mattermost-redux to cba branch

* feedback review

* Fix eslint
2018-06-19 19:35:42 -04:00
Jesse Hallam
8372e95d4a add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
Chris Duarte
483819aa95 Ping server after setting app offline/online. Also include timeout (#1739)
* Ping server after setting app offline/online.  Also include timeout

* Add missing semicolon
2018-06-08 14:16:48 -04:00
Chris Duarte
c63ca6a7e0 Ping server after setting app offline/online. Also include timeout (#1739)
* Ping server after setting app offline/online.  Also include timeout

* Add missing semicolon
2018-06-07 14:47:09 -04:00
Harrison Healey
861b46d605
MM-9547 Added CustomUrlSchemes option (#1718)
* MM-9547 Added CustomUrlSchemes option

* Switched mattermost-redux back to master
2018-06-04 10:25:34 -04:00
Elias Nahum
cf3683272e Entry screen and Channel Loader improvements (perf part 4) (#1707)
* Entry screen and Channel Loader improvements

* Feedback review

* Removed unnecessary style array
2018-05-29 10:58:06 -04:00
Elias Nahum
8e0d167f95 Fix push notification and emm race conditions (#1691)
* Fix push notification and emm race conditions

* feedback review

* Removed unnecesary code
2018-05-22 11:02:14 -04:00
Chris Duarte
e8712f9199 Cold startup js refactor (#1598)
* Switch to SingleDex and remove all locales

* WIP Mattermost Start Component for lazy loading modules

* Add files changed for native modules

* Add Entry component and app global object

* dispatch setStatusBarHeight for iOS

* Update screen imports

* Include Entry screen

* Refactor app to mattermost.android.js

* Override unnecessary java files

* Fix minor issues in changes

* Display empty state based on user credentials

Also, add proper background theme for empty loading screen

* Add native module constant cache support

* Fix startup theme regression

* Add Keychain support for credentials

* Fix Orientation regression

*  Fix SharedExtension regression

* Emit NATIVE_APP_LAUNCHED across bridge only once during cold start

* Add iOS Support

* Revert to previous implementation of i18n

* Fix styling issues

* Include listener for SERVER_VERSION_CHANGED

* Add SafeAreaView in Entry screen

* Register deviceToken early, in order to get iOS PN Support

* Include StartTimeModule

* Add ReplyFromPush support and remove NATIVE_APP_LAUNCHED listener

* Package native constants in StartTimeModule and avoid bridge calls

* Fix check-style errors

* Code cleanup

* Rename StartTimeModule to InitializationModule

* Remove NavigationApplication

* Documentation and minor changes

* Account for app opening after SharedExtension

* Refactor getIntl to getTranslations

* Move native module constants into it's own forked repos

* Include FetchBlob and DeviceInfo forked repos
2018-05-18 17:13:00 -04:00
Harrison Healey
5884bd4dc1 MM-10617 Fixed checking if a link is an image (#1681)
* MM-10617 Fixed checking if a link is an image

* Added unit tests
2018-05-18 01:10:17 +08:00
Elias Nahum
aebe22f58d
Fix Android sharing files without extension (#1646) 2018-04-30 11:57:24 -03:00
Elias Nahum
f704d79e72
Merge branch 'release-1.8' 2018-04-27 22:49:49 -03:00
Harrison Healey
4ebff99360 Fix profile images (#1643)
* Attempted to fix profile pictures on Android

* Fixed uploading profile pictures

* Added warning when ImageCacheManager.cache is called without callback

* Fix image cache so the files are not too long
2018-04-27 21:36:33 -03:00
Elias Nahum
80dd9366a1 Update Dependencies (#1641)
* Update dependencies including react-native

* Update react-native-circle-progress dependency

* Fix prop warnings and possible crashes
2018-04-27 17:49:09 -04:00
Chris Duarte
d9f2bca9c0 Share ext error (#1587)
* Wrap iOS share extension in error boundary component

* Wrap Android share extension in error boundary component

* Review feedback
2018-04-17 15:23:37 -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
e20b84c6d8 Upload progress indicator (#1562)
* Long post support

* Split file upload component

* Use fetch blob fork

* add progress to file upload

* Remove SERVER.PID from Makefile

* Preview only images

* remove unused prop
2018-04-04 09:14:26 -04:00
Elias Nahum
16ccfab7f6 Fix iOS Share Extension Crash and Bump build and version numbers (master) (#1557)
* Fix iOS Extension crash

* Bump app version to 1.7.1 and build to 92
2018-03-29 09:13:27 -04:00
Harrison Healey
8decb29d52 Change to use theme utils from mattermost-redux (#1531)
* Change to use theme utils from mattermost-redux

* Updated yarn.lock
2018-03-25 12:16:33 +03:00
Harrison Healey
84db6d0974 Reverted changes to normalize font size (#1489) 2018-03-07 16:35:44 +00:00
enahum
d0d9103857 [MM-9374] Open Permalinks in app (#1449)
* [MM-9374] Open Permalinks in app

* Feedback review

* Upgrade mattermost-redux

* Fix eslint

* Navigation fixes

* Fixing style of merged lines
2018-03-07 14:48:31 +00:00
Harrison Healey
80c09b588d MM-9647 Replaced usage of preventDoubleTap with wrapWithPreventDoubleTap (#1471)
* MM-9467 Replaced usage of preventDoubleTap with wrapWithPreventDoubleTap

* MM-9467 Renamed wrapWithPreventDoubleTap to preventDoubleTap
2018-03-02 11:22:37 +00: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
Harrison Healey
ede4d22f75 ICU-624 Added markdown tables (#1434)
* ICU-624 Added initial table rendering support

* ICU-624 Added full table view

* Added proper pluralization to +X more lines in code blocks

* ICU-624 Added support for images in tables

* Stopped using injectIntl for tables

* ICU-624 Updated commonmark-react-renderer

* ICU-624 Hid scroll indicator in collapsed table view

* Addressed feedback
2018-02-16 19:31:14 -03:00
enahum
b53f3988b8 [ICU-680] Fix Duplicate posts (#1430) 2018-02-12 14:44:34 -05:00
enahum
418c1ce9ba Update tooltip library (#1426)
* Update tooltip library

* Feedback review

* remove static field
2018-02-12 09:03:05 -05:00
enahum
509fe37f1f
[ICU-676] Make the app extensions follow the max file size that the server accepts (#1411)
* Android Share extension follows server config file size limit

* iOS Share extention follows config file size limit

* feedback review
2018-02-07 18:02:38 -03:00
Stephen Kiers
2444d0f57b
Icu 640 - Fixing RN Font sizes and issues with cutoff fonts (#1402)
* added arrow style functions to eslint

* added padding to text boxes to decrease chance of cutoff

* Removed fontSize prop from Emoji

* base sizes on stylesheet

* normalized font sizes across devices

* minor tweaks

* tweaks

* text to default

* text size relative too

* remove Margintop hack

* Final tweaks

* fixed func name

* fixed scale to always be based on portait mode

* re-added margintop hack

* set Text paddingBottom in markdown file

* Fix style names and setup

* fixed import

* reversed size of edit label

* fix eslint
2018-02-05 13:33:39 -07:00
Elias Nahum
c4ad99d2b8
Merge branch 'release-1.6' 2018-02-02 19:23:48 -03:00
enahum
89e0623e6e Improvements on iOS Share Extension (#1407)
* Improvements on iOS Share Extension

* Switch NSUserDefaults with a file based solution

* create a new entities object instead of mutating

* Clarify the function for requiring emm authentication

* ensure entities is not a shallow copy
2018-02-02 16:48:09 -05:00