Commit graph

91 commits

Author SHA1 Message Date
Harrison Healey
883de604d8 Fix comma splice typo (#2343) 2018-11-19 14:51:37 -03:00
Elias Nahum
b20e976dff
Properly handle max file size (#2248)
* Properly handle max file size

* Feedback review
2018-10-11 14:11:05 -03:00
Harrison Healey
4e251d392a
MM-12189 Set autocomplete max height based off available space (#2218)
* MM-12189 Set autocomplete max height based off available space

* Have each autocomplete type determine its own max height since DateSuggestion needs more space

* Remove unused props and ref
2018-10-05 09:58:05 -04:00
Jesús Espino
2a75ee022c
MM-11606: Back to prev channel on close archived channel (#2183) 2018-09-27 19:02:02 +02: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
Martin Kraft
0d0dfb1057 MM-11070: Adds ability to view archived channels. (#1927)
* MM-11070: Adds ability to view archived channels.

* MM-11070: Switches to existing selector.

* MM-11070: Uses boolean prop instead of object.

* MM-11070: Reuses web translations.

* MM-11070: Adds archived message to thread view. Switches to selector for postIDs of archived channels.

* MM-11070: Removed unused import.

* MM-11070: Removes edit and delete options from longpress of archived posts.

* MM-11070: Moves closure variable.

* MM-11070: Switch from hard-coded to theme color.

* MM-11070: Hides actions in header of archived channels.

* MM-11070: Updates Redux.

* MM-11070: Re-adds the 'Leave Channel' option for archived channels.
2018-07-31 15:27:38 -04:00
Elias Nahum
26389994d7
If slash command fails leave the command in the textbox 2018-07-12 19:21:53 -04:00
Elias Nahum
ca4d08fc7e
Use TextInput instead of QuickTextInput on Android (#1904) 2018-07-09 18:33:31 -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
Elias Nahum
375c41dc3c
Merge branch 'release-1.9' 2018-06-25 15:31:46 -04:00
Harrison Healey
f30d278cf1 Revert "MM-10822 Change post textbox to only be partially connected" (#1820)
This reverts commit 3703309fad.
2018-06-25 11:39:17 -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
Harrison Healey
92b992d204
MM-10822 Change post textbox to only be partially connected 2018-06-21 18:13:02 -04:00
Jesse Hallam
8372e95d4a add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
Harrison Healey
3703309fad MM-10822 Change post textbox to only be partially connected 2018-06-18 16:05:42 -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
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
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
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
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
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
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
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
enahum
d0f96c0887
[ICU-650] Upgrade React Native to 0.52.2 (#1421)
* Upgrade to React Native 0.52.2

* Bump app version to 1.7.0

* Update fastlane

* Upgrade mattermost redux

* feedback review
2018-02-07 18:24:01 -03:00
Saturnino Abril
bda1ba153e
[ICU-629] Add support for DM with deactivated channel (teammate) (#1385)
* Add support for DM with deactivated channel (teammate)

* add archive_icon

* add extra protection to prevent error when teammate is evetually deactivated
2018-02-01 00:04:31 +08:00
enahum
7cda6be8d7
Edit profile (#1322)
* Add set status feature

Small code refactoring

Add Do Not Disturb option

* Add Account Settings screen

Add username, nicname, and position fields

Add email field

get deviceHeight from redux

Clean up onPress handler in Settings

Refactor each account settings item to it's own component

Clean up email field and updateUser action method

Use mobile localization format in en.json

Update profile image

Clean up ProfilePicture for editing

Add loading and error components in AccountSettings

Refactor updateRequest state into a function

Follow design specs

Remove unnecessary this.state.emailUpdated

Polish AccountSettings and secondary components

Refactor AttachmentButton into it's own componentg

Add Account Settings icon in General Settings

Add TODO comments

* Update user status

* Edit Profile screen refactored

* Fix edit profile item text color
2018-01-08 14:18:57 -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
enahum
2181168c9f
Remove the possibility to post empty messages (#1317)
* Remove the possibility to post empty messages

* Fix userTyping action
2017-12-22 16:08:27 -03:00
Chris Duarte
00ce1e1842 Enforce max file count and active send button (#1241)
* Enforce max file count and wait until all images finish loading

Replaced Text with FormattedText

Remove unnecessary Text import

Clean up post_textbox and file_upload_preview

* Fix localization string for mobile

* change MAX_IMAGE_COUNT to MAX_FILE_COUNT
2017-12-14 15:19:31 -03:00
enahum
bd39fa5b43
Replace KeyboardAvoidingView with custom (#1249) 2017-12-04 12:12:08 -03:00
enahum
849c8cc4af
Clear failed images from post draft when posting (#1244)
* Clear failed images from post draft when posting

* feedback review

* clone files array only once in the failed reducer
2017-12-04 12:06:16 -03:00
Chris Duarte
e6869dd760 Fix slash command for post comment (#1221) 2017-11-28 17:43:12 -05:00
enahum
b27a1f8e0b
Fix the ability to send the post when an upload failed (#1195) 2017-11-24 20:25:53 -03:00
Chris Duarte
be682240f4 Add slash command support (#1190)
* Add slash command support

* Review feedback

* Review feedback 2

* Update to latest redux

* Fix tests
2017-11-23 14:25:03 -03:00
Chris Duarte
aa61391436 Fix add reaction shortcut in post reply (#1174) 2017-11-21 10:38:20 -05:00
Harrison Healey
70a1a92d06 Updated borders on autocomplete to wrap entire list (#1149)
* Updated borders on autocomplete to wrap entire list

* Reverted accidental changes to search autocomplete position
2017-11-14 19:13:03 -06:00
Harrison Healey
df5f7a0059 Increased clickable area around send post button (#1139)
* Increased clickable area around send post button

* Fixed attachment icon not staying at the bottom when the post textbox gets taller
2017-11-13 18:43:31 -03:00
enahum
49899b2a00
Improve performance on post textbox (#1138) 2017-11-13 18:36:24 -03:00
enahum
9910e3438d
Upgrade RN (#1102) 2017-11-07 13:34:39 -03:00
Chris Duarte
9ff9b872ba Config to enable when clicking on username to fill input with @mention (#966)
* Config to enable when clicking on username to fill input with @mention

* Rename to experimental and move tenary from componet to variable

* Use getCurrentChannelId in insertToPostDraft action

* Change to work with rebase

* Refactor thread reducer and blacklist currentThreadId

* Review feedback

* Review feedback 2
2017-10-26 10:48:52 -04:00
Chris Duarte
1641d38863 Fix android predictive text prepend issue (#1056) 2017-10-24 19:43:51 -03:00
Chris Duarte
e4b86518a9 RN-342 Refactor post textbox component (#915)
* RN-342 Refactor post textbox component

* Rebase

* Review feedback
2017-09-20 16:40:40 -04:00
Chris Duarte
8694f59e80 RN-335 Reaction shortcut (#920)
* RN-335 Reaction shortcut

* Review feedback
2017-09-20 11:08:17 -04:00
Chris Duarte
220fb588b9 RN-80 Add ability to download files (#866)
* RN-80 Add ability to download files

* Add android permission check and toasts

* Add check for ability to download from config
2017-09-01 12:11:49 -03:00
Harrison Healey
c6ae1090f7 Changed makeStyleSheetFromTheme to take a function that returns a plain object (#852)
* Changed makeStyleSheetFromTheme to take a function that returns a plain object

* Fixed style issues
2017-08-15 18:26:55 -03:00
Harrison Healey
0f8f93af6d PLT-6924 Added setting to disable mobile file uploads (#799)
* PLT-6924 Added setting to disable mobile file uploads

* PLT-6924 Updated yarn.lock
2017-07-28 17:06:44 -04:00
Chris Duarte
daa193e2ce Disable the send button while attachments are uploading (#749) 2017-07-17 14:55:44 -04:00
Harrison Healey
102a56e7cf RN-237 Re-added workaround for pressing enter on Android (#679)
* Stop 'make stop-packager' from erroring when packager isn't running

* RN-237 Re-added workaround for pressing enter on Android
2017-06-27 16:27:39 -04:00
Chris Duarte
a8b49ef3a4 RN-168 Attachment selector closes without attachment (#682) 2017-06-27 16:04:19 -04:00