Commit Graph

7574 Commits

Author SHA1 Message Date
khawerrind
28a7a2f200 PLT-3132 Add a direct message link to the contact pop-over (#4853)
* added DM button to the user picture and name popover

* removed isRequired from status and busy properties from profile_popover.jsx
2016-12-30 13:48:37 -03:00
enahum
89f1e8fc0c translations PR 20161226 (#4903) 2016-12-30 13:44:22 -03:00
Carlos Tadeu Panato Junior
21af988e49 Add initial unit test for post.getPostById() (#4910)
* add itinial tests for GetPostById

update per review

fix lint

* add missing comment
2016-12-30 13:44:04 -03:00
Hayden Chudy
42da7aa700 PLT-5027: Don't show own user in auto-complete list. (#4916) 2016-12-30 13:43:14 -03:00
Asaad Mahmood
7a14a05a9c Ui fixes (#4917)
* PLT-5089 - Updating modal buttons

* PLT-5090 - Full name and position overflow

* PLT-5093 - Updating modal lists
2016-12-30 13:40:55 -03:00
Joram Wilander
3d15b3ec50 Store posts for focus view in regular post store as well (#4913) 2016-12-29 15:50:17 -05:00
Joram Wilander
20b9954424 Fix console errors when logging out (#4915) 2016-12-29 15:48:46 -05:00
Joram Wilander
5811acca7f Fix join message sometimes not appearing (#4909) 2016-12-28 09:25:11 -05:00
Yusuke Nemoto
2294936595 PLT-4648 break /shortcuts block (#4829) 2016-12-28 10:46:11 -03:00
Carlos Tadeu Panato Junior
5fd11bd674 Add API call to get a user by their email address (#4884)
* Add API call to get a user by their email address

* update per review
2016-12-28 10:44:32 -03:00
Pepijn
14f1f4e9b1 Tweaked new message indicator calculation: (#4763)
* Removed count from new message indicator

* Don't count deleted posts towards the unviewedCount

* remove lodash, reduce() is natively available
2016-12-27 21:49:44 -05:00
Joram Wilander
e9d241f620 Remove scroll when search results update (#4897) 2016-12-26 22:30:21 -03:00
Joram Wilander
1539730ac1 Only show emoji autocomplete after two typed characters (#4895) 2016-12-26 09:44:20 -05:00
Joram Wilander
282f1601e3 Fix switching between team user lists in system console (#4898) 2016-12-26 09:40:32 -05:00
Joram Wilander
6f4e6386fb Don't autocomplete users by email (#4896) 2016-12-26 09:38:34 -05:00
Joram Wilander
fa046ccf06 On channel switch, only pull statuses the client doesn't have yet (#4894) 2016-12-26 09:35:34 -05:00
enahum
e492b80fb8 PLT-4893 remove channel handler in channel switcher (#4889) 2016-12-26 09:31:11 -05:00
enahum
47581e6964 Fix error after leaving team (#4888) 2016-12-26 09:28:40 -05:00
Nick Frazier
0a1b0d051a Add error to RHS reply box for messages > 4000 chars, consistent with create post and edit post errors (#4871)
* functionality

* CSS updates

* cleanup

* moved message length checks to Textbox component

* cleanup
2016-12-26 09:25:50 -05:00
Yang Chen
87d84dfc30 Update Position help text in Account Settings (#4885) 2016-12-23 17:18:44 -03:00
Joram Wilander
217cdf447a PLT-5073 Improve performance of /channels/view endpoint (#4881)
* Improve performance of /channels/view endpoint

* Fix store unit test
2016-12-23 10:32:30 -05:00
Christopher Speller
ffd6ccde2e Adding caching of last 60 posts. (#4880) 2016-12-22 15:14:54 -08:00
George Goldberg
ca61b4bed9 PLT-5080 (Server): Channel-Admin level permissions (#4874)
Adds permissions for manage/delete public/private channels at the
Channel Admin level.
2016-12-22 15:44:37 -05:00
Nick Frazier
03e1d0aac3 create_post fixes (#4867) 2016-12-22 15:30:37 -05:00
Brendan Bowidas
bd67c1f227 GH-4658 Show profile popover when clicking on username or profile picture in DMs (#4705)
* GH-4658 Show profile popover when clicking on username or profile picture at top of Direct Message channel

* enable popover on username
2016-12-22 17:02:23 -03:00
Joram Wilander
a793eb8651 Skip intensive stat DB queries when more than a set number of users on the system (#4876) 2016-12-22 17:00:05 -03:00
Carlos Tadeu Panato Junior
768fe6bec3 fix GH-4857 | Add a default value for the FileSettings.InitialFont (#4878) 2016-12-22 16:59:04 -03:00
Joram Wilander
15638d7405 Return 400 bad request codes for webhooks when attachment or text is too long (#4879) 2016-12-22 16:58:21 -03:00
George Goldberg
53847af2c4 API for getting channel members by IDs. (#4877) 2016-12-22 10:21:05 -08:00
enahum
b79b2b2a53 Fix team switch (#4851)
* Fix team switch

* Fix channel switching by using BrowserStore

* Fixes plt-5076 and plt-5068

* Updating styles for Teams sidebar (#4875)
2016-12-22 10:20:36 -08:00
khawerrind
c9eb23a3d4 PLT-3782 Do not move the "@" sign and flag icon to the left of search bar when opening the right hand sidebar (#4850)
* do not move the mention & flag button to the left of the search box when in search mode

* fixed the margin & padding issues of the search box

* fixed the member icon positioning issue and the expanded sidebar toggle issue

* fixed remaining bugs when sidebar is in expanded mode

* changed propTypes from func to bool
2016-12-22 14:21:16 -03:00
George Goldberg
a857cf18f4 PLT-4860 Make ProfilePopover into it's own component and use it consistently everywhere (#4701)
* PLT-4860 - Use same User Popover everywhere.

Refactor out the ProfilePopover into it's own component and give it the
union of all the features of the previous two implementations, and make
sure all the necessary data for it to work consistently everywhere is
provided through the props wherever it is used.

* Don't show popover for webhook posts in main view.

* No popover on RHS when it's a webhook post.

* Fix style.

* Don't send in user when it's a system message.

* Fix some duplication of code.
2016-12-22 14:19:19 -03:00
Joram Wilander
52c4538817 Remove new user event handling on client (#4822) 2016-12-22 10:35:55 -05:00
Björn Roland
8a92908dad #4697 Move Client.createChannel() in components to an action (#4855)
* #4697 Move instances of Client.createChannel() in components to an action
2016-12-22 11:46:34 -03:00
enahum
257a2234c4 translations PR 20161219 (#4838) 2016-12-22 10:52:20 -03:00
Björn Roland
84c6e376fa #4695 Move instances of Client.updateTeamMemberRoles() in components to an action (#4870) 2016-12-22 10:46:13 -03:00
Chris Duarte
670234dc66 Fix Cannot read property "window" of undefined (#4872)
I have no good way of testing this without enterprise code to build, but with SAML enabled on our build we get an error on line 1 of a js bundle.

```
Cannot read property 'window' of undefined
```

Looking through the bundles that are being loaded, I noticed that this controller looked interesting. And I noticed there was one call to window that did not reference `global` and it was only when SAML was enabled. So it seems to match like a good puzzle piece. 

Happy to get some help debugging this if I'm totally wrong in this.
2016-12-22 08:45:56 -05:00
Christopher Speller
c434e84114 Adding session cache directly to web-conn (#4861) 2016-12-22 07:52:02 -05:00
Corey Hulen
64a86bd32f PLT-4853 adding purge cache button to the UI. (#4811)
* PLT_4853 adding purge cache button to the UI.

* Fixing loc stuff
2016-12-21 19:31:24 -03:00
Pierre Rudloff
56dc863de1 Fix some typos in the English locale (fixes #4663) (#4793) 2016-12-21 19:29:38 -03:00
Joram Wilander
25d40bc98c PLT-4431 Add post queuing to the webapp (#4800)
* Add post queuing to the webapp

* Add more abstraction
2016-12-21 16:41:05 -05:00
Joram Wilander
ba6e370ca7 PLT-5012 Combine updateLastViewedAt, setLastViewedAt and setActiveChannel into a single API (#4840)
* Combine updateLastViewedAt, setLastViewedAt and setActiveChannel into a single API

* Remove preference DB writes
2016-12-21 16:35:01 -05:00
enahum
139cb52c99 Fix teams unread count (#4848)
* Fix teams unread

* Moving logic out of the store

* fix unit test
2016-12-21 11:20:11 -08:00
George Goldberg
dce4205699 PLT-4990 - Server: Split out channel permissions to Create/Manage/Delete (#4864)
* Server side changes.

* Fix unit tests and default config.
2016-12-21 11:18:41 -08:00
Björn Roland
f0f5326098 #4698 Move Client.updateActive() in components to an action (#4858)
* #4698 Move instances of Client.updateActive() in components to an action

* Use null for empty success function
2016-12-21 12:48:06 -05:00
Joram Wilander
cadc9e11e4 Remove race between multiple autocomplete requests (#4860) 2016-12-21 12:45:21 -05:00
Nick Frazier
26e43c671c PLT-4943: Warn when editing a message > 4000 chars (#4789)
* added basic functionality

* css fixes

* css fixes part II: electric boogaloo

* removed css interference with theme changes, for this and post length error
2016-12-21 11:37:07 -03:00
Björn Roland
f0b74e78dd #4699 Move instances of Client.updateChannelNotifyProps() in components to an action (#4862) 2016-12-21 11:27:42 -03:00
Corey Hulen
2c09582d89 Fixing image profiles (#4863)
* Fixing image profiles

* Fixing break
2016-12-21 08:33:04 -05:00
Christopher Speller
8c5744492f Revert "PLT-135 Showing "(Edited)" indicator if a message has been edited." (#4854) 2016-12-20 19:38:11 -05:00