Commit graph

308 commits

Author SHA1 Message Date
Andre Vasconcelos
7bd000d794 GH-11952 Adding option to convert public channel to private (#3230)
* Adding option to convert public channel to private

* Added unit tests, feedback alert with error handling, and new alert text

* Ensuring baseProps is never changed between channel_info tests

* Trimming the display_name on alerts

- Preventing extra empty spaces from being displayed on the alerts by trimming the variable
2019-09-23 18:39:15 -07:00
Miguel Alatzar
4dc3c2d55b Update en.json (#3270) 2019-09-19 01:21:17 +08:00
Ewe Tek Min
0d1fd78263 MM-9599 Paste image from clipboard (#3084)
* Show image paste menu

* Get pasted image

* Add more info for file

* Add custom text input and add extension

* Dismiss contextual menu after paste image

* Group image info together

* Add max file check

* Fix max file size text

* Add PropTypes

* Add support for gif and tiff

* add onchange null check

* Use onPaste event

* Move get image info logic

* Clean up listener when no observer

* Add android upload

* Copy file from google docs

* Clean up file after upload

* Prevent text pasted in textbox if it's content uri

* Rename paste file thread

* Move on paste listener logic

* Remove the redundant data in ios

* Get realpath of item

* Clean up

* Only download for image

* Rename to custom text input

* Update RNPasteableEditTextOnPasteListener.java

* Handle for download image failed

* Fix eslint

* Fix test

* Allow multiple images to be pasted

* Remove additional null check

* Add managed control for Android

* Disable only copy, cut and paste

* Accept image in Android edit text

* Add comment for custom text input

* Do not upload when more than max file

* Stop uplaod when exceed file size

* Fix crash when clip data is null

* Return error to JS

* Move download file logic

* Remove console

* Add some tests

* Add test for handleUploadImages

* Add test for file_upload_item

* Use ImageCacheManager to cache remote images

* Fix crashes from one note

* Remove commented code

* Update test
2019-09-16 20:10:14 -03:00
Eric Sethna
2c4764bc88 Update session expiry push notification text (#3211)
* Update session expiry text

* Calculate the session expires in days to be displayed in the local notification

* Feedback review
2019-09-16 12:01:10 -07:00
Elias Nahum
19e6b2a00e
[MM-18362] Sidebar improvements (#3223)
* sidebar lists displays past bottom safe area insets

* Sidebar animation speed

* Sidebar improvements

* Add status icons and avatars to mattermost font

* Bot icon the same size as other channel icons

* improvements to the channel badge

* Badge color and border

* More precision when showing more unread above

* Improve GM icon

* Fix badge on team sidebar

* Align channel sidebar badges

* alignments

* Fix tests

* Remove unnecessary isLandscape in main sidebar connector
2019-09-16 13:17:48 -03:00
Harrison Healey
6fc8569266 MM-18466 Change recent date separators to yesterday/today (#3245)
* MM-18466 Change recent date separators to yesterday/today

* Add i18n strings
2019-09-14 07:02:51 -03:00
Miguel Alatzar
b795a0bba4 [MM-18361] Style text inputs and post options with theme (#3213)
* Style text inputs with theme

* Add snapshot test

* Use theme for post options background and text colors

* Use theme for post options icon color

* Use theme for reaction list

* Use theme for slide up indicator

* Fix post options localization

* PM Feedback review

* Slideup PM changes and channel edit

* fix tests

* Fix i18n
2019-09-13 10:24:36 -03:00
Devin Binnie
7b6033ba5d [MM-18182] Upgrade redux in mobile (#3243) 2019-09-11 14:54:45 -04:00
Ewe Tek Min
f6c9c950c5 MM-12879 Fix iOS photo/camera permission denied prompt (#2904)
* Update Github issues link

* Update GH issue to permalink

* Add missing comma

* Fix ios not prompting alert after denied photo or camera permission

* Rename permission var

* Update text

* Change to correct text

* Update text for attachement button

* Update text for image_preview

* Fix test

* Integrate react-native-android-open-settings for storage permission denied

* Move react-native-android-open-settings

* Change all default permission denied message

* Revert "Merge remote-tracking branch 'upstream/master'"

This reverts commit 65187f8f98de4943103bdab4b39bd7e1ebd5a220, reversing
changes made to daca425676503a57936a5539b5b5fa68a6c5427e.

* Revert "Revert "Merge remote-tracking branch 'upstream/master'""

This reverts commit c82fa628d5addc1262353539c32b76c6a1130e83.

* Add NSPhotoLibraryAddUsageDescription description

* Fix bad import

* Lazy load react-native-android-open-settings

* Fix indent
2019-09-11 01:18:53 -03:00
Harrison Healey
91a7cb499c
MM-17589 Update "passcode required" help text (#3137)
* MM-17589 Update passcode required help text in share extension

* MM-17589 Update passcode required help text in app
2019-08-23 12:12:22 -04:00
Harrison Healey
0faeb535b9 MM-17425/MM-17683 Disable Send button when sending post (#3099)
* MM-17425/MM-17683 Disable Send button when sending post

* Update snapshot and add tests
2019-08-14 08:29:55 -07:00
Saturnino Abril
ca61faafd5 MM-15218 Open as alert dialog when interactive message is without element (#3088)
* open as alert dialog when interactive message is without element

* add missing translations
2019-08-13 10:16:14 -04:00
Hossein Ahmadian-Yazdi
55bd6a2f7e [MM-13849] Display confirmation box for [at]all and [at]channel (#3028)
* [MM-13849] Display confirmation box for @all and @channel

* [MM-13849] Fetch Channel stats when user changes channel

* [MM-13849] Address PR comments

* [MM-13849] Addressed PR comments

* [MM-13849] Made getChannelStats into it's own statement
2019-08-08 16:21:52 -04:00
Elias Nahum
d230bdac1e
MM-17424 Setting to enable/disable fixed sidebar (#3060) 2019-08-02 13:50:31 -04:00
Asaad Mahmood
06f3511222 MM-13083 - Removing refresh button from some pages (#3010)
* MM-13083 - Removing refresh button from some pages

* Updating test

* Removing unused component

* Updating minor changes

* Updating failed actions import

* Updating post list error screen

* Updating connection issue error message

* Updating network connection messages

* Updating terms of service page

* Updating test

* Updating animations and FailedNetwork component

* Reverting some changes

* Updating channel post list

* Updating requestsed changes

* Updating code changes

* Removing error description
2019-07-29 14:26:24 -04:00
Jesús Espino
ee93e4fa59
Adding guest accounts feature (#2990)
* MM-15059: Restict the permissions for guests (#2791)

* MM-15057: Adding guest badge to identify guest users (#2774)

* MM-15057: Adding guest badge to identify guest users

* Adding Guest tags in the channel title

* Adding i18n translations

* Adding DM and GM guest warnings

* Fixing check-style

* Adding and fixing tests

* Adding i18n text

* Only showing the subtitle when there is enough space

* Addressing new design changes

* Fixing eslint

* Addressing PR comments

* Moving getChannelStats to the handleSelectChannel action

* Adding the guest info in android landscape channel headers

* simplified the guest warning text generation

* Fixing i18n

* Fixing leaving channel behavior for guests (#2989)

* Fixing leaving channel behavior for guests

* Fixing tests and adding a new one

* fixing typo

* Addressing PR comments

* Addressing PR comments

* Fixing tests
2019-07-22 22:14:39 +02:00
Ewe Tek Min
8a9f1f6ccc [MM-14303] Able to copy channel header and purpose (#2923) 2019-07-18 11:09:47 -04:00
Eli Yukelzon
056d5a91b7 MM-15486 - Archived channels appear incorrectly on mobile (#2882)
* properly separate archived channels from 'other'

* make sure fetch is performed to display full list

* reverted unneeded change

* corrected display behaviour

* code cleanup

* redux commit reference updated
2019-06-17 10:22:36 -04:00
Elias Nahum
c3c3d85248
MM-16095 Android share extension to use keychain for authentication (#2876)
* MM-16095 Android share extension to use keychain for authentication

* Remove unnecessary comment
2019-06-15 14:13:54 -04:00
Eli Yukelzon
a6307c5ca6 MM-12320 - Change "about" section references to use the site name when it is configured (#2835)
* Change "about" section references to use the site name when it is configured

* Removed non-english changes

* Removed non-english changes

* cleanup

* Fixed indentation

* destructuring
2019-05-28 08:49:23 -04:00
Harrison Healey
6e099d6a21 MM-15643 Send user to settings when passcode is required (#2836)
* MM-15643 Send user to settings when passcode is required

* Allow access to the managed config in the iOS extensions
2019-05-27 19:38:32 -04:00
Elias Nahum
f7f56e958b
MM-9494 & MM-13888 Tapping execute actions & interactive keyboard dismissal (#2799)
* MM-9494 & MM-13888 Tapping with the keyboard opened executes the action & iOS iteractive keyboard

* Fix tests

* feedback review

* add new line at the end of file

* feedback review and added todo list

* Track interactive dismiss keyboard and set scrollview bounds natively

* Fix snapshots

* Fastlane default to current branch when no BRANCH_TO_BUILD is set

* Set NODE_OPTIONS in ios build script

* Rebind scrollview when channel gets first set of posts

* Keep scrolling momentum on keyboard close

* Update react-native-keyboard-tracking-view

* Fix ScrollView offset with keyboard-tracking

* Fix offset while dragging the keyboard

* Allow action on channel drawer on tablets

* Fix typo

Co-Authored-By: Saturnino Abril <saturnino.abril@gmail.com>

* Fix indentation
2019-05-20 12:02:00 -04:00
Martin Kraft
5f7ab2bf15 MM-15528: Updates to channel info for group-constrained channels. (#2786)
* MM-15528: Adds new group-managed text to channel info header.

* MM-15528: Hides 'Add Members' link if group-constrained.

* MM-15528: Sets member list to view-only if channel is group-constrained.

* Update app/screens/channel_members/index.js

Co-Authored-By: Harrison Healey <harrisonmhealey@gmail.com>
2019-05-13 17:14:47 -04:00
Jason Blais
d51d4e4c9c Update help text for at-here, at-channel, at-all (#2790)
* Update help text for at-here, at-channel, at-all

https://community.mattermost.com/core/pl/kqmabdzqb3df7xx5xjsaosozir

* Update at_mention.js
2019-05-13 11:13:39 -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
kmandagie
b3a586fd57 [MM-12599] Implement assets for Adaptive icons (#2663) 2019-04-26 13:08:15 -07:00
Miguel Alatzar
cb0e4e225a
[MM-14887] Allow only jpeg, png, and bmp profile image uploads (#2715)
* Allow only for jpeg, png, and bmp profile image uploads

* Add file type if missing and update error id

* Update mattermost-redux commit hash

* Point mattermost-redux to latest master commit
2019-04-25 14:27:06 -07:00
Peter Dave Hello
d5a0b50d9a Optimize png image with zopflipng lossless compression (#2682) 2019-04-22 21:57:49 -04:00
Elias Nahum
5183bc4b50 MM-15215 fix crash caused by malformed post textbox localize string 2019-04-18 18:24:36 -04:00
Martin Kraft
58f4346e5d
MM-14417: Add messaging for channel mentions of users not in constrai… (#2711)
* MM-14417: Add messaging for channel mentions of users not in constrained groups.

* MM-14417: Reorder translation.

* MM-14417: Update for new mobile app with old server install.
2019-04-17 10:45:29 -04:00
Jesús Espino
95a9eb9118 Executing translation extraction script (#2703) 2019-04-09 15:24:43 -04:00
Carlos Tadeu Panato Junior
9ae71cf393
add mmjstool as dev dep (#2707)
* add mmjstool as dev dep

* run the mmjstool to fix issues

* add extra line

* update makefile

* update per feedback

* revert strings per request
2019-04-09 15:35:22 +02:00
Courtney Pattison
c3a1e3561e [MM-13381] Added reply to post options (#2665)
* [MM-13381] Added reply to post options

* [MM-13381] Fixes for adding reply to post options

* [MM-13381] Fixed logic for adding reply to post options

* [MM-13381] Fixed canReply logic for post options
2019-03-25 13:29:46 -07:00
Elias Nahum
676babf313
translations PR 20190318 (#2657) 2019-03-20 08:37:34 -03: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
Ryan Wang
f071deb003 [MM-13975] Add Terms of Service and Privacy Policy Links (#2559)
* [MM-13975] Add terms of service and privacy policy links

* [MM-13975] Address comments
2019-02-20 09:08:07 -05:00
Elias Nahum
614e8e32ca
MM-13974 Missing translations (#2549)
* Missing translations

* update snapshots
2019-02-05 19:15:31 -03:00
Daniel Schalla
409d36d375 [MM-13839] Remove possibility to change eMail within mobile app (#2540)
* Make eMail setting read only

* Add translation entry, change wording

* Update wording
2019-02-01 19:34:57 -03:00
Brad Coughlin
ac2bdc9fe3
MM-13876 React Native: Webhook icon is misaligned and bottom edges are cut off (#2536) 2019-01-30 12:17:07 -08:00
Elias Nahum
0cb7227d52 MM-13673 combine reset cache & delete files into one action (#2499) 2019-01-28 09:35:34 -05:00
Daniel Mills
aea4b096e4 MM-13439 change close edit profile window text to Cancel (#2520) 2019-01-28 09:22:13 -05:00
Elias Nahum
53f4288872 translations PR 20190121 (#2518) 2019-01-23 23:52:56 +05:30
Sudheer
e27b57649a
MM-13405 Change warning message to be singular when adding last user to GM (#2478) 2019-01-04 16:49:10 +05:30
Chris Duarte
008d81caab MM-12906 - Add thumbnails to theme selection (#2381) 2018-12-12 09:40:09 -03:00
Tsilavina Razafinirina
92469f2f21 [MM-8404] Channel notification setting for disabling channel mentions (#MM-8404) (#2302)
* Channel notification setting for disabling channel mentions (#MM-8404)

* Replaces raw string value by constants (#MM-8404)

* Updates import according to redux update (#MM-8404)
2018-12-06 12:08:27 -05:00
Elias Nahum
fc5948fcc8
Add Ukrainian to Mattermost (#2392) 2018-11-28 15:08:23 -03:00
Chris Duarte
7c711caf2d Theme selection screen (#2320)
* Theme selection screen (initial commit)

PR Review changes

Add custom theme option for users who are already using a custom theme

Fix for limited allowed themes

Selected item case fix

Memoized available themes request, other optimizations

updated snapshots

* Custom theme option changes - title. spacing, save option on state for life-cycle of screen
2018-11-23 14:49:28 -03:00
Elias Nahum
de812107b5
Disable segment for dev env (#2372) 2018-11-23 14:05:42 -03:00
Elias Nahum
f42fedf889
Add pinned post support (#2364)
* Add pinned post

* Update pinned posts assets
2018-11-23 12:57:28 -03:00