Commit Graph

84 Commits

Author SHA1 Message Date
Saturnino Abril
83f819451a [GH-5915] Clicking on @mention of a user in a post shows the profile popover (#6129)
* post message at-mention profile pop-over

* remove hover effect to special mentions

* make non-clickable the non-existing at-mention username

* fix "video call" position

* use usernameMap instead of initially defined liteUsernameMap

* update per comments
2017-05-01 10:08:54 -04:00
Joram Wilander
96906482ce PLT-6214 Move channel store and actions over to redux (#6235)
* Move channel store and actions over to redux

* Fix style errors

* Fix unit test

* Various fixes

* More fixes

* Revert config changes
2017-04-28 13:16:03 -04:00
Joram Wilander
7307156c49 PLT-6213 Move team store and actions over to use redux (#6222)
* Move team store and actions over to user redux

* Fix JS error when inviting by email
2017-04-26 15:49:15 -04:00
Joram Wilander
6c4c706313 Start moving webapp to Redux (#6140)
* Start moving webapp to Redux

* Fix localforage import

* Updates per feedback

* Feedback udpates and a few fixes

* Minor updates

* Fix statuses, config not loading properly, getMe sanitizing too much

* Fix preferences

* Fix user autocomplete

* Fix sessions and audits

* Fix error handling for all redux actions

* Use new directory structure for components and containers

* Refresh immediately on logout instead of after timeout

* Add fetch polyfill
2017-04-25 11:46:02 -04:00
Christopher Speller
cbb6a30596 Adding more text to webpack build so jenkins doesn't timeout (#5972) 2017-04-04 12:33:56 -04:00
Joram Wilander
ea17e8d004 Fix console error and reverted colorpicker upgrade to prevent crash (#5897) 2017-03-31 09:55:03 -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
7d449e0556 PLT-5755: Infrastructure for Component Testing. (#5814)
This migrates the existing webapp tests to using Jest and Enzyme. The
infrastructure is put in place for React component testing, and a few
simple example component tests are implemented.

This also adds snapshot testing of components, coverage checking for the
webapp (although that is not yet integrated to Coveralls), and the
ability to run npm run test:watch to automatically re-run affected tests
when working on the webapp codebase.
2017-03-23 14:05:36 -04:00
Christopher Speller
3b081bda08 Update eslint (#5752)
* Updating eslint

* Updating eslint-plugin-react
2017-03-13 16:42:25 -04:00
Christopher Speller
c84b761e75 Updating client dependancies except ESLint and react-router (#5750) 2017-03-13 13:58:12 -04:00
Harrison Healey
579ad305e1 PLT-5722 Fix formatText to fail gracefully when input is not text (#5670)
* Updated marked to remove incorrect error message

* Fix formatText to fail gracefully when input is not text
2017-03-06 21:20:29 -05:00
Joram Wilander
3a91d4e5e4 PLT-3077 Add group messaging (#5489)
* Implement server changes for group messaging

* Majority of client-side implementation

* Some server updates

* Added new React multiselect component

* Fix style issues

* Add custom renderer for options

* Fix model test

* Update ENTER functionality for multiselect control

* Remove buttons from multiselect UI control

* Updating group messaging UI (#5524)

* Move filter controls up a component level

* Scroll with arrow keys

* Updating mobile layout for multiselect (#5534)

* Fix race condition when backspacing quickly

* Hidden or new GMs show up for regular messages

* Add overriding of number remaining text

* Add UI filtering for team if config setting set

* Add icon to channel switcher and class prop to status icon

* Minor updates per feedback

* Improving group messaging UI (#5563)

* UX changes per feedback

* Update email for group messages

* UI fixes for group messaging (#5587)

* Fix missing localization string

* Add maximum users message when adding members to GM

* Fix input clearing on Android

* Updating group messaging UI (#5603)

* Updating UI for group messaging (#5604)
2017-03-02 17:48:56 -05:00
Akihiko Odaki
432dc9239f Let emoji_store.jsx use Client APIs to resolve URLs (#5302) 2017-02-08 18:23:24 +00:00
Christopher Speller
177589b1e2 Updating client dependancies except ESLint and react-router (#5253) 2017-02-03 08:23:10 -05:00
Harrison Healey
24f02a15c1 Updated marked to allow escaping pipe characters and to restrict reference links (#5278) 2017-02-02 18:22:42 -05:00
Harrison Healey
2554ae4a25 Updated marked to better handle Windows network paths (#5102) 2017-01-18 17:49:51 -03:00
Harrison Healey
cdf91d8ee8 Updated marked to better handle underscores within words (#5093) 2017-01-17 15:43:42 -05:00
enahum
1442199647 PLT-4644 Update webrtc client (#4922)
* PLT-4644 Update webrtc client

* update webrtc-adapter

* Use default ice server if none is provided
2017-01-03 10:08:21 -05:00
Harrison Healey
d4b890fff1 Copied fbjs keymirror into utils (#4807)
* Removed react-addons-pure-render-mixin from NOTICE

* Copied FBJS keymirror into non_npm_dependencies
2016-12-20 09:05:56 -05:00
Christopher Speller
a798714958 Updating eslint (#4573) 2016-11-17 12:02:16 -05:00
Christopher Speller
6dde2d268a Updating client dependancies (excpet eslint) (#4567) 2016-11-17 09:02:33 -05:00
Harrison Healey
e63e80dee0 PLT-4404/PLT-4578/PLT-4541/PLT-4542 Replaced third party autosizing textarea with a custom one (#4442)
* PLT-4578 Replaced third party autosizing textarea with a custom one

* Fix Textbox.handleHeightChange not being called

* Removed unused CSS

* PLT-4541 Force EditPostModal to resize upon opening

* Removed usage of jquery from AutosizeTextarea

* Reverted changes made for PLT-4580 as they're no longer needed
2016-11-04 12:35:38 -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
f92cf34307 PLT-3907 Added a javascript library to prevent the <body> from scrolling on iOS (#4147)
* Added a javascript library to prevent the <body> from scrolling on iOS

* Added iNoBounce to NOTICE.txt
2016-10-04 14:36:47 -04:00
Jared Shields
3bac3a0061 Updated make files/scripts to accomodate execution/building in windows in addition to linux/mac (#4135) 2016-10-04 08:56:01 -04:00
Christopher Speller
93f2b6a833 Updating ESLint (#4085) 2016-09-23 12:29:54 -04:00
Christopher Speller
214f9c13a2 Updating client dependancies (#4083) 2016-09-23 10:22:35 -04:00
enahum
b072fdb23f PLT-4239 fixes getUserMedia (#4038) 2016-09-20 11:58:39 -04:00
enahum
781ff323db Webrtc client side (#4026)
* WebRTC Server side

* WebRTC client side

* Bug fixes and improvements

* Pushing UI improvements for webrtc (#3728)

* Pushing UI improvements for webrtc

* Updating webrtc css

* PLT-3943 WebRTC P1: bug fixes and improvements

* Video resolution set to std, reduce volume of ringtone and flip video horizontally

* Fix calling a user B while WebRTC RHS is still opened

* Leave RHS opened when call ends, Fix isBusy on popover and channel_header

* Fix pre-release feature, RHS & System Console

* PLT-3945 - Updating UI for webrtc (#3908)

* PLT-3943 Webrtc p1

* Add ongoing call indicator when RHS is opened

* UI updates to to webrtc notifcation (#3959)
2016-09-16 15:35:13 -03:00
Joram Wilander
3289c85613 PLT-3642 Add PDF previewer (#3812)
* Added a PDF previewer

* PLT-3900 - Improving UI for the pdf max pages (#3800)
2016-08-18 14:38:38 -08:00
Harrison Healey
c0a905c037 PLT-1424 Added XRegExp library to fix search highlighting (#3787) 2016-08-12 07:49:19 -04:00
Christopher Speller
5e2b4d1282 Fixing build failure caused by dependancies updating 2016-08-07 10:01:17 -04:00
Harrison Healey
b8b322c04b PLT-3482/PLT-3551/PLT-3552 Fixed some markdown list parsing (#3637)
* PLT-3552 Partially-fixed an invalid test case

* PLT-3551 Removed an invalid test case

* PLT-3482 Added a test case for multiple lists separated by text

* PLT-3482 Updated marked to fix multiple lists separated by text
2016-07-20 13:01:52 -08:00
Harrison Healey
e1de41cc81 PLT-3690 Updated marked to not break URLs on exclamation marks (#3627) 2016-07-19 08:39:44 -08:00
Christopher Speller
1641370fbe Moving javascript driver back to platform (#3613) 2016-07-19 10:16:44 -04:00
Joram Wilander
c0ab2636d6 PLT-2241 Refactored statuses into a more real-time system (#3573)
* Refactored statuses into a more real-time system

* Updated package.json with correct commit and fixed minor bug

* Minor updates to statuses based on feedback

* When setting status online, update only LastActivityAt if status already exists
2016-07-18 11:10:03 -04:00
Christopher Speller
b6c4d84685 Updating client dependancies (#3594) 2016-07-15 10:43:43 -04:00
Christopher Speller
8936f65c90 Improving caching of static assets (#3591) 2016-07-15 08:57:52 -04:00
Christopher Speller
b5c5744bc7 Updating ESLint (#3597) 2016-07-15 07:49:57 -04:00
Joram Wilander
ad343a0f4a Added infrastructure for basic WebSocket API (#3432) 2016-07-12 09:36:27 -04:00
Corey Hulen
0c3c52b8d3 Adding unit tests (#3515) 2016-07-06 14:07:32 -08:00
Corey Hulen
d5f243dad6 PLT-2863 adding remove user from team (#3429)
* PLT-2863 adding remove user from team

* PLT-2863 adding the client side UI

* Fixing trailing space

* Fixing reported issues

* Adding documentatino

* Switching to final javascript driver
2016-07-06 13:40:59 -08:00
David Lu
7b6e8d788b Added new segment analytics (#3511) 2016-07-06 13:16:53 -08:00
enahum
5f04dc4f45 SAML support (#3494)
* PLT-3073: Implement SAML/Okta Server side (EE) (#3422)

* PLT-3137 Support for SAML configuration

* PLT-3410 SAML Database Store

* PLT-3411 CLI to add Identity Provider Certificate and Service Provider Private Key

* PLT-3409 SAML Interface for EE

* PLT-3139 Handle SAML authentication server side

* Add localization messages

* PLT-3443 SAML Obtain SP metadata

* PLT-3142 Login & Switch to/from SAML

* Remove Certs for Database & Clean SAML Request

* Make required Username, FirstName and LastName

* PLT-3140 Add SAML to System Console (#3476)

* PLT-3140 Add SAML to System Console

* Move web_client functions to client.jsx

* Fix issues found by PM

* update package.json mattermost driver

* Fix text messages for SAML
2016-07-05 15:49:00 -04:00
Harrison Healey
dc2f2a8001 PLT-3145 Custom Emojis (#3381)
* Reorganized Backstage code to use a view controller and separated it from integrations code

* Renamed InstalledIntegrations component to BackstageList

* Added EmojiList page

* Added AddEmoji page

* Added custom emoji to autocomplete and text formatter

* Moved system emoji to EmojiStore

* Stopped trying to get emoji before logging in

* Rerender posts when emojis change

* Fixed submit handler on backstage pages to properly support enter

* Removed debugging code

* Updated javascript driver

* Fixed unit tests

* Fixed backstage routes

* Added clientside validation to prevent users from creating an emoji with the same name as a system one

* Fixed AddEmoji page to properly redirect when an emoji is created successfully

* Fixed updating emoji list when an emoji is deleted

* Added type prop to BackstageList to properly support using a table for the list

* Added help text to EmojiList

* Fixed backstage on smaller screen sizes

* Disable custom emoji by default

* Improved restrictions on creating emojis

* Fixed non-admin users seeing the option to delete each other's emojis

* Fixing gofmt

* Fixed emoji unit tests

* Fixed trying to get emoji from the server when it's disabled
2016-07-05 11:58:18 -04:00
Harrison Healey
10876f572e Updated markdown parser (#3465) 2016-07-04 11:14:38 -04:00
Christopher Speller
dab4bb4321 Some bundle size reductions and improvments (#3457) 2016-06-30 12:26:04 -04:00
Christopher Speller
14510ce194 Adding webpack code splitting (#3377) 2016-06-22 10:30:01 -04:00
Harrison Healey
1d67825673 Require indentation for multiline list items (#3326) 2016-06-14 08:59:20 -04:00
Harrison Healey
935e0cde8b Lock Javascript driver to 3.1 branch (#3277) 2016-06-07 17:43:56 -04:00