Commit Graph

171 Commits

Author SHA1 Message Date
Joram Wilander
06f89cea30 Final fixes for moving unread handling to client (#5392) 2017-02-13 15:19:41 -05:00
Joram Wilander
892f8f4651 Fix ignore unread and DM unreads (#5391)
* Fix ignoring unreads in channels

* Fix DM unreads
2017-02-13 13:50:08 -05:00
Robin Naundorf
54c699b7ca Fix typo (#5380)
* Replace 'recieve' with 'receive'
2017-02-13 15:29:54 +00:00
Joram Wilander
ff741740ee Increase performance when receiving messages (#5375) 2017-02-13 09:27:28 -05:00
Akihiko Odaki
432dc9239f Let emoji_store.jsx use Client APIs to resolve URLs (#5302) 2017-02-08 18:23:24 +00:00
Akihiko Odaki
68a05653ea Add webapp/utils/url.jsx (#5285)
webapp/utils/utils.jsx got big and that caused a potential circular
dependency with webapp/stores/team_store.jsx. This change solves the
issue by introducing webapp/utils/url.jsx and moving URL-related
functions, which is not likely to depend on actions and stores, from
webapp/utils/utils.jsx.
2017-02-07 07:20:01 -08:00
Harrison Healey
948b557453 Partially reverted 7e9cf13aa3 (#5295) 2017-02-03 14:21:10 -05:00
Saturnino Abril
9ba968ce33 Use consistent Display Name sorting code throughout the webapp #5159 (#5213)
* Use consistent Display Name sorting code throughout the webapp #5159

* fixed broken sorting of teams and channels
2017-01-31 20:57:16 -03:00
Akihiko Odaki
7e9cf13aa3 Use Client APIs to resolve URLs (#5148) 2017-01-31 09:29:21 -05:00
Christopher Speller
450c0b3ccb Improvments to typing messages (#5230) 2017-01-30 15:43:34 -05:00
Harrison Healey
39ee5737b7 PLT-2555/PLT-5009/PLT-5225 Changed system messages to be rendered by the client (#5209)
* Moved rendering of (message deleted) into PostMessageView

* Added additional post types to constants on client

* Changed system messages to be rendered in the client's language

* Updated new system messages to have relevant usernames highlighted and have markdown rendered in header change messages
2017-01-30 11:49:00 -05:00
Joram Wilander
63d68b3e36 Fix @ mentions not always highlighting (#5223) 2017-01-30 10:59:00 -05: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
George Goldberg
f9b57b65ea PLT-5135: Fix left channel in more channels list. (#5114)
The problem was it was not being sorted, so appeared at the bottom of
the list.
2017-01-18 17:46:21 -03:00
Amit Yadav
99cf08ac38 Message Editing and Deleting permissions (#4692) 2017-01-18 08:08:31 -05:00
Joram Wilander
6b2c4a346b Discard outdated results in modal searches (#5082) 2017-01-16 18:32:51 -05:00
Joram Wilander
4257114a37 Fix lodaing missing messages after search bug (#5080) 2017-01-16 18:32:08 -05: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
Joram Wilander
4208e42ba9 Fix JS error when receiving message in system console (#5019) 2017-01-12 10:52:58 -05:00
Christopher Speller
60a59a67fe Fixing deleting messages in permalink view (#4958) 2017-01-04 14:23:41 -05:00
Joram Wilander
2308499fa4 Fix unread for your own message after logout (#4943) 2017-01-03 12:37:47 -05: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
cadc9e11e4 Remove race between multiple autocomplete requests (#4860) 2016-12-21 12:45:21 -05:00
Harrison Healey
629d38e256 Removed usage of removed TeamStore method (#4785) 2016-12-19 15:58:13 +00: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
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
enahum
778e89aab4 Fix JS error when someone posts a message in a another team (#4791) 2016-12-14 10:27:54 -05:00
Joram Wilander
27aaa6dad3 Fix JS errors with RHS and flagged posts (#4771) 2016-12-12 21:52:19 -03:00
George Goldberg
e28dea6b11 PLT-4914 Sort custom emoji on whole name. (#4768) 2016-12-12 12:28:30 -03:00
Joram Wilander
42f28886cc Autocomplete is now case insensitive (#4709) 2016-12-06 10:50:56 -05:00
enahum
145876681f Fix react warnings and part of backstage (#4706) 2016-12-05 08:19:12 -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
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
Joram Wilander
3c65a20f45 Deleted posts now update in search results and flagged posts (#4618) 2016-11-22 09:13:14 -05:00
Christopher Speller
0ef77dff13 Fixing new messages indicator (#4614) 2016-11-21 12:17:58 -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
Brian Olecki
6297922ab9 Add support for editing slash commands (#4335) 2016-11-15 12:43:16 -03:00
Joram Wilander
a25ae8fed2 Off screen edited posts no longer show up as new posts (#4485) 2016-11-14 07:38:05 -05:00
enahum
a6d6880d99 PLT-4620 fix ios safari private browsing (#4526) 2016-11-14 07:16:39 -05:00
Christopher Speller
ced5f54500 Fixing new messages indicator (#4531) 2016-11-11 14:55:05 -05:00
Harrison Healey
2f488b13c7 Fixed autocomplete not working when not at the start of the textbox (#4532) 2016-11-11 08:29:58 -05:00
Harrison Healey
03e3ac60c2 PLT-4600 Properly clear autocomplete suggestions when suggestions are out of date (#4529)
* PLT-4600 Better clear autocomplete suggestions when suggestions are out of date

* Fixed react warnings and removed an eslint ignore
2016-11-10 17:00:14 -05:00
Joram Wilander
00787974d0 PLT-4481 Fix member count for team user lists and channel invite list (#4422)
* Fix member count for team user lists and channel invite list

* Fix client unit test
2016-11-04 12:27:19 -04:00
Joram Wilander
137ade29d0 PLT-4535/PLT-4503 Fix inactive users in searches and add option functionality to DB user search (#4413)
* Add options to user database search

* Fix inactive users showing up incorrectly in some user searches

* Read JSON for searchUsers API into anonymous struct

* Move anonymous struct to be a normal struct in model directory and upadte client to use it

* Added clarification comment about slightly odd query condition in search
2016-11-02 14:38:34 -04:00
Harrison Healey
9f6ba5e031 PLT-4595 Fixed post drafts and renamed some fields to be consistent (#4418)
* PLT-4595 Fixed post drafts and renamed some fields to be consistent

* Removed unused state from CreatePost
2016-11-01 15:46:41 -07:00
Christopher Speller
b0f38f8a84 Fixing websocket and team store issues when leaving team (#4412) 2016-11-01 15:50:34 -04:00
Harrison Healey
b4002ba55f Plt-4483 Removed unnecessary events from ChannelStore (#4407)
* PLT-4483 Removed MoreChange listener from ChannelStore

* PLT-4483 Removed LeaveChannel listener from ChannelStore
2016-11-01 09:58:04 -07:00
Joram Wilander
6d3b3162b0 Fixes for creating teams (#4387) 2016-11-01 08:34:52 -04:00