Commit Graph

8179 Commits

Author SHA1 Message Date
Ari Autio
9cfa733178 PLT-5281 error messages contain a link to documentation about reserved words (#5530)
* PLT-5281 error messages contain a link to documentation about reserved words

* Updated comments per PM review

* Proposed fix to review comments
2017-03-24 17:10:40 -04:00
Joram Wilander
4dc03613b4 Check if LHS DM list needs updating on channel switch and channel members fetch (#5861) 2017-03-24 13:46:39 -07:00
Joram Wilander
69fb47b88b Add query parameters to get posts v4 endpoint (#5858)
* Add since query paremeter to get posts v4 endpoint

* Add query paremeters for before/after to get posts v4 endpoint
2017-03-24 13:46:11 -07:00
Joram Wilander
28a78d7607 Implement some channel endpoints for APIv4 (#5846)
* Add v4 endpoint for getting the channels on a team for a user

* Implement PUT /channels/{channel_id}/patch endpoint for APIv4

* Implement POST /teams/{team_id}/channels/search endpoint for APIv4

* Update permission check
2017-03-24 13:45:34 -07:00
George Goldberg
22715a31ed PLT-5879: User email notification settings disabling. (#5837)
When Email Notifications are turned off server wide, don't allow the
user to configure their email notification preferences.
2017-03-24 13:43:09 -07:00
George Goldberg
2c0c71d460 PLT-5910: Fix Channel header menu in Town Square. (#5831) 2017-03-24 13:42:37 -07:00
George Goldberg
92a1878708 PLT-5907: Fix Create Channel in More Channels dialog. (#5830) 2017-03-24 13:42:22 -07:00
Joram Wilander
11b7aa859c Implement POST /users/email/verify/send endpoint for APIv4 (#5825) 2017-03-24 13:42:05 -07:00
Joram Wilander
a2f78d01bd Fix LHS group message sorting (#5812) 2017-03-24 13:41:45 -07:00
Carlos Tadeu Panato Junior
5bf6ae04df [APIV4] GET /users/{user_id}/status - user status endpoint for apiV4 (#5824) 2017-03-24 17:23:32 +00:00
bonespiked
28ad645153 Ticket 4665 - Emoji Picker (#5157)
*  #4665  Added EmojiPicker

Work primarily by @broernr-de and @harrison on pre-release.mattermost.com

* Final fixes to handle custom emojis from internal review and single merge error

* ESLint fixes

* CSS changes and other code to support emoji picker in reply window

* Fix for file upload and emoji picker icon positions on post and comment.

RHS emoji picker appearing see-through at this time.

* Fix for two ESLint issues.

* covered most of feedback:
RHS emoji picker looks correct color-wise
RHS emoji picker dynamically positions against height of thread size (post + reply messages)
escape closes emoji window
search box focused on open

ESLint fixes against other files
oversized emoji preview fixes

* Adding in 'outside click' eventing to dismiss the emoji window

* Changing some formatting to fix mismatch between my local eslant rules and jenkins.

* adding alternative import method due to downstream testing errors

* yet another attempt to retain functionality and pass tests - skipping import of browser store

* fix for feedback items 5 and 7:
* move search to float on top with stylistic changes
* whitespace in the header (+1 squashed commit)
Squashed commits:
[6a26d32] changes that address items
1, 2, 6, 8, and 9 of latest feedback

* Fix for attachment preview location on mobile

* Fix for latest rounds of feedback

* fixing eslint issue

* making emojipicker sprite based, fixing alignments

* Fix for emoji quality, fixing some behavior (hover background and cursor settings)
undoing config changes

* Preview feature for emojis

* Adjustments to config file, and changing layout/design of attachment and emoji icon.

* manual revert from master branch for config.json

* reverting paperclip and fixing alignments.  Additionally fixing inadvertent display of picker on mobile.

* CSS changes to try to fix the hover behavior - currently working for emoji picker (when enabled), but hover for attachment isn't working

* Made suggested changes by jwilander except for jQuery removal

* Adding hover for both icons

* removal of some usages of jQuery

* Fix for two layout issues on IE11/Edge

* UI improvements for emoji picker

* Fix for many minor display issues

* fix for additional appearance items

* fix to two minor UI items

* A little extra padding for IE11

* fix for IE11 scroll issue, and removing align attribute on img tag which was throwing js error

* fixes some display issues on firefox

* fix for uneven sides of emojis

* fix for eslint issues that I didn't introduce

* fix for missing bottom edge of RHS emojipicker.  also fixing text overlapping icons on text area (including RHS)

* Update "emoji selector" to "emoji picker"

* changes for code review
- removal of ..getDOMNode
- use sprite imagery for emoji preview
- remove lastBlurAt from state as it wasn't used

* fixes for:
- fake custom emoji preview in picker
- RHS scrollbar on preview

* fix for minor alignment of preview emoji
2017-03-24 09:09:51 -04:00
Saturnino Abril
d0af931e6e APIv4 put /teams/{team_id}/patch (#5860) 2017-03-24 08:17:46 -04:00
Ryan Wang
4c1eb7ff55 Update default town square purpose (#5810) 2017-03-24 09:17:01 +00:00
VeraLyu
3ea091fd6d Add file attachment to search result (#5806) 2017-03-24 09:14:27 +00:00
Saturnino Abril
f1274a7ec2 Endpoint for APIv4 POST /teams/{team_id}/members (#5804) 2017-03-24 09:13:27 +00:00
Saturnino Abril
1167b39185 Fixed mobile search focus - keyboard collapse/focus (#5766) 2017-03-24 09:05:43 +00:00
Corey Hulen
98baf1536e Fixing issue with ids for selenium (#5859)
* Fixing issue with ids for selenium

* removing comment
2017-03-23 19:41:08 -07:00
Carlos Tadeu Panato Junior
6935e2d5ea implement POST /commands for apiv4 (#5849) 2017-03-23 19:42:32 -04:00
Joram Wilander
42c3ea64a9 Fix delete channel test (#5863) 2017-03-23 15:37:39 -07:00
Corey Hulen
37c41a26c9 Adding a last message id for selenium testing (#5840) 2017-03-23 19:11:15 +00:00
George Goldberg
7d449e0556 PLT-5755: Infrastructure for Component Testing. (#5814)
This migrates the existing webapp tests to using Jest and Enzyme. The
infrastructure is put in place for React component testing, and a few
simple example component tests are implemented.

This also adds snapshot testing of components, coverage checking for the
webapp (although that is not yet integrated to Coveralls), and the
ability to run npm run test:watch to automatically re-run affected tests
when working on the webapp codebase.
2017-03-23 14:05:36 -04:00
George Goldberg
c6ded1dbfd Merge branch 'release-3.7' 2017-03-23 17:38:24 +00:00
Brad Howes
120f5a6f8a Websocket CORS Support (#5667)
* Second attept at patching api/websocket.go for CORS support.

* Missing include

* Fixed whitespace formatting so that gofmt passes.

* Added tests for CORS filtering
2017-03-23 09:10:52 -04:00
Carlos Tadeu Panato Junior
34cb70d005 add implementation for endpoint DELETE outgoing webhook for apiv4 (#5828) 2017-03-23 12:50:06 +00:00
VeraLyu
94b4aa082c PLT-5913: Remove id from heading markdown compilation (#5782)
Id for heading markdown is unnecessary as we didn't
attach any style/effect on that id, and it also introduce
duplicate id. So remove it from heading markdown generatiing.
2017-03-23 08:19:22 -04:00
Christopher Speller
efcf78a4f3 Fxing TODO check (#5836) 2017-03-23 11:10:16 +00:00
Carlos Tadeu Panato Junior
78e5b803cc add implementation to get outgoing webhook for apiv4 (#5827) 2017-03-23 11:02:42 +00:00
VeraLyu
0326177253 PLT-5669: Change format of timestamp of access history (#5646)
Add new line for timestamp and forbid wrap for ip and sessionid of access history to
prevent unnecessary line wrap.
2017-03-23 10:39:15 +00:00
Carlos Tadeu Panato Junior
41ebdb6441 fix - make loginId always lowercase (#5613) 2017-03-23 10:35:50 +00:00
Joram Wilander
2a753949f1 Implement POST /users/search endpoint for APIv4 (#5822)
* Implement POST /users/search endpoint for APIv4

* PLT-2713 Added store functions for searching users that don't have a team

* PLT-2713 Added 'without_team' option when searching users

* PLT-2713 Added 'without_team' option when searching users (v4)
2017-03-23 10:34:22 +00:00
enahum
8ec3757074 PLT-5905 Fix saml certificates for 3.7 (#5843) v3.7.3 2017-03-22 21:26:00 +00:00
George Goldberg
0d917b08ed Fix telemetry. (#5841) 2017-03-22 20:17:27 +00:00
Christopher Speller
8d68de000a Fxing some unit tests 2017-03-22 15:51:57 -04:00
enahum
7e2e823884 PLT-5905 Fix saml certificates (#5803) 2017-03-22 19:24:05 +00:00
Joram Wilander
61b1237c20 Update channel permissions for v4 endpoints (#5829)
* Fix join channel permission for v4 endpoint

* Allow regular users to get public channels they are not in

* Fix unit test
2017-03-22 08:13:44 -07:00
George Goldberg
0e98dfa445 PLT-5872: Remove Security Category from Security Alerts. (#5835)
It wasn't actually providing any information, just `c=d` every time.
2017-03-22 10:51:38 -04:00
enahum
20a2e6fab7 translations PR 20170320 (#5819) 2017-03-21 23:49:27 -03:00
Eric Sethna
25517aae56 Add IDs to Team Settings, Channel Settings, Account Settings (Display & Advanced) (#5823)
* Add IDs to Channel Notification Preferences

* Add IDs to Display Settings

* Add ID to language dropdown

* Add Ids

* Add ids

* Add Ids

* Add Ids

* Add Ids

* Add Id

* Add Ids

* Add Ids

* Fix duplicate Id
2017-03-21 19:16:48 -04:00
Joram Wilander
bea49cbcf3 Add ability to use 'me' in place of user id for APIv4 (#5826) 2017-03-21 18:43:16 -04:00
Joram Wilander
fd6e2f3f73 Implement GET /audits endpoint for APIv4 (#5779)
* Implement GET /audits endpoint for APIv4

* Fix log unit test
2017-03-21 09:06:08 -04:00
Carlos Tadeu Panato Junior
4968ef0759 implement PUT /hooks/outgoing/{hook_id} - update outgoing hook (#5793) 2017-03-21 11:56:42 +00:00
enahum
32c658b1ce translations PR 20170316 (#5791) 2017-03-20 20:02:50 -03:00
Jason Blais
036dcddd3a Update contributing guidelines for platform repo (#5455)
* Update CONTRIBUTING.md

* Fix formatting

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* ES: minor tweaks to review process

* Update CONTRIBUTING.md
2017-03-20 18:31:18 -04:00
Harrison Healey
8866218243 Revert "PLT-3181 Added crossorigin='anonymous' to all external images (#5774)" (#5815)
This reverts commit 24848f9d6a.
2017-03-20 16:58:09 -04:00
Christopher Speller
7caab35cfa Fxing some unit tests (#5817) 2017-03-20 16:47:53 -04:00
Joram Wilander
dcdea9b54c Fix compile error on master (#5813) 2017-03-20 10:12:43 -04:00
Ryan Wang
1ef071af6b Remove blue bar from link previews (#5673) 2017-03-20 09:24:46 -04:00
Josta Yee
e86add77ad Add http_proxy support for http client (#5571)
- if 'http_proxy' environment variable is set, respect it when creating http client
- otherwise initialize a http client with timeout settings

Add ogjson to cache even when it fails

in this way we can prevent from requesting unparsable urls repeatedly

Extend expire time of cached link preview data to a week

There's no need to invalidate cache and send request again frequently

Revert timeout

Revert cache_expire_time
2017-03-20 10:20:42 -03:00
Joram Wilander
76f8420a52 Fix success typo in Makefile (#5809) 2017-03-20 09:15:05 -04:00
Christopher Speller
f9be4d5acb Removing old CLI (#5797) 2017-03-20 12:58:15 +00:00