62 Commits

Author SHA1 Message Date
Jesús Espino fadd1bbb02 MM-15285: Fixing IE11 initialization problems (#2712) 2019-04-29 22:33:29 +02:00
Christopher Speller 4c0e5379c6 Localization for client plugins. (#2621) 2019-04-09 11:36:22 -07:00
Chetanya Kandhari 0b76c1e11b Create a plugin component to override file previews (#2519)
* Create a plugin component to override file previews

* Add test cases

* Code refactoring

* Expost pdfjs to window to use in webpack externals in plugins

* - Pass postId to ViewImageModal and use getPost to fetch post object.
- Update test cases

* Update plugins/registry.js

Co-Authored-By: chetanyakan <chetanya.kandhari@brightscout.com>
2019-03-27 07:23:25 -07:00
Christopher Speller 45bedfd0c7 MM-13621 Bot accounts backstage UI (#2520)
* Bot accounts backstange UI

* Text updates

Co-Authored-By: crspeller <crspeller@gmail.com>

* Fixing some bugs and feedback.

* Updating UI fixes

* Reverting package files

* Updating bots css

* Updating integration buttons

* Apply PM text changes

Co-Authored-By: crspeller <crspeller@gmail.com>

* Fixing text and bad redux version change.

* Typo.

Co-Authored-By: crspeller <crspeller@gmail.com>

* Bot tags and UI sugar.

* Username sort order for bots.

* Style fixes

* Updating highlight and error

* More bot tags!

* DM Fixes.

* Bot account backstange profile pictures.

* Automatic tokens.

* Fix page crash

* Updating styling for bots

* Add permission managment UI for bots.

* Removing email and signin method from bots in system console.

* Text changes.

* Fixing tests.

* Commenting out bots UI

* Fixing style error

* en.json update with i18n-extract

* Feedback fixes

* Text fixes.

Co-Authored-By: crspeller <crspeller@gmail.com>

* Refactoring oriantation handling.

* Avoiding passing user in post_header.

* Removing test failing because of test archatecture issues.

* Fixing double tag in search and bot DM header popover.

* Fix test.

* Verious feedback.
2019-03-27 09:52:48 -04:00
Harrison Healey 9681600390 MM-14341 Add client-side messageWillBePosted hook (#2526)
* MM-14341 Add client-side messageWillBePosted hook

* Fix and add another test

* Update CreatePost unit tests

* Handle falsey results from MessageWillBePosted hooks
2019-03-25 13:21:11 -04:00
Sudheer 52ef9b93d0 MM-13099 Use size_aware_image component for when loading images in posts (#2334)
* MM-13099 Use size_aware_image component for all instances for loading images in webapp.

* Removing getFileDimensionsForDisplay in favour of  SizeAwareImage as it would be reliable in preventing
  scroll pop

* WIP changes for svg pop

* Fix snapshots

* Add a fallback for svg as older version do not have dimentions

* Revert package-lock change
2019-03-08 15:56:19 +08:00
Jesús Espino cc2d3b6f34 Using new splited emojis and webhooks permissions (#2339)
* Using new splited emojis and webhooks permissions

* Fixed review comments

* Removed unnecesary translations

* Fixing tests after redux is merged
2019-03-07 16:07:32 +01:00
kosgrz 850b003d59 [MM-9622] Allow plugins to create link tooltips (#2386) 2019-03-05 17:00:51 -05:00
Saturnino Abril 4dce36da60 [MM-14242] Remove props such as lastPostCount, idCount and idPrefix which were previously used for Se E2E (#2410)
* Remove props such as lastPostCount, idCount and idPrefix which were previously used for Se E2E

* revert commented out test setup
2019-03-01 03:39:28 +08:00
Jesús Espino 6a29953452 MM-13265: Creating new set of widgets to build dropdown menus (#2201)
* MM-13265: Creating new set of widgets to build dropdown menus

* Improving unit tests

* Adding tests for the main menu component

* Adding ids for e2e testing

* fixed popmotion version

* Fixing some cypress tests

* Fixed proberly the cypress tests

* Using correct types for menu items texts and dialogTypes

* Using menu wrapper on ldap groups new interface

* Removing unneded component BootstrapSpan

* Fixing unit tests

* Fixed a small styling problem

* More small fixes

* Fixing some e2e tests

* Adding aria-label to all menus

* Fixing rebase conflicts

* Fixed small bug

* Fix comments

* Fix emoji picker on the RHS

* Fixed system users dropdown menu

* Fixing Manage Teams modal styling

* Fixed some styles for mobile

* Fixed some bugs found in the review

* Fixed another small bug

* fixing check-style

* Fixed manage members menu

* Fixing dots menu styling on dark theme

* Fixed mentions icon style in mobile menu

* More small fixes

* Fixed bug in Manage teams modal

* Fix emoji picker on the center panel

* Fixed tests

* Fixing a small bug

* Fixing tests
2019-02-27 19:39:34 +01:00
Saturnino Abril 279ae94907 [MM-13434] Prevent passing too much of user and status and rely on userId to prevent unnecessary re-render of component (#2227)
* prevent passing too much of user and status and rely on userId to prevent unnecessary re-render of component

* update per review and update redux commit to latest including the one that requires the change

* update per feedback
2019-01-15 18:21:14 +08:00
kosgrz 55e0ee387c [MM-13298] Remove usage of localizeMessage for aria-label and title attributes (#2245)
* Remove usage of localizeMessage for aria-label and title attributes in HTML tags
* Remove duplicate tooltip caused by the usage of OverlayTrigger and title attribute
2019-01-15 17:05:04 +08:00
Asaad Mahmood 00f517eedf MM-12996/MM-13229 - Updating modals on mobile and fixing plugin button on mobile (#2086)
* MM-12996 - Updating modals on mobile

* Updating snapshots

* Updating test

* Updating test

* Updating tests

* Update unit tests for MobileChannelHeaderPlug
2018-11-29 12:07:15 -05:00
Michael Kochell 0a1acaaaa9 [MM-12396] Option to add user to a channel from the profile pop-over (#1918)
* basic feature complete

Add to channel button is shown when user has manage private or public channel members permission.
Channel filtering is based on permissions.

 #Styling of error message.

add tests for profile_popover and add_user_to_channel_modal

channel search with permissions provider is tested

permission gate used in favor of boolean prop for showing "add user to channel" button in profile popover

remove webrtc from i18n and profile_popover props

use form tag to make sure pressing enter submits the form

update snapshot

requested changes added

move tests to be next to source code

fix onHide call in handleInviteError. change class names to id's

make variable/property name changes and method name changes

* fix merge conflicts
2018-11-26 17:07:15 +08:00
Daniel Schalla 3fb08ea69c Added Admin Badge to Profile Popover (#1487)
Add Admin Badges to Profile Popover
2018-11-23 20:10:58 +01:00
Joram Wilander aa135a4e22 Add comment for MessageWillFormat plugin hook (#2035) 2018-11-13 16:23:05 -05:00
Elias Nahum ae50302e3d Migrate open GM/DM actions to redux (#2033)
* Migrate open GM/DM actions to redux

* feedback review
2018-11-13 09:08:18 -03:00
Saturnino Abril 294de981fa move test files adjacent to the files being tested (#2026) 2018-11-12 19:03:28 +08:00
Yusuke Nemoto 91ceb13e60 MM-11560 - Allow plugins to add channel header tooltips (#1995)
* Allow plugins to add channel header tooltips

* Fix non-empty check

* Use dropdownText if tooltip isn't set
2018-11-05 11:08:01 -05:00
Joram Wilander f1c8e5bc28 MM-12497 Remove flux store usages from user settings (#1915)
* Remove Flux store usages from account settings modal

* Fix test

* Remove global action for opening account settings modal

* Fix notifications not updating correctly

* Refactor executeCommand to remove import cycle
2018-10-22 12:52:48 -04:00
Martin Kraft 18fce647c7 Message hook (#1840)
* Start implementing plugin hook for MessageWillFormat

* Send entire post to webhook. (#1590)

* Adds plugin-updated message to allow hooks to chain their message changes.

* Updates snaps to reflect Redux connect use.

* Reuses existing 'components' reducer.

* Fix for wrong state key bug.
2018-10-05 17:07:56 -04:00
Asaad Mahmood 2d36024911 MM-12150 - Updating x icon and plugins (#1841) 2018-10-05 11:49:10 -04:00
Saturnino Abril 85b5838db1 [MM-12336 && MM-12299] Add cursor pointer to mobile view plugin button and add tests (#1811)
* add cursor pointer to mobile view plugin button and add tests

* add test on fireAction
2018-10-03 13:21:36 -04:00
Jan Tammen efa293b2ed MM-12221: Pass channel and channel member to onClick handler for mobile channel header plugins. (#1728) 2018-10-01 10:57:07 -04:00
Joram Wilander 13d6571c31 Add plugin FilesWillUpload hook (#1777) 2018-09-27 10:15:45 +08:00