Commit graph

53 commits

Author SHA1 Message Date
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
9aa7d7e523 Exclude the SafeAreaHeader in Select Server screen (#3094) 2019-08-12 22:58:12 +08:00
Elias Nahum
06e333dc52
MM-10193 Apply SafeAreaView to Landscape views (#3003) (#3081)
* MM-10193 for landscape Feature

Commit for MM-10193 to the landscape feature with latest pull.
This is the initial commit with SafeAreaView in place, but should not be merged into master as this is step one and not suitable for production.
Another commit will be following with adjustments to allow SafeAreaView to display correctly for users.

* MM-10193 for landscape Feature

Commit for MM-10193 to the landscape feature with latest pull.
This is the initial commit with SafeAreaView in place, but should not be merged into master as this is step one and not suitable for production.
Another commit will be following with adjustments to allow SafeAreaView to display correctly for users.

* MM-10193 Extend design elements for iPhoneX SafeAreaViews

This is the second portion of the MM-10193 changes for the landscape feature. This item was to extend the design elements for the application into the SafeAreaView so the application looks uniform on the iPhoneX.

* MM-10193 Patch for Snapshot tests and eslint

* MM-10193 Re-Patch

These chanbes mistakenly got reverted from last Patch

* MM-10193 Updates for PR

Fixed the 4 screens from the text box that were missed.
Updated the padding to run from a method.

* Revert "MM-10193 Updates for PR"

This reverts commit fe8d650ce3ca2828d8c94e4af470649aa2582ec1.

* MM-10193 Updates for PR

This reverts commit 4966d83d5401720d26ca22a55cf8f92f1657b7e2.
Applied Updated Snapshots

* MM-10193 Updated Modifier for iphone_x_spacing

Updated Modifier for iphone_x_spacing

* MM-10193 Updates for Review

Review changes for Post Textbox and a few states that were unavailable.

* MM-10193 Fix Longpress padding

Fixed longpress padding for Channel Info and Edit Post views.

* MM-10193 Update isLandscape

Updated isLandscape to pull directly from dimensions.
Updated padding for Recent Mentions and Flagged Posts.

* MM-10193 Updates for review longpost

Updated for longpost padding.
Fixed issue with notifications not padding right correctly.

* MM-10193 Update with Cleanup

Reverted Cocoapods back to 1.5.3.
Cleaned up spacing in two files.

* MM-10193 Merge Conflict Updates

Updates to resolve merge conflicts
2019-08-09 11:14:38 -04:00
Elias Nahum
c226a3a546
Select server fix login options transition (#2984) 2019-07-18 10:56:31 -04:00
Miguel Alatzar
55964d2fda
Add placeholderTextColor when using placeholders (#2976) 2019-07-17 12:56:25 -07:00
Miguel Alatzar
51aac1e6e7 Merge branch 'master' into rnn-v2 2019-07-02 18:15:19 -07:00
Elias Nahum
20bcb9d44a
Allow the server url to be cleared (#2942)
* Allow the server url to be cleared

* Remove getDerivedStateFromProps
2019-07-02 10:33:40 -04:00
Elias Nahum
89b96d51db MM-16430 refactor app entry point (#2924)
* MM-16430 refactor app entry point

* iOS Extensions to use session token from KeyChain

* Remove token from general credentials entity

* Fix mattermost-managed.ios to return the cachedConfig

* Migrate server based keychain for android push notifications

* remove unneeded async

* Remove unneeded android InitializationModule
2019-06-26 15:21:20 -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
Miguel Alatzar
50a738a702 [MM-16009] Update screens that can be displayed prior to the Channel screen. (#2887)
* Update screens

* Update login tests

* Remove done

* Fix failing tests
2019-06-19 15:42:27 -04:00
Miguel Alatzar
7d67f1214e
[MM-16008] Update setNavigatorStyles and replace setOnNavigatorEvent (#2877)
* Update setNavigatorStyles

* Replace navigator.setOnNavigatorEvent and callbacks

* Update unit tests

* Save user notify props on componentWillUnmount

* Add TODOs about removing componentDidAppear/setNavigatorStyles

* check-styles fix

* Fix eslint errors
2019-06-14 08:14:26 -07:00
Miguel Alatzar
2e423a9f64 Fix navigation top bar style (#2885) 2019-06-14 10:06:14 -04:00
Harrison Healey
73792d5526 MM-16011 Update navigation through Login and Channel screens (#2870)
* Update navigation through Login and Channel screens

* Stop using static options and mergeOptions

* Update unit tests
2019-06-11 18:10:14 -04:00
Saturnino Abril
e086d66ec2
[MM-13955] Add telemetry for Android (#2719)
* add markers for Android profiling

* update per comments

* Remove beta build flag

* update per comment, latest change on telemetry server and others

* rebase and fix merge conflicts, and update per comments

* update commit hash of mattermost-redux
2019-05-08 00:23:59 +08:00
Saturnino Abril
e3b4191af9
[MM-14619] Remove Client4.online and related setOnline function (#2718)
* remove Client4.online and related setOnline function

* update mattermost-redux commit to 16a39c671193db23006d848c7866adbb5cae6901
2019-04-24 00:34:34 +08:00
Elias Nahum
a941ce5fff Add Office 365 login support (#2628) 2019-03-11 15:28:59 +05:30
Elias Nahum
3feaa8e6bb
iOS Native Share Extension (Swift) (#2575)
* iOS Native Share Extension (Swift)

* Re-arrange files

* Fix .gitignore
2019-02-26 14:31:57 -03:00
Elias Nahum
88f5848850
Dependencies update (#2576)
* Dependencies update

* Fix WebView

* Update to RN 0.58.5 and include the WebSocket fix

* Update react-native-video

* Fix RNFetchBlob
2019-02-20 17:17:04 -03:00
Chris Duarte
f4761860a1 Don't show confusing versioning message in "Check for Updates" screen when using a beta/testing build or platform config hasn't been updated for prod (#2556)
UI doesn't update when NO_BETA is set
2019-02-20 01:11:41 +05:30
Elias Nahum
b9f55dcb60 MM-13337 Fix EMM connections using VPN on-demand (#2558)
* Fix EMM connections using VPN on-demand

* Update package.json

* Update package-lock.json
2019-02-11 10:22:31 -08:00
Elias Nahum
23e58f2ea1 MM-13830 Ensure schedule of session expired notification (#2554)
* Ensure schedule of session expired notification

* feedback review

* passing intl instead of message
2019-02-07 13:42:26 -08:00
Elias Nahum
9a5122c19c
Slide up panel for reaction list (#2285)
* Slide up panel for reaction list

* Feedback review

* UI Feedback review

* Feedback review

* Improve slide speed and fix end position

* Scroll to top when changing reaction view

* dismiss modal without animation so backdrop does not scroll down

* Smooth animation to show/hide

* Change animation speed
2018-11-02 13:21:43 -03:00
Elias Nahum
2968b0da7a
Fix KeyboardAvoidView for android (#2226) 2018-10-09 11:54:31 -03:00
Jesús Espino
8884293b18 Add t() translation mark to i18nable strings and update translations (#2026)
* Add t() translation mark to i18nable strings and update translations

* Small fixes

* Adding  to the packager

* Rebase fixes

* Added missed texts
2018-09-21 11:25:38 -03:00
Elias Nahum
637ca9244a
Update RN to version 0.57.0 (#2131) 2018-09-20 19:05:41 -03:00
Elias Nahum
a14a220d14
Gracefully handle http and https redirection (#2044)
* Gracefully handle http and https redirection

* tests

* Feedback review

* Default retry to true
2018-08-29 16:00:35 -03:00
Elias Nahum
96e9c6c707 Update rn-fetch-blob and CBA support for iOS (#2033)
* Update rn-fetch-blob and CBA support for iOS

* remove trusty

* remove react-native-fast-image dependency
2018-08-29 14:01:37 -04:00
Harrison Healey
dee530cce7 MM-11116 Re-added updated QuickTextInput component to work around RN issue (#1859) 2018-07-02 09:09:31 -04:00
Jesse Hallam
ae6ce503c3 MM-10990: allow a pathname when selecting a server (#1795) 2018-06-21 16:34:06 +08: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
Elias Nahum
c171ae4809
Enable Android Unbundle strategy (perf part 2) (#1700)
* Enable Android Unbundle strategy

* feedback review

* Update modulePaths

* Add npm start and use it in the Makefile

* feedback review #2
2018-05-23 13:23:38 -04: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
Joram Wilander
84a2a0fab8
ABC-123 Add handling for loading custom emojis asynchronously (#1406)
* Add async handling of custom emoji to posts and channel info

* Add server request to emoji autocomplete

* Add custom emoji paging and server search to emoji picker

* Fix android

* Update mattermost-redux and revert temp change

* Backwards compatibility fixes

* Updates per feedback

* Set server version when user is not logged in

* Reset section index when search is cleared or cancelled

* Some small fixes and upgrade mattermost-redux

* Minor sorting changes
2018-02-15 17:38:45 -05:00
Chris Duarte
2051e8a086 ClientUpgrade: Fix bad props reference in close action (#1400)
* Fix bad props reference in close action

* Change closeAction to use closure
2018-02-07 11:01:14 -05:00
enahum
cd80cdfdf4 Fix race condition preventing the app opened from a PN to go to the correct channel (#1398)
* Fix race condition preventing the app opened from a PN to go to the correct channel

* Feedback review
2018-01-31 11:02:02 -05:00
enahum
998a5bdb0d
Fix server url (#1361)
* Fix server url

* Fix offline indicator positioning

* Upgrade mattermost-redux with fix for loading custom emojis

* feedback review
2018-01-18 11:17:03 -03:00
enahum
fff887bf85
Fix login after session expires or is revoked (#1360)
* Fix login after session expires or is revoked

* Feedback review

* Upgrade mattermost-redux
2018-01-18 08:26:46 -03:00
Chris Duarte
2e951cbfca Upgrade to RN 0.50.4 (#1303)
* Update to RN 0.50.4

* Fix intl context in post textbox
2017-12-22 19:39:51 -03:00
Harrison Healey
1f0dd960f6 RN-469 Added the ability to cancel a ping when on the select server screen (#1234)
* RN-469 Added the ability to cancel a ping when on the select server screen

* RN-369 Added i18n strings for new button

* Made sure config and license are downloaded before moving to login screen

* Have SelectServer screen still show connecting while waiting for config

* Don't show SelectServer screen as connected if an error occurs
2017-11-30 20:13:23 -03:00
enahum
e19c76cc4c Fix status bar for Android in server url screen (#1210) 2017-11-27 15:59:52 -05:00
enahum
1a5b6886ef Prevent tap spam for server url, login and MFA (#1211) 2017-11-27 15:59:35 -05:00
Chris Duarte
6b132cc4d0 Allow server to be auto selected from config (#946)
* Allow server to be auto selected from config

* Remove easter egg

* Review feedback 2

* Show the readonly textbox at all times
2017-10-26 09:16:32 -07:00
Chris Duarte
54ddec3d46 Prompt/require user to upgrade to new version (#948)
* Prompt/require user to upgrade to new version

* Update en.json

* Update app message text

* Fix typo and add copyright
2017-10-26 10:45:34 -04:00
enahum
f8414559b2 Improving Performance Part 2 (#1010)
* Remove serverVersion check to allow GitLab login

* Avoid unncessary re-renders on the root screen

* Avoid unncessary re-renders on the options modal screen

* Avoid unncessary re-renders on the thread screen

* Avoid unncessary re-renders on the offline indicator component

* Avoid unncessary re-renders on the channel loader component

* review feedback
2017-10-11 14:36:27 -03:00
enahum
cd5fb71681 Appconfig support for iOS and Android (#856)
* AppConfig support for iOS

* AppConfig support for Android

* Fix typo

* Java feedback review
2017-08-18 12:19:00 -04:00
enahum
f23f8d99df Fix SSO login (#754)
* Fix SSO login

* Update style

* Fix stripTrailingSlashes
2017-07-20 12:50:53 -04:00
enahum
8afd7fe1cd Renaming the bundle and package Ids (#721)
* Renamed to com.mattermost.rnbeta

* Fastlane for release of com.mattermost.rn

* Do not Publish apps directly to production

* Change ios icon format from jpeg to png
2017-07-07 16:37:05 -04:00
enahum
f1c9f1051c RN-36 Update status bar color (#606) 2017-06-08 15:10:59 -04:00