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

136 Коммитов

Автор SHA1 Сообщение Дата
Saturnino Abril
784d85f46d Move instances of Client.inviteMembers() in components to an action (#5154) 2017-01-23 09:07:34 +00:00
Saturnino Abril
efbaa1eb03 Move instances of Client.updateUserNotifyProps() in components to an action (#5156) 2017-01-23 09:03:57 +00:00
Debanshu Kundu
3aaf71fdea #4257 Added functionality to create previews for post links using open graph data from those links. (#4890) 2017-01-20 14:41:13 -03:00
Carlos Tadeu Panato Junior
6097f93704 Move instances of Client.leaveChannel() in components to an action (#5131)
* Move instances of Client.leaveChannel() in components to an action

* create isFavoriteChannelId
2017-01-20 09:45:22 -05:00
Carlos Tadeu Panato Junior
6aec2b6c55 Move instances of Client.getInviteInfo() in components to an action (#5130) 2017-01-20 08:22:58 -05:00
Carlos Tadeu Panato Junior
576c662f27 Move instances of Client.deletePost() in components to an action (#5129) 2017-01-19 23:03:47 -03:00
Carlos Tadeu Panato Junior
48e1fa8aa0 Move instances of Client.addUserToTeamFromInvite() in components to an action (#5132) 2017-01-19 23:02:05 -03:00
Carlos Tadeu Panato Junior
61b7226533 Move instances of Client.updateChannelPurpose() in components to an action (#5096) 2017-01-19 08:40:21 -05:00
George Goldberg
e15ae2253a PLT-5050 (WebApp): Change channel member roles. (#5076)
Admins can now Promote/Demote channel members in the Channel Manage
Membersmodal.
2017-01-18 17:54:48 -03:00
Carlos Tadeu Panato Junior
8f0175e15c Move instances of Client.updateChannelHeader() in components to an action (#5098) 2017-01-17 15:49:58 -05:00
Joram Wilander
4257114a37 Fix lodaing missing messages after search bug (#5080) 2017-01-16 18:32:08 -05:00
Corey Hulen
441fe5334e PLT-5134 removing the async sending from update user (#5078) 2017-01-16 18:31:26 +00:00
George Goldberg
95251258f5 PLT-5049 (Webapp) New Channel Members UI. (#5036)
This replaces the existing Channel Members UI with one based on the Team
Members UI, so that either a button, a role or a role with a menu can be
displayed.

Basic logic for which actions and roles are displayed is implemented,
although this doesn't change behaviour or functionality at all, as that
will come in later PRs. It does, however, add code to fetch the
ChannelMember objects as that is necessary to provide the full set of
actions and roles as intended.
2017-01-15 10:40:43 -05:00
Mika Andrianarijaona
e69809dce3 GH-4907 Move Client.updatePost call into an action (#5045)
* move Client.updatePost into an action

Client.updatePost where called from components so they needed to be moved inside action and call that action from component instead

fixes #4907

* move loadPost in updatePost callback

* Add loadPosts call in updatePost action

* Lint: remove trailing spaces
2017-01-13 10:48:49 -03:00
George Goldberg
0196137dec PLT-5238: Show error on execute invalid slash command. (#5057) 2017-01-13 10:42:20 -03:00
Christopher Speller
8fb66c2b83 Merge branch 'release-3.6' 2017-01-12 19:59:37 -05:00
Joram Wilander
04893cbe7c Reset unread counts for channels being switched to/away (#5037) 2017-01-10 16:17:22 -05:00
AymaneKhouaji
0cba48d155 Move instances of Client.updatePassword() in components to an action (#4908) (#5021) 2017-01-10 10:48:37 +00:00
Joram Wilander
b79ce19aea Temporary fix for JS errors when logging out with non-english language (#4990) 2017-01-06 09:00:30 -05:00
Christopher Speller
45585e6c2a Fixing errors on user updates (#4962) 2017-01-04 15:18:34 -05:00
Harrison Healey
63d2851ec7 PLT-5109/PLT-5112 Fixed commented out unit tests (#4951)
* Removed note about unconfirmed race condition

* Fixed unit tests in client_channel.test.jsx

* Fixed updateActive unit test on client
2017-01-04 09:30:14 -05:00
Joram Wilander
fba49d1b80 Fix console error when logging in with non-english language (#4941) 2017-01-03 12:38:51 -05:00
Joram Wilander
2308499fa4 Fix unread for your own message after logout (#4943) 2017-01-03 12:37:47 -05:00
khawerrind
7cdfba62ef PLT-3960 Don't show (message deleted) placeholder to the user that deleted the message (#4839)
* on post delete remove the whole post for the owner of the post while other user will still see post deleted message

* now the deleter wont see the post while the other users will see deleted message

* removed fromSocket check and now calling PostStore.removePost instead of PostStore.deletePost from view

* fixed the bug which was causing to show message deleted until next action

* added remove post from store to global action

* moved removePostFromStore from global actions to post actions
2017-01-03 10:02:47 -05:00
Joram Wilander
2a91e5e031 Clean up /logout command flow and errors (#4918) 2016-12-30 13:12:43 -05:00
Joram Wilander
20b9954424 Fix console errors when logging out (#4915) 2016-12-29 15:48:46 -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
47581e6964 Fix error after leaving team (#4888) 2016-12-26 09:28:40 -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
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
Björn Roland
84c6e376fa #4695 Move instances of Client.updateTeamMemberRoles() in components to an action (#4870) 2016-12-22 10:46:13 -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
Björn Roland
f0b74e78dd #4699 Move instances of Client.updateChannelNotifyProps() in components to an action (#4862) 2016-12-21 11:27:42 -03: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
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
Carlos Tadeu Panato Junior
f27aca4b73 Move instances of Client.createPost() in components to an action (#4639)
* Move instances of Client.createPost() in components to an action

* update per review, waiting for more review and see if this is the right way

* update per code review

* update code

* remove comment per request
2016-12-05 12:59:12 -05:00
enahum
145876681f Fix react warnings and part of backstage (#4706) 2016-12-05 08:19:12 -05:00
Carlos Tadeu Panato Junior
8c18da21f3 Move instances of Client.updateChannel() in components to an action (#4643)
* Move instances of Client.updateChannel() in components to an action

* update per code review
2016-12-01 09:04:33 -05:00
Harrison Healey
165ad0d4f7 PLT-1378 Initial version of emoji reactions (#4520)
* Refactored emoji.json to support multiple aliases and emoji categories

* Added custom category to emoji.jsx and stabilized all fields

* Removed conflicting aliases for :mattermost: and :ca:

* fixup after store changes

* Added emoji reactions

* Removed reactions for an emoji when that emoji is deleted

* Fixed incorrect test case

* Renamed ReactionList to ReactionListView

* Fixed 👍 and 👎 not showing up as possible reactions

* Removed text emoticons from emoji reaction autocomplete

* Changed emoji reactions to be sorted by the order that they were first created

* Set a maximum number of listeners for the ReactionStore

* Removed unused code from Textbox component

* Fixed reaction permissions

* Changed error code when trying to modify reactions for another user

* Fixed merge conflicts

* Properly applied theme colours to reactions

* Fixed ESLint and gofmt errors

* Fixed ReactionListContainer to properly update when its post prop changes

* Removed unnecessary escape characters from reaction regexes

* Shared reaction message pattern between CreatePost and CreateComment

* Removed an unnecessary select query when saving a reaction

* Changed reactions route to be under /reactions

* Fixed copyright dates on newly added files

* Removed debug code that prevented all unit tests from being ran

* Cleaned up unnecessary code for reactions

* Renamed ReactionStore.List to ReactionStore.GetForPost
2016-11-30 13:55:49 -05:00
Joram Wilander
557aa68636 PLT-4233 When internet reconnects, reconnect websocket and grab latest posts, etc. (#4500)
* When internet reconnects, reconnect websocket and grab latest posts, etc.

* Rename internet connection variable
2016-11-29 12:37:59 -03:00
enahum
702c4cb121 Fix more react warnings & fix saving theme (#4667) 2016-11-29 10:15:46 -05:00
Joram Wilander
02d581c159 PLT-4697 Update channel switcher to autocomplete all users on the system (#4624)
* Add autocomplete API for system-wide users

* Update channel switcher to autocomplete all users on the system
2016-11-29 10:12:59 -05:00
Nick Frazier
ad52183248 Move instances of Client.updateUserRoles() in components to an action (#4657)
* moved updateUserRoles to user_actions

* updated second updateUserRoles call
2016-11-29 09:10:02 -05:00
Joram Wilander
981ea33b8e PLT-4403 Add server-based channel autocomplete, search and paging (#4585)
* Add more channel paging API

* Add channel paging support to client

* Add DB channel search functions

* Add API for searching more channels

* Add more channel search functionality to client

* Add API for autocompleting channels

* Add channel autocomplete functionality to the client

* Move to be deprecated APIs to their own file

* Final clean-up

* Fixes related to feedback

* Localization changes

* Add unit as suffix to timeout constants
2016-11-24 09:35:09 -05:00
Christopher Speller
c96ecae6da Merge branch 'release-3.5' 2016-11-24 09:08:46 -05:00
Harrison Healey
fd019eefbb Fixed error logged when joining a team from another tab (#4620) 2016-11-21 16:48:27 -05:00