* refactor: migrate database/users_spec.js to ts
- migrate file autocomplete/database/users_spec.js to typescripts
- udpate system.d.ts data type adding type
for shouldHaveElasticsearchDisabled
* refactor: migrate users_in_channel_switcher_spec.js
- migrate file users_in_channel_switcher_spec to typescript
- fix issue with data type on file autocomplete/helpers.ts
function verifySuggestionAtChannelSwitcher
- fix issue with data type on file autocomplete/common_test.ts
function doTestQuickChannelSwitcher
* refactor: migrate users_in_message_input_box_spec to ts
- migrate file database/users_in_message_input_box_spec.js to typescript
- migrate file support/ui/suggestion_list.js to typescript and update
docs and type definitions
- update references to doTestPostextbox function
- update references to verifySuggestionAtPostTextbox function
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* Adds Shared Channel management API endpoints
New endpoints for the following routes are added:
- Get Shared Channel Remotes by Remote Cluster at `GET
/api/v4/remotecluster/{remote_id}/sharedchannelremotes`
- Invite Remote Cluster to Channel at `POST
/api/v4/remotecluster/{remote_id}/channels/invite`
- Uninvite Remote Cluster to Channel at `POST
/api/v4/remotecluster/{remote_id}/channels/uninvite`
These endpoints are planned to be used from the system console, and
gated through the `manage_secure_connections` permission.
* Adds i18n messages for API errors
* Fix pagination flaky test
* Fix linter
* Adds the posibility of filtering shared channel remotes by home
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* remove enabling apps plugin by default
* use client config to determine creating app bindings.
* update the way dispatch is made
* updated type setting
* fixed unit test
* prevent a nil check
* dispatch batch
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* removed an incorretc return that caused missing API timing metrics for 4xx and 5xx errors
* Added tests and recorded metric for URL length limit as well
* Status code fix
* [MM-58563] Load profiles on sidebar load irrespective of the current channel
* Remove await
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
1. Rewrite of loadConfigAndMe function which includes compatible return types along with less blocking redux actions
2. Actions of webapp/channels/src/components/root/actions.ts moved to webapp/channels/src/actions/views/root.ts for consistency
3. Removes 2 redundant network requests for config and license.
* Change: Convert class component to functional component in boolean_setting
Change: Update test snapshots in settings tests where boolean_setting is used
* Change: Use useMemo instead of useState and useEffect to prevent constant re-rendering
* Change: Use useCallback to cache the handleChange function
* Change: Add onChange to useCallback dependencies
* converted migrations_table class component to functional component
* added dependencylist for useffect & use memo for caching
* Added tests
* Remove commented code and used renderWithContext instead of render(withIntl(..))
---------
Co-authored-by: Ezekiel <ezekiel@itsmart.my>
Co-authored-by: Mattermost Build <build@mattermost.com>
* refactor(component): convert TextDismissableBar from class to function component
* perf:Code optimized
* refactor(component):props vertically formatted, getDismissed function moved outside
* Update webapp/channels/src/components/announcement_bar/text_dismissable_bar.tsx
Co-authored-by: Daniel Espino García <larkox@gmail.com>
* refactor:setDismissed formatted vertically
* test(text_dismissable_bar):snapshot test updated
* refactor: remove type from shallow rendering in TextDismissableBar test
---------
Co-authored-by: Daniel Espino García <larkox@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>