Commit Graph

8943 Commits

Author SHA1 Message Date
Saturnino Abril
f3934bc7e1 [PLT-1249] Add close button 'x' to the right of a link preview (#7017)
* add close button 'x' to the right of a link preview

* Updating webhook UI

* UI improvements for close button

* Adding hover state

* Making the close button visible on mobile

* previews are permanently disabled/closed for that link

* make post as required props

* fix JS error of undefined

* fix update issue both at center and RHS view
2017-08-03 14:29:31 +08:00
Joram Wilander
345bb2236f Fix teams being incorrectly marked unread across tabs (#7062) 2017-08-02 17:09:53 -04:00
Joram Wilander
eee711145c Do not show non-autocomplete commands for system admins (#7094) 2017-08-02 17:07:30 -04:00
Christopher Speller
873e4f4903 Merge pull request #7085 from saturninoabril/merge-4.0.2
Merge 4.0.2
2017-08-02 12:53:01 -07:00
Jonathan
76bfd279b3 PLT-7140: On slow connection searching should clear RHS and show spinner (#7014)
* Added a RECEIVED_SEARCH_TERM event on search form submit, attempted to modify Search Results Header title when loading search results

* Fixed RHS behaviour so that loading icon is shown while waiting for search results on slow connections.

* PLT-7140: Fixed all eslint issues

* PLT-7140: reverted changes to config/config.json that were accidentally committed

* PLT-7140: Removed all static function decorators that I previously added to jsx files. These were suggested by eslint, but can cause issues for functions that override parent functionality. still can't reproduce the errors seen on spinmint locally, so I'm guessing at this point

* PLT-7140: Changed var to const

* Updating UI for search results loading (#7096)
2017-08-02 15:38:54 -04:00
enahum
fa3dd6a84b If login is using mobile respond with JSON object (#7030) 2017-08-03 02:39:14 +08:00
Harrison Healey
b796960a25 PLT-7204 Fixed markdown preview (#6997)
* PLT-7204 Fixed markdown preview

* Updated style of Textbox component
2017-08-02 09:29:09 -07:00
Joram Wilander
dab299c9af Fix commenting on deleted post (#7095) 2017-08-02 08:25:27 -07:00
Joram Wilander
4d45214394 Add more debugging info to server logs for failed OAuth requests (#7039) 2017-08-02 08:05:36 -07:00
Joram Wilander
2c5eefa17a Fix TestUpdateOAuthUserAttrs unit test (#7037) 2017-08-02 07:50:14 -07:00
Jonathan
ca80b7fe31 PLT-7145: platform user deleteall expects a user as argument (#7002)
* PLT-7145: Fixed typo preventing deleteall command from working as expected. Cleaned up spelling and error messages throughout the user module

* PLT-7145: Grammar and wording suggestions from PR 7002
2017-08-02 07:26:27 -07:00
George Goldberg
29be10ca2f PLT-7275: Configure replica/shard count for Elasticsearch indexes. (#7093) 2017-08-02 09:50:09 -04:00
Jonathan
b47cf82043 PLT-7238: Modified channel member dropdown list to show user name, as defined by display settings, rather than full name (#7086) 2017-08-02 09:29:44 -04:00
Joram Wilander
4dcaa5b676 Use redux selector for getting siderbar channels (#7078) 2017-08-02 09:29:15 -04:00
Joram Wilander
6ff7e4ea4b Change refresh on version change to be after explicit click (#7090) 2017-08-02 08:44:25 -04:00
Chris
65817e13c7 PLT-6965 jira integration (plus plugin scaffolding) (#6918)
* plugin scaffolding / jira integration

* add vendored testify packages

* webhook fix

* don't change i18n ids

* support configuration watching

* add basic jira plugin configuration to admin console

* fix eslint errors

* fix another eslint warning

* polish

* undo unintentional config.json commit >:(

* test fix

* add jira plugin diagnostics, remove dm support, add bot tag, generate web-safe secrets

* rebase, implement requested changes

* requested changes

* remove tests and minimize makefile change

* add missing license headers

* add missing comma

* remove bad line from Makefile
2017-08-02 01:36:54 -07:00
Joram Wilander
c6bf235ec2 Do not show commented on header for ephemeral posts (#7069) 2017-08-01 13:34:30 -04:00
Harrison Healey
d79e538d27 PLT-7262 Stopped including emoji sprite sheets multiple times in CSS (#7077)
* PLT-7262 Stopped including emoji sprite sheets multiple times in CSS

* Changed EmojiPickerItem to be a PureComponent
2017-08-01 13:28:39 -04:00
Harrison Healey
0cc5854b64 Fixed error thrown when viewing a channel containing an invalid emoji reaction (#7080)
* Added better error handling for when reacting with a non-existant emoji

* Re-added emoji aliases ca, za, and pk
2017-08-01 13:27:18 -04:00
Saturnino Abril
1026b7d84c add POST_UPDATED constant for socket events (#7074) 2017-08-01 23:23:37 +08:00
Joram Wilander
5da5c0bbfb PLT-6987 User access token UI (#7007)
* Add user access token UI

* Fix enter press and update mattermost-redux

* Updating UI for access token stuff (#7066)

* Revert segment key
2017-08-01 11:06:53 -04:00
Joram Wilander
4ef844298f Show flagged posts consistently throughout the UI (#7063) 2017-08-01 09:04:28 -04:00
Christopher Speller
0331409488 Add jobserver command to platform binary (#7067)
* Add jobserver command to platform binary

* Fixing jobserver config. Adding jobserver flags.

* Fixing govet in makefile
2017-08-01 08:53:42 -04:00
Saturnino Abril
88f398ffdd Revert " #4755 Combining consecutive user join/leave system messages to single message and few other changes." (#7072)
* Revert "PLT-6603: Don't return all posts on invalid query. (#7061)"

This reverts commit 25a2013890.

* Revert " #4755 Combining consecutive user join/leave system messages to single message and few other changes. (#5945)"

This reverts commit 8a91235fb3.
2017-08-01 08:16:45 -04:00
David Meza
b023b89155 Use Constants.MAX_CHANNELNAME_LENGTH where a fixed number like 22 or 64 is used for max length of channel names. (#7041) 2017-08-01 13:12:25 +01:00
George Goldberg
00e8b6621a PLT-6595 (Client): Elasticsearch indexing system console UI (#6991)
* PLT-6595: System Console for Elasticsearch Job Management.

* Fixing UI issues

* Fixing colors

* ESLint Fixes.

* Update test snapshots.

* Fixing cancel button

* Fix review comments.

* Config capitalisation.

* Review fixes.
2017-08-01 13:11:29 +01:00
George Goldberg
25a2013890 PLT-6603: Don't return all posts on invalid query. (#7061)
If the query contains only * or invalid punctuation only components,
don't return all posts - instead return no results.

This also fixes PLT-6608
2017-07-31 11:45:35 -07:00
Debanshu Kundu
8a91235fb3 #4755 Combining consecutive user join/leave system messages to single message and few other changes. (#5945)
fix 7 and 8

remove @ at "{username} joined the channel"

refactor and update test
2017-08-01 02:17:21 +08:00
Joram Wilander
59992ae4a4 PLT-6763 Implement user access tokens and new roles (server-side) (#6972)
* Implement user access tokens and new roles

* Update config.json

* Add public post permission to apiv3

* Remove old comment

* Fix model unit test

* Updates to store per feedback

* Updates per feedback from CS
2017-07-31 12:59:32 -04:00
Jonathan
ed62660e96 PLT-7185: Double clicking Create Account attempts to create an account twice (#7025)
* PLT-7185: Disabled submit button after it is clicked for the first time, unless an error occurs

* PLT-7140: Removed all static function decorators that I previously added to jsx files. These were suggested by eslint, but can cause issues for functions that override parent functionality. still can't reproduce the errors seen on spinmint locally, so I'm guessing at this point

(cherry picked from commit 34b87fe88a)
2017-07-31 17:55:49 +01:00
Carlos Tadeu Panato Junior
251f000c68 [PLT-6710] /rename [text] slash command: Rename the channel (#6570)
* /rename [text] slash command: Rename the channel

* update strings per review
2017-07-31 12:54:34 -04:00
Harshavardhana
489602efe5 Allow regions to be set and honored for S3 driver. (#7010)
This is necessary for certain users where
GetBucketLocation API is disabled using IAM
policies. There is a field AmazonS3Region
which we need to re-purpose and use to support
this properly.

Fixes https://github.com/mattermost/platform/issues/6999
2017-07-31 12:22:52 -04:00
George Goldberg
c506c5cac6 PLT-6961: Add Elasticsearch settings to diagnostics. (#7021) 2017-07-31 11:53:44 -04:00
Chris
72f61ab96a make cli team / channel delete operations also delete webhooks and slash commands (#7028) 2017-07-31 11:52:45 -04:00
Joram Wilander
0f786a42d3 Select page correctly in more channels modal (#7035) 2017-07-31 11:52:02 -04:00
Jonathan
d01261a228 PLT-7177: Change the default email frequency to 15 minutes if batching is enabled on the server. (#7036)
* PLT-7177: Found default preference that needs to be changed

* PLT-7177: Front end behaves as desired

* PLT-7177: Changed default batching interval on server side

* PLT-7177: Added unit tests for new default interval

* PLT-7177: Removed unused import

* PLT-7177: Renamed constants to increase clarity
2017-07-31 11:51:43 -04:00
Jason Blais
8d7dcf44e2 PLT-7235 Fix broken links on System Console Mobile Push settings page (#7047)
* Update push_settings.jsx

* Update en.json
2017-07-31 11:37:54 -04:00
Saturnino Abril
c130d3630b prevent ViewImageModal to re-render when file count is unchanged (#7048) 2017-07-31 11:36:46 -04:00
Chris
094c2f7308 fix away/offline/online commands repeating user message (#7060) 2017-07-31 11:26:54 -04:00
Christopher Speller
09b49c26dd PLT-5308 Caching layer part 2 (#6973)
* Adding Reaction store cache layer example

* Implementing reaction store in new caching system.

* Redis for reaction store

* Adding redis library

* Adding invalidation for DeleteAllWithEmojiName and other minor enhancements
2017-07-31 08:15:23 -07:00
AJ Moon
6f4e38d129 [GH-6366] Add functionality to disable Authentication when connecting to SMTP (#6639)
* Issue #6366: Add feature to disable auth for Encrypted connections to SMTP settings.

* Clean PLAIN AUTH Option

* Reorder SMTP server setup and change helptext

* remove unneeded setting and modify logic

* text description change
2017-07-31 08:15:01 -07:00
Maxime Buquet
cf32b59e64 Make login_controller consistent with signup_controller by using Client4.getOAuthRoute (#7033)
* Use Client4.getOAuthUrl instead of making the url by hand with getUrl

* Use the correct function name. thanks jwilander
2017-07-31 08:31:28 -04:00
94117nl
6ec24867bc GH-6448 Migrate edit_command.jsx to be pure and use Redux (#6858)
* Migrate edit_command.jsx to be pure and use Redux, add basic test

* Update newCommand to reference modified command

* Fix typo

* Remove unnecessary re-renders
2017-07-31 08:26:04 -04:00
David Meza
f740698dbe PLT-6486 Add an @username button to the profile popover, that puts the username in the post when clicked (#6349)
* PLT-6486 Add an `@username` button to the profile popover, that puts the username in the post when clicked

* PLT-6486 Display `@username` mention on the right text area on center or RHS.

* Disable @mentions from profile popover on searches, mentions and pinned posts. Fix js errors.

* Control undefined post in SearchStore that causes an exception.
2017-07-31 08:24:13 -04:00
Corey Hulen
22fa48f455 Don't send last view message for null channels (#7051) 2017-07-31 08:18:40 -04:00
Asaad Mahmood
860f2c8332 Multiple Ui improvements (#7029)
* PLT-7119 - Updating headings on compact view

* PLT-7103 - Removing line below channel intro

* PLT-7112 - Fixing system console banner

* PLT-7144 - Adding ellipsis to system console boxes

* PLT-7181 - Changing channel header opacity

* PLT-6899 - Updating unread bar

* Updating margin for new messages indicator
2017-07-31 08:10:43 -04:00
Harrison Healey
3c0f082506 PLT-6924 Added config options to disable file uploads/downloads on mobile (#7049) 2017-07-28 11:52:31 -06:00
Joram Wilander
da6e6ca0bf Fix TestCreateOAuthUser unit test (#7034) 2017-07-28 11:48:34 -06:00
Corey Hulen
571e4f2ae1 Fixing issue with compliance export encoding (#7042) 2017-07-28 09:32:37 -06:00
Harrison Healey
2d43e99757 PLT-7032/PLT-7155 Updated marked to fix empty table cells and code block whitespace (#7015) 2017-07-27 17:17:03 -04:00