Граф коммитов

967 Коммитов

Автор SHA1 Сообщение Дата
Nick Frazier
03e1d0aac3 create_post fixes (#4867) 2016-12-22 15:30:37 -05: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
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
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
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
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
Christopher Speller
8c5744492f Revert "PLT-135 Showing "(Edited)" indicator if a message has been edited." (#4854) 2016-12-20 19:38:11 -05:00
enahum
927eb65978 PLT-5038 Add Join another team in sidebar_right_menu (#4844) 2016-12-20 09:33:52 -05:00
Joram Wilander
1f67c91fce Prevent accidental removal of user from town square (#4842) 2016-12-20 09:27:29 -05:00
Joram Wilander
bf3fec604f Remove autocomplete delay (#4819) 2016-12-20 09:08:58 -05:00
Nick Frazier
e9a1a8d3d9 GH-4685 Post a System Message when channel is renamed (#4762)
* test changes

* added system message when displayname changed

* added test

* gofmt
2016-12-20 08:56:45 -05:00
Nick Frazier
2c15094368 GH-4558 Mobile View: Don't close the Left Hand Sidebar after removing an open Direct Message Channel (#4776)
* added fix

* use class var instead of state var

* removed onUpdate
2016-12-19 16:46:52 -05:00
Debanshu Kundu
c8cd3d22ad PLT-4977 Sorting teams by display name on team list at system console's menue and select team modal. (#4797) 2016-12-19 16:46:13 -05:00
Asaad Mahmood
58e8da11b1 Multiple UI improvements (#4835)
* Updating sizes for teams sidebar

* PLT-4641 - Rearranging notification option

* PLT-4504 - Updating styles for Oauth apps

* PLT-4852 - Updating font size for lists

* Fix for the unread indicator with teams sidebar
2016-12-19 16:44:13 -05:00
enahum
98d96f5457 PLT-5021 Order System Console Teams section by Display Name (#4831) 2016-12-19 10:47:43 -05:00
Debanshu Kundu
6a5cdd5cdf PLT-135 Showing "(Edited)" indicator if a message has been edited. (#4764) 2016-12-19 09:05:39 -05:00
enahum
999d1553e1 PLT-4167 Team Sidebar (#4569)
* PLT-4167 Team Sidebar

* Address feedback from PM

* change route from my_members to members

* bug fixes

* Updating styles for teams sidebar (#4681)

* Added PM changes

* Fix corner cases

* Addressing feedback

* use two different endpoints

* Bug fixes

* Rename model and client functions, using preferences to store last team and channel viewed

* Fix mobile notification count and closing the team sidebar

* unit test, fixed bad merge and retrieve from cached when available

* bug fixes

* use id for last channel in preferences, query optimization

* Updating multi team css (#4830)
2016-12-19 08:05:46 -05:00
George Goldberg
ba2c9f975e PLT-4928 Sort integrations by name in lists. (#4804) 2016-12-16 08:02:39 -05:00
Joram Wilander
7f48a7fc9d PLT-4815 Refactor 'More Channels' modal into the new modal pattern (#4742)
* Refactor 'More Channels' modal into the new modal pattern

* Fix unit test

* Readded CSS changes
2016-12-15 13:40:46 -03:00
Joram Wilander
c35b95709e Allow any user in a channel to remove other users (#4806) 2016-12-15 11:51:56 -03:00
George Goldberg
d88b4ef888 Make the webapp robust to not receiveing a position. (#4802) 2016-12-15 07:58:45 -03:00
Harrison Healey
0529b253fc PLT-4493 Fixed copy button in Get Link Modal on Safari 10 (#4786)
* Fixed copy button in Get Link Modal for Safari 10

* Shortened 'link copied' label on GetLinkModal
2016-12-14 18:10:49 -08:00
George Goldberg
0bbc599b68 Fix team chooser sort when there are no teams. (#4796) 2016-12-14 18:10:07 -08:00
Harrison Healey
c3d02100a9 PLT-4903 Rendered a placeholder for user reactions where the user hasn't been loaded (#4784)
* Rendered a placeholder for user reactions where the user hasn't been loaded

* Added id to reaction Tooltip

* Removed FormattedHTMLMessage from Reaction and improved support for different verb conjugations
2016-12-14 11:31:00 -05:00
Debanshu Kundu
3e350527a5 PLT-4907 Sorting team name for user's teams and other teams in ascending order of display name on team list page. (#4757) 2016-12-14 09:32:38 -05:00
George Goldberg
8406e854aa PLT-4332 Position field for Users (#4632)
* Add User.Position field to store & model.

* GOFMT

* Add Position to user settings.

* Unit tests.

* Add position to profile popup.

* i18n

* Fix log message for invalid position.

* Add Position field attribute to LDAP config.

* Add Position field attribute to SAML config.

* Reword empty position message.

* Change Position Max Length to 35.

* Better invalid position error message.

* Add new fields to config.json.

* Ensure position is never longer than max when displayed.

* Hard limit of 64 chars with soft limit still 35

* Put field with other attributes.
2016-12-14 08:11:51 -03:00
Asaad Mahmood
9735854503 Ui improvements (#4780)
* PLT-4897 - Updating styles for emoji reactions

* PLT-4971 - Fixing help and attachment buttons

* PLT-4931 - Fixing UI for user list in system console

* Fixing a bug with the new messages indicator
2016-12-14 00:25:10 -03:00
Joram Wilander
27aaa6dad3 Fix JS errors with RHS and flagged posts (#4771) 2016-12-12 21:52:19 -03:00
Asaad Mahmood
32842be309 Multiple Ui improvements (#4767)
* PLT-4911 - Adding new target for OAuth help links

* PLT-4953 - Fixing styles for the unread messages indicator

* PLT-4901 - Fixing header modal overlap on mobile

* PLT-4916 - Swapping position of edit and delete
2016-12-12 10:17:20 -05:00
Joram Wilander
30a10d35a8 PLT-4767 Implement MFA Enforcement (#4662)
* Create MFA setup page and remove MFA setup from account settings modal

* Add enforce MFA to system console and force redirect

* Lockdown mfa required API routes, add localization, other changes

* Minor fixes

* Fix typo

* Fix some unit tests

* Fix more unit tests

* Minor fix

* Updating UI for MFA screen (#4670)

* Updating UI for MFA screen

* Updating styles for MFA page

* Add the ability to switch between email/sso with MFA enabled

* Added mfa change email

* Minor UI updates for MFA enforcement

* Fix unit test

* Fix client unit test

* Allow switching email to ldap and back when MFA is enabled

* Fix unit test

* Revert config.json
2016-12-12 10:16:10 -03:00
Yusuke Nemoto
ddacfa58ba PLT-1598 Slash command works in RHS (#4367)
* PLT-1598 Slash command works in RHS

* fix UserProfile in the reply for Slash Command

* fix some problem about the system messages in RHS
* system message in RHS isn't displayed as comment for root message

* remove status indicator for system message in RHS

* system message in RHS is colored to grey

* system messages don't count as commented post

* fix bug about cleaning draft in RHS

* remove unnecessary function

* implement new model for executing command
2016-12-09 23:35:16 -05:00
Nick Frazier
cb870c83d1 PLT-4783 Fix autofocus for "Add/Manage Members" and "More public channels" modals (#4610)
* test fix

* additional test fix

* removed commented line

* test fix

additional test fix

removed commented line

fixed sidebar, rolled back web_client fix

* fix for more_channels input focus bug
2016-12-09 22:46:52 -05:00
Harrison Healey
c2be6497eb Changed SuggestionBox to clear suggestions shortly after losing focus (#4721) 2016-12-09 15:43:50 -08:00
Joram Wilander
65699c7c51 Remove status from webhook posts in compact mode (#4739) 2016-12-09 15:43:28 -08:00
Harrison Healey
e068c1d58e Fixed EmailAuthenticationSettings mutating the stored config (#4743) 2016-12-09 07:54:12 -05:00
Harrison Healey
d7ee335106 Fixed being unable to make the first post in a new channel (#4744) 2016-12-09 07:53:36 -05:00
Harrison Healey
5341e82ad7 Fixed typo causing NewMessageIndicator to fail to translate (#4738) 2016-12-08 13:13:32 -03:00
enahum
b57c9fec89 PLT-4894 channel switcher (CTRL+K) to match message autocomplete (#4733)
* PLT-4894 Change name display of direct messages in channel switcher (CTRL+K) to match message autocomplete

* Addressing feedback
2016-12-08 10:20:03 -05:00
Harrison Healey
7acd135e02 Removed duplicated characters when autocompleting composed characters (#4734) 2016-12-08 09:22:09 -03:00
Pepijn
7399d349de Created a new message indicator component to indicate new messages (#4299)
* Created a new message indicator component to indicate new messages are present
outside the user's view:

 * Created new component with styling

 * Theming and i18n support for new messages indicator

 * Count new unviewed messages and integrate with component

 * Coding style for new message indicator

* Fixed bugs with new message indicator:

 * Fix display issues with new message indicator
 * Update text to deal with plurals in React

* Fix coded style for ticket 'PLT-1917': add new message indicator.

* Use only server generated timestamps for checking new messages at the bottom

* Move transitionend to prop, fix style selectors
2016-12-07 18:08:37 -05:00
Nick Frazier
ed15f10b79 [PLT-4318] Display a message when post is over 4000 characters (#4687)
* test changes

* added functionality

* css updates

* additional css updates

* i18n updates

* textbox cleanup

* var naming tweak

* replaced jQuery with React-based UI changes
2016-12-06 18:49:36 -05:00