70 Commits

Author SHA1 Message Date
Cooper Trowbridge 0afcde51d0 [MM-15073] Hide bot accounts from System Console > Users (#2650)
* remove all reference to is_bot inside of system_users_*

* filter out bot users from sysem_users_list

* Move bot filterting to selector
2019-04-26 11:20:46 +02:00
Joram Wilander 1c34b74a9a Do not open user list dropdowns upwards for short lists (#2694) 2019-04-25 08:01:25 -04:00
Joram Wilander 1cb8c3526c MM-14707 Open dropdowns near the bottom of user lists upwards (#2670)
* Open dropdowns near the bottom of user lists upwards

* Add some snapshot tests
2019-04-22 09:36:36 -04:00
Daniel Schalla 09cdfde996 [MM-14746] Show Remove MFA Item in System Console only for Users that enabled MFA (#2602)
* Ensure show prop is always of type bool to avoid unintentional items to be shown

* Use explicit coercion
2019-04-04 10:45:23 +02:00
Asaad Mahmood 887c4829f2 MM-14708 - Updating PAC position (#2552) 2019-03-29 17:28:23 +08: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
Tejas Bubane 1d92a0e133 [MM-13877] Update User Status filter name to "All Users" (#2399) 2019-03-14 10:45:44 +01:00
Mirlan 9f99e56f02 [MM-12748] Migrate system console user list actions from user_actions.jsx to redux (#2407)
covered with tests
2019-03-01 01:08:07 +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
Jesús Espino 7a0c6ba91d Merge branch 'pr/2362' 2019-02-15 18:43:21 +01:00
Mirlan 93875045cc [MM-12746] Migrate user update actions from user_actions.jsx to redux (#2361)
migrated updateActive, updatePassword, uploadProfileImage, switchLdap

covering components with tests

completed component tests
2019-02-15 16:29:05 +08:00
gkosik 83fd1cb685 [MM-13302] Created the LocalizedInput component to remove usage of the localizeMessage method in input placeholders 2019-02-11 22:55:05 +01:00
Pradeep Murugesan b1c7fc7db0 [GH-7494] Implement the system_admin and inactive filters for users under system console (#2230)
* 7494 added the ui element for the options select

* GH-7494 added wired up the redux action and reducer for the filter parameter

* 7494 modified the selectors to respect the filters

* 7494 changed the label from filter to User status

* 7494 fixed the review comments
2019-01-28 12:37:22 +00:00
Jesús Espino 61efca95e7 MM-12976: Moving MFA to Team edition (#2150) 2018-12-12 11:50:35 +01:00
Saturnino Abril b3edb1f6ac [MM-12743] Migrate loadProfilesAndTeamMembers of user actions into redux-style (#2017)
* migrate loadProfilesAndTeamMembers of user actions into redux-style

* updated per comment and also migrated other user_actions

* update per comment
2018-11-24 03:09:46 +08:00
Sudheer 0d2442e3d6 MM-12710 Migration of team_actions to redux (#1930)
* MM-12710 Migrate team_actions to redux

  * removeUserFromTeam(Updated)
  * addUserToTeamFromInvite(Updated)
  * addUsersToTeam(Updated)
  * getInviteInfo(Removed using a redux action instead)
  * switchTeams(Updated)
  * inviteMembers(Removed using a redux action instead)
  * Move removeUserFromTeam to manage_teams_modal
   * Fix for a test issue found where userId is being passed instead of testId
2018-11-20 23:46:32 +05:30
George Goldberg af6a14ff9d MM-12885: Add UI widgets AdminHeader and FormattedAdminHeader. (#2003)
This adds 2 new widgets:
* AdminHeader, which is a widget that makes the Admin Console page
header which can take any components or values as children.
* FormattedAdminHeader, which is a child widget that can be used where
the AdminHeader component is to contain a single localised (markdown)
string.

These are not the most complicated components in existence, but they are
distinctly UI widgets that can be separated from the code, and were
needed for the code I was writing at the present.
2018-11-15 11:56:09 +00:00
Saturnino Abril 294de981fa move test files adjacent to the files being tested (#2026) 2018-11-12 19:03:28 +08:00
Sudheer 64b96de2dd MM-12579 Migration of team_actions to be pure redux (#1887)
* MM-12579 Migration of team_actions to redux actions

Remove updateTeam legacy actions
 * Removing are we not using this.

Remove createTeam legacy action
 * Removing as we are not using this.

Remove getTeamMembersForUser legacy action
 * Using mattermost-redux now.

Remove getTeamsForUser legacy action
 * Using mattermost-redux now.

Remove checkIfTeams legacy actions
 * Removing as we are not using this.

* Remove wrapper.update

* Fix review comments

* Review comments

* Fix rebase updates

* Changes after rebase

  * move actions for mange_modal to its connected component

* Revert process tick

* Change async to done
2018-10-30 03:24:01 +05:30
Harrison Healey 02c26ca057 MM-12740 Move translations into redux store and remove LocalizationStore (#1896)
* MM-12581 Move translations into redux store and remove LocalizationStore

* Switch i18n file mocking to not use identity-obj-proxy

* Address feedback
2018-10-17 15:34:12 -04:00
Joram Wilander 96066e3158 MM-12496 Remove flux store usages in team* components (#1880)
* Remove flux store usages in team* components

* Fix bug not pulling joinable teams on load
2018-10-17 10:42:16 -04:00
Joram Wilander 4bbd9b3079 Remove flux store usages from the system console (#1860) 2018-10-10 08:45:47 -04:00
Joram Wilander 5cde6ac792 Remove flux store usages from user_list components (#1833) 2018-10-05 08:23:17 -07:00
Jesse Hallam 65d499d2bc MM-6950: restore last viewed on logout (#1764)
* fold clientLogout into emitUserLoggedOutEvent

* skip exclude on BrowserStore

`recentEmojis` wasn't actually within the domain of the BrowerStore anyway, and `selected_teams` appears to be unused.

* save last team and team channel per user to local storage

Ideally, this would be entirely handled by redux-persist, but we purge
the entire data structure on logout, and this needs to persist past
that. An approach that leverages redux-persist might stop using purge,
but we'd need to make sure to clean things up effectively.
2018-09-26 10:27:29 -04:00
Jesús Espino 94930766b2 Add t() translation mark to i18nable strings and update translations (#1593)
* Add t() translation mark to i18nable strings and update translations

* Add 'Search Gfycat' string translation

* More translation fixes
2018-09-21 11:24:53 -03:00