* adding group members to channel initial commit
* adding group to channel functionality along with add new team members
* fixing circular dependency
* fixing e2e and other optimizations
* adding e2e tests for adding group members to channels
* cypress lint
* fixing comments
* adding count to button
* improvements
* adjusting some stuff from PR comments
* remove ability to add user to team, update message for non-team members
* remove adding to team from add groups functionality
* update misspelled variable
* lint and unit test fixes
* add tests, cleanup
* lint fix
* revert package-lock.json
* fixes for cypress tests
* rename TeamInviteBanner to TeamWarningBanner, since invites are no longer allowed
* update for warning
* lint fixes
* cleanup
* fix failing e2e tests
* update messages to not use markdown
---------
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
* Don't always render post textbox preview in background
* Remove most usage of custom-textarea--emoji-picker
This class is only needed by the pre-AdvancedTextEditor usage of the
Textbox. It otherwise conflicted with the code that controls the
AdvancedTextEditor's right padding
* Change right padding for post textbox to use CSS class
* Remove AutosizeTextarea.recalculatePadding
This was only needed because we started setting the padding of the
textarea programatically at some point. Originally, we could rely on
the reference textarea having the same styling because it had the same
CSS class as the actual textarea.
* Change reference textarea to a div
Using an actual textarea to measure the size of the text doesn't allow
us to measure the width of the text because textareas don't stretch to
fit text. Using a div with the same styling as the textarea works though
* Remove redundant measuring div from AutosizeTextarea
* Update snapshots for AutosizeTextarea
* Fix padding being counted twice when measuring width
* Change AutosizeTextarea to use a ResizeObserver to be more responsive
* Fix right padding on post preview
* Disable transitions when AutosizeTextarea first measures
* Fix measurement of trailing newlines
* Revert "Disable transitions when AutosizeTextarea first measures"
This reverts commit a036fdbfd64e49af9a2eaa3d3e06a5af453b1a5c.
* Revert "Change AutosizeTextarea to use a ResizeObserver to be more responsive"
This reverts commit c8fa4a19bde087a0fe80e3639aed2f3ae2eae04a.
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
In system console > compliance export, if we set the radio button
from false to true. It would enable the "Run export now" button
as well. This would actually allow the user to create a job
without enabling compliance export.
As a result, there would be a job entry which would never run
because the config setting was never enabled.
To fix this, we don't enable/disable the button until the config
is actually saved.
https://mattermost.atlassian.net/browse/MM-53736
```release-note
NONE
```
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* Enable import order
* Add new order groups and add consistent-type-imports
* Remove types group, move react to top and fix issues
* Add store and reducers to the redux group and move imports from types folder to the end
* Fix tsc
* Remove react rule
* Fix test
* Fix eslint disable
* Switch Utils.isMobile to getIsMobileView in most places
* Copy Utils.isMobile into menu widgets
* Actually remove Utils.isMobile
* Remove pointless checkAndSetMobileView action
* Fix incorrect import of UserProfile
* Fix unit test
* Remove unused Utils.scrollbarWidth
* Remove pointless checkAndSetMobileView action
* Fix CommentedOn using un-connected version of UserProfile component
* Turn Utils.getMenuItemIcon into ActionsMenuIcon component
* Remove Utils.isPostEphemeral in favour of mattermost-redux version
* Remove Utils.getRootId and Utils.getRootPost
* Move Utils.compareChannels into ChannelSelectorModal
* Address feedback
* Revert "Fix CommentedOn using un-connected version of UserProfile component"
This reverts commit bdd113ee95c2490a79581f50141f125399875e70.
* MM-54191 Change how menu item click handlers are triggered after menus fully close
* Switch menu items to use onClick instead of onMouseDown
* Add unit tests for menu keyboard navigation and opening modals
* Fix missing use of useMenuContextValue
* Remove unneeded ?.
* Fix unrelated test broken by @testing-library/user-event update
* add ability to restore groups from the user group modal
* factory selector for groups to reduce number of renders across the app
* react window and infinite scroll for user groups
* adding archive groups to dropdown
* restore user group from the view modal
* component cleanup
* lint
* adding websocket for archiveGroup
* updating tests
* adding some tests and fixing types
* lint
* fixing broken test
* fixing snapshot
* fixing infinitescroll
* lint
* increasing max-height and updating snapshots
* fixing PR comments
* fixing case for button
* snapshot and translation
* fixing PR comments
* tiding up repition and creating new hook
* fixing tests
* add additional parammeter for call to getGroups()
* make sure popup is visible for all rows
* update text for admin console
* update css for lint
* fix edge cases found in review
* revert package-lock.json
* revert adding query to GetGroupsParam
* fixing lint
* change include_archived to false in team_controller
---------
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
* MM-27936: Resize sidebar
* separate sidebar related constants into different file
* reset style when sidebar expanded
* change not to save user_id when saving to local_storage
* prevent a separation between the rhs and the main center panel
* change variable name
* migrate to css-based paradigm
* delete unnecessary files
* update snapshot
* increase the resizable range
* fix transition
* Made RHS and LHS widths not be saved scoped by team
* scope cleanup
* fix lhs header menu ellipsis/tolerances
* fix lint
* remove a ref from a dependency
* return null instead of empty jsx
* return null when disabled
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
* [MM-37984] Allow Desktop App to authenticate via external providers outside of the app on supported servers
* PR feedback
* Add support for mattermost-dev protocol for development use
* Update server/channels/db/migrations/postgres/000110_create_desktop_tokens.up.sql
* Fix silly typo
* Update server/channels/db/migrations/postgres/000110_create_desktop_tokens.up.sql
* Remove storage of client token, only validate it on the client
* Update migrations
* Add concurrently create index
* Remove CONCURRENTLY for now
* Fix issue with changing history
* Remove old migration
* Use idempotent statement to drop old index
* Remove reference to old table
* initial submit, join/leave message
* i18n-extract
* additional changes for client config
* add unit tests
* fix unit tests
* change tests to use string not bool
* more unit test fixes
* add and fix unit tests
* revert package-lock
* update unit tests
* Update default_config.ts
* fix unit test
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* MM-53989 Update to Node 18 and NPM 9
* MM-53989 Remove skip_integrity_check.js
* Force e2e-test/cypress to use its version of TS for types package
* Update .nvmrc
* Update .nvmrc lineending
* Update server.override.yml
---------
Co-authored-by: M-ZubairAhmed <m-zubairahmed@protonmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>