Commit graph

506 commits

Author SHA1 Message Date
Elias Nahum
e72bb48d98 Cold-start channel drawer improvements (#1702) 2018-05-24 11:04:24 -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
Elias Nahum
e07a738dcd Remove orientation dependency (#1698)
* Remove orientation dependency

* Update NOTICES
2018-05-23 10:39:23 -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
Saturnino Abril
8cf1f07ad8 fix JS error on announcement banner when no license is set (#1679) 2018-05-18 09:58:49 -04:00
Elias Nahum
8bbc8ddb78 Fix commented on Someone message (#1665)
* Fix commented on Someone message

* Feedback review
2018-05-11 17:14:05 -04:00
Elias Nahum
23ca490525
Ability to upload other file types (#1662) 2018-05-11 18:05:49 -03:00
Elias Nahum
0d92c61a41
Cache team icon and set background to always be white (#1669) 2018-05-11 18:05:16 -03: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
Sudheer
4517fcaa8c Add Loading animation to skeleton screen (#1609)
* Add a view for message with linear gradient,move position
   and change opacity using animation interpolation.
2018-05-03 10:06:08 -04: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
Harrison Healey
29d015bd32 Fixed Markdown links when SiteURL isn't configured (#1650) 2018-05-03 21:08:36 +08:00
Saturnino Abril
8a152ac1e7 convert test runner from mocha to jest (#1637) 2018-04-30 10:55:01 -04: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
Elias Nahum
34205bd05e
Fix upload image to display (#1638) 2018-04-27 13:12:15 -03:00
Saturnino Abril
79a35d25ad [MM-10341] Remove "Add Reaction" on posts of flagged, recent mentions and search results (#1631)
* remove "Add Reaction" on posts of flagged, recent mentions and search results

* set default props to true for showAddReaction
2018-04-26 22:01:26 -03:00
Elias Nahum
8807df1309
Fix white screen of death and code/text preview in iOS (#1627) 2018-04-26 12:23:17 -03:00
Elias Nahum
d58d06d7b2 Make image preview placeholder theme compatible (#1619) 2018-04-25 12:44:29 -04:00
Elias Nahum
252ea21f8c
Fix emoji autocomplete (#1616)
* Fix emoji autocomplete

* Feedback review
2018-04-25 13:40:03 -03:00
Elias Nahum
b016d203d8
Fix mention badges in channel drawer (#1615) 2018-04-24 18:13:13 -03:00
Saturnino Abril
67a19e6c2b
update profile photo on select and/or save (#1614) 2018-04-25 03:19:45 +08:00
Elias Nahum
223bd40703
Fix post with layout to not create new post components (#1611) 2018-04-24 15:01:24 -03:00
Elias Nahum
86840f761c
Render at-mentions by the teammate name display (#1612) 2018-04-24 11:59:05 -03:00
Elias Nahum
825ac75261
Fix initial post list render 2018-04-20 06:36:44 -03:00
Elias Nahum
033a0c15bd
Fix Downloads and previews (#1596)
* Fix downloads and previews

* Update react-native-doc-viewer dependency
2018-04-17 12:10:51 -03:00
Harrison Healey
5a23129a50 Fixed null pointer in ProfilePicture (#1595) 2018-04-17 22:40:09 +08:00
Saturnino Abril
effc99462b fix crash on search (#1594) 2018-04-17 09:23:28 -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
Chris Duarte
676a180067 Fix press username to mention (#1547)
* Fix press username press to mention

* Add cursorPosition to post_textbx state

* Remove unneeded draftSelectionChanged actions and events
2018-04-13 11:15:19 -04:00
Elias Nahum
484a5a11f9 Flagged Posts and Recent Mentions (#1584)
* Fix reply count in post header

* Make channel loader to trigger manually

* post list selector for search

* Include date separators in search results

* Flagged posts

* Recent Mentions

* Retry option for flagged posts and recent mentions

* feedback review

* Update mattermost-redux
2018-04-13 10:26:37 -04:00
Chris Duarte
d6ee97c0c7 Show FlatList when searching in More DM Screen (#1546)
* Set searchbars to autoCapitalize='none'

*  Show flatlist when searching profiles for more dms

* Fix lint errors
2018-04-13 09:03:02 -03:00
Stan Chan
780d05ccbf ExperimentalHideReadOnlyTownSquare config and readonly PostTexbox placeholder (#1476)
* Remove ability to edit town-square and hide post textbox

* Add placeholder to read only TS post textbox.

* Only run townHallFilter if ExperimentalHideReadOnlyTownSquare is true

* Fix eslint errors

* Refactor to use new read only channel selectors

* Change canEditChannel to check if channel is read only

* Fix rebase issues

* Fix lint errors.
2018-04-13 08:21:25 -03:00
Elias Nahum
244ad60525 MM-10016 Globe icon not centered to the channel title in LHS (#1581) 2018-04-12 11:51:19 -04:00
Jesús Espino
f91abf3ea9 Advanced permissions phase 1 (#1571)
* [XYZ-45] New permissions implementation

* Changing mattermost-redux branch in packages.json

* Changed yarn.lock file to point to advanced-permissions-phase-1

* MM-9620: Add reactions permissions (#1451)

* Fixing some code styles warnings

* Fix mobile app to use latest Mattermost redux

* Some merge errors fixed
2018-04-04 18:01:39 +03:00
Elias Nahum
683ebc3faa Select text in the code/text preview screens (#1561)
* Make code and plain text previews selectable

* Support more file formats in text preview

* Fix selection in android
2018-04-04 09:15:23 -04: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
f84d6f76e0
Channel mute style (#1564)
* Channel mute style

* Match opacity change in the webapp
2018-04-04 15:08:12 +03:00
Harrison Healey
1fd94c5ae0 Cherry pick fixes for Sentry issues (#1567)
* Fixed MATTERMOST-MOBILE-ANDROID-85 (#1565)

* Fixed MATTERMOST-MOBILE-ANDROID-87 (#1566)
2018-04-02 23:23:48 +03:00
Michał Odziemczyk
164a5e863c Fix additional GPU overdraw on post list (#1555)
* Fix additional GPU overdraw on post container

* and remove unneeded background color in android's manifest
2018-04-02 12:38:38 -04:00
Elias Nahum
2f27121824 Fix mobile app to use latest Mattermost redux (#1563)
* Fix mobile app to use latest Mattermost redux

* Feedback review
2018-04-02 10:45:16 -04:00
Elias Nahum
a4744e46dd
Fix max length prop to be a number (#1558) 2018-03-30 13:40:39 +03:00
Elias Nahum
6698dbf678 Upgrade to RN 0.54.3 and other dependencies (#1539)
* Upgrade to RN 0.54.2 and other dependencies

* feedback review

* upgrade mattermost-redux

* Update dependencies
2018-03-29 10:05:49 -04:00
Elias Nahum
b3806c04b3 MM-9376 Channel mute (#1540)
* MM-9376 Channel mute

* UI Feedback review
2018-03-29 10:02:23 -04:00
Saturnino Abril
8531212060 [MM-9516] Add feature to add user to channel after at-mention (#1521)
* add feature to add user to channel after at-mention

* update per comment and update mattermost-redux

* move sendAddToChannelEphemeralPost to actions folder

* rebase and fix merge conflicts, do clean up a bit
2018-03-26 13:20:13 -04:00
Saturnino Abril
217c98cab6
fix JS warnings on PostHeader and EditChannelInfo (#1541) 2018-03-26 21:29:22 +08: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
Harrison Healey
30a702274a Minor PostList improvements (#1528)
* Moved ChannelPostList footer out of PostList

* Fixed typo in constant

* Added debounce to loadMorePosts

* Fixed post list footer not being rerendered properly
2018-03-23 17:30:24 +03:00