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

116 Коммитов

Автор SHA1 Сообщение Дата
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
Harrison Healey
a9824a3653 Hotfix: PLT-4779 Fixing scrolling on loading a channel and missing DM channel headers (#4584)
* Added all parameters to call tracker ids when getting profiles

* Changed channel header rendering to not depend on knowing all users in a DM channel

* Added comment about a race condition in UserActions.populateDMChannelsWithProfiles

* Added a fixed-height placeholder for the ChannelHeader when its state isn't valid for rendering
2016-11-21 12:17:46 -05:00
Joram Wilander
50ab9626eb Properly load profile for new posts that have unloaded users (#4578) 2016-11-21 12:17:21 -05:00
Carlos Tadeu Panato Junior
34c3e9e50d Move instances of Client.updateTeam() in components to an action (#4574)
* Move instances of Client.updateTeam() in components to an action

* remove client from missing ones

* update code per review

* update per code review
2016-11-18 17:21:32 -05:00
Pepijn
6d2882f6e7 Don't show desktop notifications for messages entering the channel th… (#4216)
* Don't show desktop notifications for messages entering the channel the user is currently on

Coding style fixes

Allow notifications if browser tab is not focussed

* Don't show desktop notifications for messages entering the channel the user is currently on

Coding style fixes

Allow notifications if browser tab is not focussed

* Mute sound when a user doesn't get a desktop notification

* Also play sound on desktop notifications

* Fixed reviewer's remarks:
 * Removed double notification check
 * Removed direct links to browser store, created separate actions
2016-11-17 13:46:07 -05:00
Carlos Tadeu Panato Junior
091e5b8e03 PLT-4572 - Move instances of Client.updateUser() in components to an action (#4571)
* Move instances of Client.updateUser() in components to an action
2016-11-17 11:25:11 -03:00
Christopher Speller
e4f46124b0 Merge branch 'release-3.5' 2016-11-15 08:06:58 -05:00
Harrison Healey
814d2fc88d Fixed websocket to properly logout when logged out from another tab (#4546) 2016-11-14 13:48:28 -05:00
Joram Wilander
db0314053e Move channel click dispatch outside of promise (#4545) 2016-11-14 13:48:22 -05:00
Joram Wilander
a25ae8fed2 Off screen edited posts no longer show up as new posts (#4485) 2016-11-14 07:38:05 -05:00
Christopher Speller
ced5f54500 Fixing new messages indicator (#4531) 2016-11-11 14:55:05 -05:00
Joram Wilander
2fdb33042a Load profiles for search results (#4519) 2016-11-10 09:25:43 -05:00
Joram Wilander
8c76560b48 Fix websocket on old versions of IE11 (#4501) 2016-11-10 09:22:06 -05:00
Christopher Speller
b37eb09c37 Removing ALT-click beacuse bug was not fixed (#4454) 2016-11-04 14:31:15 -04:00
Joram Wilander
0234f793f2 EE: PLT-4512 Show secret in addition to QR code when activating MFA (#4427)
* EE: Update MFA to display secret for manual entry

* Width adjustments for secret (#4423)

* Add unit test
2016-11-03 10:41:11 -04:00
Christopher Speller
b0f38f8a84 Fixing websocket and team store issues when leaving team (#4412) 2016-11-01 15:50:34 -04:00
Harrison Healey
eaaed77603 PLT-4596 Stopped trying to get new users when not in a context with a team (#4411) 2016-11-01 14:28:37 -04:00
Joram Wilander
92642bab68 Load channel members with channels to make sure we have latest unread counts (#4389) 2016-11-01 11:13:33 -04:00
Joram Wilander
d67a2e1f0c Fix new DMs not showing up in the sidebar (#4374) 2016-10-31 09:11:23 -04:00
enahum
f82667f3b8 PLT-4430 improve slow channel switching (#4331)
* PLT-4430 improve slow channel switching

* Update client side unit tests

* Convert getChannelsUnread to getMyChannelMembers and address other feedback

* Pull channel members on websocket reconnect
2016-10-27 11:24:30 -04:00
Alexander Smaga
b354d25d37 GH-4095 Favorite/Starred Channels (#4222) 2016-10-26 08:20:45 -04:00