Commit graph

3069 commits

Author SHA1 Message Date
Elias Nahum
c68138150e Fix theme color for the more channel options (#3565) 2019-11-18 23:16:30 +08:00
Valentijn Nieman
759d1ce86d MM-19337 Enable users to view archived channels (#3514)
* Archived channels dropdown in more channels modal

* Rename redux actions for archived channels

* Fixed tests and updated snapshots

* Unit test for search in more_channels

* Use translation for dropdown label

* Minimum server requirement for dropdown

* Use BottomSheet instead of Picker component

* loadPublicAndArchivedChannels action instead of separate channel get actions

* Add styles to StyleSheet

* Update mattermost-redux hash

* Update mattermost-redux hash

* Default case for switching channels dropdown

* Improve imports in more_channels.js component

* Fix typo in import

* Add padding to dropdown if landscape

* Update snapshot

* Page counter for public and archive channels

* Updated mattermost-redux commit hash

* Bottom sheet title for ios

* i18n-extract for new showArchived and showPublic strings

* Update mattermost-redux commit hash to latest master
2019-11-18 22:38:30 +08:00
Elias Nahum
17a7054ae6 MM-19993 Fix Channel spinner is black on dark theme (#3558) 2019-11-18 22:04:52 +08:00
CJ
0204722627
MM-19037 Updated Progressive Image Loader (#3414)
* MM-19037 Updated Progressive Image Loader

Set the return for the listener to return a null for hte loader images, stopping the component from thinking it had a loaded image on a failure.

Also enabled the thumbnail to make an additional attempt to load when it receives the null response.

* MM-19037 Updated Eslint

Eslint issue resolved

* MM-19037 Add Unit Tests

Added Unit tests

* empty commit
2019-11-17 23:35:44 -05:00
Kaiden Sin
a1c8a4691e [mm 15792] Fix massive app slowdown with many emojis (#3209)
* [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

* Run npm install react-native-fast-image --save

* Link react-native-fast-image for Android

* Link react-native-fast-image to iOS Pod

* Replace Image with FastImage in emoji.js and remove redundant caching

* Remove duplicate sentry gradle

* Feedback review

* Remove FastImage and Sentry from the Podfile
2019-11-17 23:34:39 -05:00
CJ
c7cdce01fa MM-18054 Checked for prev post comment line (#3523)
* MM-18054 Checked for prev post comment line

Added check for prev post to stop the "Commented on" line when in same thread.

* MM-18054 Added Unit Tests

Added Unit Tests

* MM-18054 Update props

Updated the prop for isFirstReply
2019-11-17 20:33:14 -08:00
Elias Nahum
c5cf784c76 MM-19600 Align Sidebar separator line between Teams and Channel view (#3559) 2019-11-17 15:02:04 -07:00
Amit Uttam
66a6e5c932 [MM-10813] Design update for Post attachments (#3511)
* [MM-10813] Design update for Post attachments

Fixes https://github.com/mattermost/mattermost-server/issues/12841

* Updated visual treatment for Post attachments (images, documents, videos)
* Grouped image attachments, expanding to fit Post width dimension
* Itemized listing of non-image attachments
* Special handling of "small" image attachments (<48 point width/height)

* Set attachment post width to max width of portrait orientation

Accounts for post display offset and extra spacing used for rendering post replies.

* Use available Post real estate: flex: 1 instead of width 100%

* Image spacing responsibility: AttachmentList -> AttachmentImage

* Fit download progress circle correctly over new attachment icons

* Layers progress circle over the icon, rather than under.
* Uses offset constant as far as possible, rather than fixed point spaces.

* Refactor props and 'more' counting for image file attachment(s)

* Implement conditional gutter between image attachments

Flex's `justifyContent: space-between` won't work in this case because of the use of `absoluteFill` and `paddingBottom: 100%` in the box placeholder for an image attachment to auto-fill *all* available flex space.

* Additional snapshots for Post file attachment scenarios

* Use new 'text' icon for text files (.txt, .rtf)

Depends on https://github.com/mattermost/mattermost-redux/pull/979

Even without the change to mattermost-redux above, text files will default to pre-existing "code" icon.

* Set file attachment icon background to theme

Default to transparent. Override if explicitly specified.

* Treat animated GIFs as images when auto-adjusting attachment width

* Fix images layout, progressive image margins, and gallery for images and videos

* fix on iPad (splitview, permanent sidebar) card types and image sizes

* Add all files back to the gallery
2019-11-15 22:41:09 -05:00
CJ
82d4d88ea5 MM-19697 - Fixed CameraRoll for iOS (#3537)
* MM-19697 - Fixed CameraRoll for iOS

Switched CameraRoll over to the react-native-community version as it was removed from the core package with RN 0.61.2

* MM-19697 - Fix Jest issues

Updated for jest issues
2019-11-15 09:55:08 -05:00
CJ
7f031d9b55 MM-19696 Added font color for GlobalStyle Input (#3536)
Added the default color #3d3c40 for the GlobalStyle Input that the Server select and Login screen used for style.
2019-11-15 17:25:25 +08:00
Elias Nahum
6610a51a3d Fix partially shown drawers when orientation change on iOS (#3555) 2019-11-14 20:21:17 -07:00
Christopher Speller
96b78adf45
Adding ability to disable attachment buttons and fields. (#3541)
* Adding ability to disable attachment buttons and fields.

* Revert package lock

* Use changeOpacity
2019-11-14 10:32:08 -08:00
Elias Nahum
6e3e7a1ab6 MM-19961 Sync persisted channels with the ones returned by the server (#3553) 2019-11-13 19:02:34 -07:00
Harrison Healey
ef162ce403 Merge branch 'master' into mark-as-unread 2019-11-13 19:34:06 -05:00
Elias Nahum
37e715ac8a
Bump app build number to 245 (#3551) 2019-11-13 14:46:30 -05:00
Elias Nahum
dc830c56be
MM-20149 Fix marking channels as read (#3549)
* MM-20149 Fix marking channels as read

* empty commit
2019-11-13 13:38:20 -05:00
Harrison Healey
c37b921f47
MM-19482 Stop rendering New Messages line differently for manually unread channels (#3524)
* MM-19482 Stop rendering New Messages line differently for manually unread channels

* Update mattermost-redux
2019-11-13 10:48:49 -05:00
Elias Nahum
e5e3bcc844
Bump app build number to 244 (#3548) 2019-11-12 18:45:43 -05:00
CJ
78cbcf1437 MM-19966 Fixed Notification Settings (#3535)
* MM-19966 Fixed Notification Settings

Fixed the save functionality for props. There was a change to combine notification settings that then did a deep comparison on two like objects. This change makes the comparison of the newly changed notification props and the previous props.

* Fix unit test
2019-11-12 17:48:14 -05:00
Miguel Alatzar
04210b8a14 [MM-19968] Ensure SELECT_CHANNEL_WITH_MEMBER is dispatched when app opened from a push notification (#3533)
* Dispatch SELECT_CHANNEL_WITH_MEMBER

* Call handleSelectChannel with true when from any push notification

* Always dispatch SELECT_CHANNEL_WITH_MEMBER with passed channelId

* Add missing comma

* Update unit tests

* Fix makrChannelViewedAndRead call
2019-11-12 17:45:11 -05:00
Harrison Healey
1593c62750 Merge branch 'master' into mark-as-unread 2019-11-12 15:51:41 -05:00
Harrison Healey
ddea1dedbe MM-19812 Properly handle in-app update_badge notifications (#3531) 2019-11-11 12:46:24 -07:00
Miguel Alatzar
5360989336 [MM-19927] Fix launching app from push notification on iOS (#3527)
* Call getInitialNotification on configure

* Mock getInitialNotification
2019-11-07 14:47:52 -05:00
Harrison Healey
e69bec46a9 Merge branch 'master' into mark-as-unread 2019-11-07 11:22:55 -05:00
Miguel Alatzar
f2c47def31
[MM-19841] Keep currentTeamId and team theme preferences when resetting state (#3519)
* Keep currentTeamId and team theme preferences

* Missing semicolon

* Update mattermost-redux commit
2019-11-06 15:00:50 -07:00
Harrison Healey
cf8e807e3f Merge branch 'master' into mark-as-unread 2019-11-05 11:27:59 -05:00
Elias Nahum
e848d8ea6e
Update unsigned android and ios builds (#3508)
* Update unsigned android and ios builds

* Fix attach_workspace path

* attach_workspace to ~/

* Remove unnecessary exit 1
2019-11-05 08:44:36 -03:00
Elias Nahum
5540c99a28
Bump app build number to 243 (#3522) 2019-11-04 22:29:02 -03:00
CJ
a5b4375aa5 MM-19599 Updated Channel Nav Bar height (#3509)
During the landscape changes from the previous release, I had added 8px of padding to the iOS landscape, which caused this issue to occur. This change reverts the added padding so that the height matches across the screens for the navigation bar.

To note, react-native-navigation is used for the info/thread headers and there is no way to adjust the height of this without replacing the header entirley.
2019-11-04 17:29:50 -07:00
Elias Nahum
11ddd66809 MM-19853 Fix iOS SafeAreaView for Server URL screen (#3513) 2019-11-04 14:59:23 -07:00
Harrison Healey
af2e8b7795 Merge branch 'master' into mark-as-unread 2019-11-04 15:08:49 -05:00
Deepak Sah
9708fb583c [MM-18768] Remove deprecated lifecycle methods from channel info (#3377)
* Removed deprecated method componentWillReceiveProps

* Moved updateChannelRequest to state

* Added static to getDerivedStateFromProps method

* Fixed build errors

* Removed getDerivedStateFromProps and Refactored code

* updating updateChannelRequest inside state

* Added getDerivedStateFromProps

* Refactored code
2019-11-04 09:49:14 -05:00
Miguel Alatzar
0ab53505af
Ensure setNavigatorStyles is called with Channel componentId (#3515) 2019-11-03 12:04:05 -07:00
Elias Nahum
b2f14a27f1
deploy-to-store job attach_workspace in home directory (#3506) 2019-10-31 13:23:02 -03:00
Elias Nahum
5631c54403 circleCI change persist root from / to ~/ (#3503) 2019-10-31 11:48:15 -04:00
CJ
42560ca047
MM-18934 Fix padding on image attachment border (#3466)
* MM-18934 Fix padding on image attachment border

Removed padding from image padding as it was pushing the images outside of the box.

* MM-18934 Add spacing between border and image

Added a margin to progressive image to allow for a spacing with the absolutefill

* MM-18934 Fixed eslint

Fixed eslint issues
2019-10-31 11:29:08 -04:00
Maria A Nunez
8f4d5ad260 Reverted mention color to user linkColor (#3472) 2019-10-31 08:27:16 -07:00
Dean Whillier
b5dbb14375
Bump app build number to 242 (#3501) 2019-10-31 10:29:52 -04:00
Harrison Healey
d59b62daf8 Merge branch 'master' into mark-as-unread 2019-10-31 09:15:13 -04:00
Hossein Ahmadian-Yazdi
6f2cc3b5df
Updated PR Template (#3499) 2019-10-31 07:33:09 -04:00
Miguel Alatzar
7ee5e93f8b
Fix failing snapshots (#3498) 2019-10-30 17:03:30 -07:00
Maria A Nunez
7c50b805fe
MM-19759 - Added TOS and Privacy Policy default links in About… (#3491) 2019-10-30 14:11:14 -04:00
CJ
e4fdc5787d Redux Hash Updated (#3493) 2019-10-30 10:56:32 -07:00
Elias Nahum
c8ee8fc2dd MM-19733 fix posts getting behing post text box in thread screen (#3480)
* MM-19733 fix posts getting behing post text box in thread screen

* Update app/components/safe_area_view/safe_area_view.ios.js

Co-Authored-By: Miguel Alatzar <migbot@users.noreply.github.com>

* Update app/components/safe_area_view/safe_area_view.ios.js

Co-Authored-By: Miguel Alatzar <migbot@users.noreply.github.com>

* Small refactor

* Fix snapshot test after merge
2019-10-30 11:37:26 +01:00
Harrison Healey
4c1a60db5b Add Android Studio settings to .gitignore (#3492) 2019-10-30 08:09:22 +01:00
Elias Nahum
f16d8baf46 MM-19731 Fix at-channel autocomplete to return out of channel mentions (#3477)
* MM-19731 Fix at-channel autocomplete to return out of channel mentions

* profiles not in channel test deleted use case

* fix typo
2019-10-29 22:22:28 -04:00
Miguel Alatzar
a142e8e168
Include previous notify props when saving new ones (#3482) 2019-10-29 16:43:39 -07:00
Harrison Healey
f86a760a3e Merge branch 'master' into mark-as-unread 2019-10-29 14:12:50 -04:00
Miguel Alatzar
091977b642 Add SwimeProxy to Compile Sources (#3490) 2019-10-29 14:12:36 -04:00
Harrison Healey
a0a1226e66 Merge branch 'master' into mark-as-unread 2019-10-29 12:40:48 -04:00