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

62 Коммитов

Автор SHA1 Сообщение Дата
David Meza
f740698dbe PLT-6486 Add an @username button to the profile popover, that puts the username in the post when clicked (#6349)
* PLT-6486 Add an `@username` button to the profile popover, that puts the username in the post when clicked

* PLT-6486 Display `@username` mention on the right text area on center or RHS.

* Disable @mentions from profile popover on searches, mentions and pinned posts. Fix js errors.

* Control undefined post in SearchStore that causes an exception.
2017-07-31 08:24:13 -04:00
Jonathan
27ff8bb146 PLT-7128: Added an undefined check around the scrollIntoView() command to avoid trying to scroll to something that has gone out of scope (#6998) 2017-07-27 08:17:47 -04:00
Chris
d49419776d Refresh the emoji library (#7001)
* refresh the emoji library

* fix img_trans.gif

* compress sprite sheet

* remove note on compression - webpack seems to handle compression decently

* better emoji sheet preloading

* requested changes
2017-07-25 14:47:03 -04:00
Chris
e5e450fc09 fix dm custom slash command regression (#7008) 2017-07-25 11:36:14 -07:00
Joram Wilander
97cfe62309 Remove bad checks for emoji picker preview feature (#6861) 2017-07-06 08:32:34 -04:00
Saturnino Abril
279c7b7fda [PLT-6969] System console setting for the emoji picker (#6809)
* system console setting for the emoji picker

* remove state.emojiPickerEnable

* update url to /admin_console/customization/emoji
2017-07-06 08:48:34 +08:00
Saturnino Abril
81a893b556 fix position of emoji picker (#6837) 2017-07-05 16:21:04 -04:00
Jaehyun, Park
50b662040c Add /help slash command (#6650)
* Add /help slash command

* Fix copyright year

* go fmt

* Add help command test at api4

* Fix jasonblais's issue

* Update test code

* Fix unit test issue - keep config unchanged
2017-06-29 10:38:56 -04:00
Joram Wilander
ab67f6e257 PLT-6215 Major post list refactor (#6501)
* Major post list refactor

* Fix post and thread deletion

* Fix preferences not selecting correctly

* Fix military time displaying

* Fix UP key for editing posts

* Fix ESLint error

* Various fixes and updates per feedback

* Fix for permalink view

* Revert to old scrolling method and various fixes

* Add floating timestamp, new message indicator, scroll arrows

* Update post loading for focus mode and add visibility limit

* Fix pinning posts and a react warning

* Add loading UI updates from Asaad

* Fix refreshing loop

* Temporarily bump post visibility limit

* Update infinite scrolling

* Remove infinite scrolling
2017-06-18 14:42:32 -04:00
Joram Wilander
528f2dc6c3 Merge release-3.10 into master (#6654)
* PLT-6787 Fixed being able to send a post before files finished uploading (#6617)

* Fix quick switcher for channels/users not stored locally (#6610)

* Fix button text on confirm mention modal (#6609)

* fix post delete permission of channel admin (#6608)

* open comment thread for the most recent reply-able message (#6605)

* Use mutex flag with yarn to prevent concurrent builds interfering (#6619)

* Use mutex flag with yarn to prevent concurrent builds interfering

* Remove yarn mutex file with clean

* Minor bug fixes (#6615)

* PLT-6774 - Fixing color for offline icon

* PLT-6784 - Fixing status icon

* Fixing icon margin

* Updating caret position

* PLT-6070 Have ChannelMentionProvider stop searching after a term returns no results (#6620)

* Fixing JS error (#6623)

* Minor bug fixes (#6622)

* PLT-6808 - Updating channel switcher on mobile

* PLT-6743 - Updating scrollbar styling

* Login instead of failing if user exists in OAuth sign-up flow (#6627)

* PLT-6802 Disable team switcher (#6626)

* Disable team switcher

* Fix ESLint errors

* PLT-6807 Ensured select teams page can scroll on iOS (#6630)

* Do not redirect from account switch pages on 401 (#6631)

* Fixing loadtest command and renaming to /test (#6624)

* PLT-6820 Update mattermost-redux dependency (#6632)

* translations PR 20170612 (#6629)

* Bump HTTP client timeout to 30 seconds (#6633)

* For team unreads return empty array instead of null (#6636)

* PLT-6831 Fix status modal localization IDs (#6637)

* Fix status modal localization IDs

* Update test snapshot
2017-06-15 11:05:43 -04:00
Harrison Healey
40efd8367a PLT-6127/PLT-6135/PLT-6137 Added EmojiPickerOverlay component to better position emoji picker (#6352)
* Cleaned up emoji picker CSS

* Fixed border of emoji picker when reacting to comments in the RHS

* PLT-6135 Made EmojiPicker automatically position itself above/below the [...] menu

* PLT-6135 Changed post textbox emoji picker to use a RootCloseWrapper

* PLT-6135 Changed comment textbox emoji picker to use a RootCloseWrapper

* PLT-6135 Changed RHS post components to use EmojiPickerOverlay

* Removed react-outside-event package

* Fixed merge conflict

* Fixed emoji picker position on posts in RHS

* Removed unused CSS classes

* Fixed not being able to react to posts with emoji picker
2017-06-13 11:35:45 -07:00
Christopher Speller
2bbedd9def Updating client dependencies. Switching to yarn. (#6433)
* Updating client dependancies. Switching to using yarn.

* Updating React

* Moving pure components to using function syntax (performance gains with newer react version)

* Updating client dependancies.

* Ignore .yarninstall

* Enabling pre-lockfile because it's the entire point of using yarn.

* Removing old webpack config

* Moving to new prop-types

* Fixing ESLint Errors

* Updating jest snapshots.

* Cleaning up package.json
2017-05-18 09:28:18 -04:00
Harrison Healey
fb6f2a123c PLT-5860 Updated copyright date (#6058)
* PLT-5860 Updated copyright date in about modal

* PLT-5860 Updated copyright notice in JSX files

* PLT-5860 Updated copyright notice in go files

* Fixed misc copyright dates

* Fixed component snapshots
2017-04-12 08:27:57 -04:00
Harrison Healey
6ae3464484 Fixed pasting images not working (#5971) 2017-04-04 12:25:55 -04:00
bonespiked
c3d095b465 Add reaction picker (#5904) 2017-04-01 17:00:30 -04:00
bonespiked
28ad645153 Ticket 4665 - Emoji Picker (#5157)
*  #4665  Added EmojiPicker

Work primarily by @broernr-de and @harrison on pre-release.mattermost.com

* Final fixes to handle custom emojis from internal review and single merge error

* ESLint fixes

* CSS changes and other code to support emoji picker in reply window

* Fix for file upload and emoji picker icon positions on post and comment.

RHS emoji picker appearing see-through at this time.

* Fix for two ESLint issues.

* covered most of feedback:
RHS emoji picker looks correct color-wise
RHS emoji picker dynamically positions against height of thread size (post + reply messages)
escape closes emoji window
search box focused on open

ESLint fixes against other files
oversized emoji preview fixes

* Adding in 'outside click' eventing to dismiss the emoji window

* Changing some formatting to fix mismatch between my local eslant rules and jenkins.

* adding alternative import method due to downstream testing errors

* yet another attempt to retain functionality and pass tests - skipping import of browser store

* fix for feedback items 5 and 7:
* move search to float on top with stylistic changes
* whitespace in the header (+1 squashed commit)
Squashed commits:
[6a26d32] changes that address items
1, 2, 6, 8, and 9 of latest feedback

* Fix for attachment preview location on mobile

* Fix for latest rounds of feedback

* fixing eslint issue

* making emojipicker sprite based, fixing alignments

* Fix for emoji quality, fixing some behavior (hover background and cursor settings)
undoing config changes

* Preview feature for emojis

* Adjustments to config file, and changing layout/design of attachment and emoji icon.

* manual revert from master branch for config.json

* reverting paperclip and fixing alignments.  Additionally fixing inadvertent display of picker on mobile.

* CSS changes to try to fix the hover behavior - currently working for emoji picker (when enabled), but hover for attachment isn't working

* Made suggested changes by jwilander except for jQuery removal

* Adding hover for both icons

* removal of some usages of jQuery

* Fix for two layout issues on IE11/Edge

* UI improvements for emoji picker

* Fix for many minor display issues

* fix for additional appearance items

* fix to two minor UI items

* A little extra padding for IE11

* fix for IE11 scroll issue, and removing align attribute on img tag which was throwing js error

* fixes some display issues on firefox

* fix for uneven sides of emojis

* fix for eslint issues that I didn't introduce

* fix for missing bottom edge of RHS emojipicker.  also fixing text overlapping icons on text area (including RHS)

* Update "emoji selector" to "emoji picker"

* changes for code review
- removal of ..getDOMNode
- use sprite imagery for emoji preview
- remove lastBlurAt from state as it wasn't used

* fixes for:
- fake custom emoji preview in picker
- RHS scrollbar on preview

* fix for minor alignment of preview emoji
2017-03-24 09:09:51 -04:00
George Goldberg
d79c40f330 PLT-5772: Use standardised javascript method instead of Chrome-only one. (#5708) 2017-03-09 19:41:42 +00:00
Christopher Speller
944e74feb8 Prevented RHS from closing when you reply to a message that had been deleted. (#5651) 2017-03-06 16:10:43 -05:00
Corey Hulen
61be3d7e2c Fixing issue with safari and not closing (#5601) 2017-03-04 00:03:45 -03:00
Saturnino Abril
f6d22ee4f0 [PLT-5445] Mobile view: Set focus back to message box after uploading a file (#5360) 2017-02-23 08:57:41 +00:00
Saturnino Abril
4aeb78e94a PLT-5441 Disabled the "Add Comment" button in the right-hand side unless there is a valid input (#5320) 2017-02-14 13:42:33 +00:00
Mika Andrianarijaona
9eb5727841 PLT-137: Disable upload button when max uploads reached (#5053)
* Change upload button color opacity when max reached

* Display max upload message

* Remove error when deleting preview

* Clear error message in side-bar

when user reaches max upload and error is displayed in side-bar, removing one file won't remove error message

* Scroll in preview after file upload in sidebar
2017-01-18 18:00:21 -03:00
Harrison Healey
7846036c77 Stopped rerendering CreatePost/CreateComment when blurring textbox (#5026) 2017-01-10 09:08:37 -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
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
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
enahum
4df1ad2b28 PLT-4859 Email notifications sent when email notifications set to never (#4711) 2016-12-06 10:22:19 -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
Joram Wilander
b9b986b741 Fix replying to threads with empty message and a file (#4693) 2016-12-05 09:43:35 -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
Mike Piccolo
dbdd719c51 PLT-4376 iOS and Android: Keep the keyboard open after sending a message (#4377)
* Force keyboard to retain focus on submitting post on mobile

* Fix lint error

* Allow keyboard to stay closed if the keyboard was closed earlier before submitting

* Increase delay time and add to comment

* Remove pass through props on suggestion box
2016-11-04 09:14:19 -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
Harrison Healey
1d4f42acd9 Fixed comment drafts to use the same naming convention as post drafts (#4385) 2016-11-01 08:34:33 -04:00
Joram Wilander
db80a819f7 Fix opening RHS (#4402)
* Fix opening RHS

* Add fix for draft itself
2016-11-01 08:30:33 -04:00
Harrison Healey
0741d3be0a PLT-4404 Replace calls to onInput with onChange to better support IE11 (#4315)
* Replace calls to onInput with onChange to better support IE11

* Replaced react-textarea-autosize with react-autosize-textarea
2016-10-25 10:11:34 -04:00
Harrison Healey
816a738d28 PLT-4343 Fixes for mobile main menu (#4148)
* Fixed mobile app link in the main menu to be displayed on mobile browsers

* Fixed doubled up dividers in mobile menu

* Added scrolling to mobile main menu
2016-10-04 14:38:19 -04:00
Harrison Healey
8a0e649f98 PLT-3105 Files table migration (#4068)
* Implemented initial changes for files table

* Removed *_benchmark_test.go files

* Re-implemented GetPublicFile and added support for old path

* Localization for files table

* Moved file system code into utils package

* Finished server-side changes and added initial upgrade script

* Added getPostFiles api

* Re-add Extension and HasPreviewImage fields to FileInfo

* Removed unused translation

* Fixed merge conflicts left over after permissions changes

* Forced FileInfo.extension to be lower case

* Changed FileUploadResponse to contain the FileInfos instead of FileIds

* Fixed permissions on getFile* calls

* Fixed notifications for file uploads

* Added initial version of client code for files changes

* Permanently added FileIds field to Post object and removed Post.HasFiles

* Updated PostStore.Update to be usable in more circumstances

* Re-added Filenames field and switched file migration to be entirely lazy-loaded

* Increased max listener count for FileStore

* Removed unused fileInfoCache

* Moved file system code back into api

* Removed duplicate test case

* Fixed unit test running on ports other than 8065

* Renamed HasPermissionToPostContext to HasPermissionToChannelByPostContext

* Refactored handleImages to make it more easily understandable

* Renamed getPostFiles to getFileInfosForPost

* Re-added pre-FileIds posts to analytics

* Changed files to be saved as their ids as opposed to id/filename.ext

* Renamed FileInfo.UserId to FileInfo.CreatorId

* Fixed detection of language in CodePreview

* Fixed switching between threads in the RHS not loading new files

* Add serverside protection against a rare bug where the client sends the same file twice for a single post

* Refactored the important parts of uploadFile api call into a function that can be called without a web context
2016-09-30 11:06:30 -04:00
Yi EungJun
bb69e98631 PLT-4182 Fix incorrect listing for at-mention in comment (#4031)
* Add missing eol

* PLT-4182 Fix incorrect listing for at-mention in comment

Suggestion box for at-mention listed users for the center channel even
if the current textbox is for reply for a post which belongs to a
different channel.
2016-09-19 17:41:19 -04:00
Ryan Wang
efef3e8ee2 Ctrl+Enter sends messages in mobile view (#3833) 2016-08-19 12:52:48 -04:00
David Lu
426b14d8a9 fixed mobile enter button (#3639) 2016-07-25 10:16:07 -04:00
Christopher Speller
1641370fbe Moving javascript driver back to platform (#3613) 2016-07-19 10:16:44 -04:00
Harrison Healey
500b2dce10 Fixed input handlers used by Textbox and SuggestionBox components to properly update when typing quickly (#3598) 2016-07-15 10:37:51 -04:00
Christopher Speller
b5c5744bc7 Updating ESLint (#3597) 2016-07-15 07:49:57 -04:00
Joram Wilander
2abc5a4a1a Fix occasional visual hiccup when posting/replying to messages (#3397) 2016-06-22 12:29:03 -04:00
JoramWilander
5af526c259 Merge branch 'release-3.1'
Conflicts:
	webapp/components/create_comment.jsx
2016-06-13 15:29:24 -04:00
enahum
18c53e03eb PLT-3221 Remove async call to get posts when creating a comment and editing a post (#3300)
PLT-3203 Commenting on the RHS while in permalink view makes the message not show up in the RHS
2016-06-09 11:28:57 -07:00
enahum
3a6694cc6b PLT-3203 Commenting on the RHS while in permalink view makes the message not show up in the RHS (#3282) 2016-06-07 17:43:36 -04:00
enahum
a3bdf448eb PLT-3163Commenting in the RHS while in permalink view (#3272) 2016-06-06 15:49:13 -04:00
enahum
65f51c7bc4 PLT-3056 Fix Unable to type quickly in post textbox in IE11 (#3249) 2016-06-06 14:54:02 -04:00
David Lu
2c42294bbc PLT-3101 Added message history (#3205)
* Added message history

* Minor logical changes

* Fixed indexes resetting

* Fixed double messages

* Fixed resetting main history when RHS opened
2016-06-06 13:01:35 -04:00