* Migrating admin_definition from jsx to tsx
* Fixing types and errors
* Fixing all the types errors
* Fixing linter errors
* Removing no longer needed yup dependency
* Moving admin_definition types to its own file
* Removing a couple of anys
* Fixing linter errors
* Fixing tests snapshots
* Fixing bug
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>
* Converted [./components/spinner_button.tsx] to functional component
* Converted [./components/spinner_button.tsx] to functional component
* [./components/spinner_button.tsx]: wrapped the component with react.memo + removed default props + use multi-lines in args
* [./components/spinner_button.tsx]:
- fix lint errors in spinner button
- fix error in missing prop on spinnerButton component
* [./components/spinner_button.tsx]:
- convert class component to functional component - fix lint errors in spinner button
* fix:[spinner_button]: fix lint errors
* - fix: [add_emoji.tsx]: add an id selector to the SpinnerButton to fix issue in unit test for this file.
- fix: [add_emoji.test.tsx]: find the saveButton with id selector instead of using element directly (was causing test fai)
- update test snapshots
* fix[add_emoji]: replaced id with data-testid to be used in unit test
---------
Co-authored-by: Noha M <33437197+NohaaAa@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
* [MM-50821] Notify about successful login only once via screen reader
* clear timeout via useEffect instead of inside setTimeout in AdvanceTextEditor
* declare timeout as ref in AdvancedTextEditor
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* Remove all occurrences of ExperimentalTimezone in /server
This removes all uses of ExperimentalTimezone and makes all conditions using this setting being either removed (== false) or always used (== true)
* Remove timezone parameter for getChannelMemberByGroup
As timezone is always enabled this function no longer has a second parameter. The endpoint will always be called with includeTimezones set to true
* Remove all uses of ExperimentalTimezone in webapp
All conditions dependent of this are adjusted to always be true if experimentalTimezone should be true and vice versa
* Change all tests checking for correct usage of ExperimentalTimezone
As this parameter is no longer used, the tests which check for correct behaviour of this is no longer needed
* Fix type errors
Tests regarding types does now pass
'npm run check-types' will run successfully
* fix lint issues
Fix all current lint errors and now lint test goes through
* Fix test regarding profile popover
enableTimezone now is gone and all profile_popover.test.tsx can run successfully.
Added state.entities.users.profiles[] as it before threw an error without it.
* Fix tests where "April 1 2019" was changed to "April 01 2019"
Now it will show "April 1 2019" and "timeZone" will only show if its other than empty ("").
* Fix test where date was set to NaN
Now date will show correctly and will not be NaN
* fix minor test case that failed before
* fix linting in server
* Delete tests that are not valid with timeZoneEnabled removed
tests in advanced_create_comment and advanced_create_post had timeZoneEnabled
set to false as default. The tests that use this are now changed to once which are meant to have timeZoneEnabled set to true.
Adjust jest function in advanced_create_post to get correct stacktrace
* Parameter deleted
isTimeZoneEnabled is always true and therefore the parameter can be deleted
* adjust to prettier standard
* Remove all occurrences of ExperimentalTimezone in /server
This removes all uses of ExperimentalTimezone and makes all conditions using this setting being either removed (== false) or always used (== true)
* Remove timezone parameter for getChannelMemberByGroup
As timezone is always enabled this function no longer has a second parameter. The endpoint will always be called with includeTimezones set to true
* Remove all uses of ExperimentalTimezone in webapp
All conditions dependent of this are adjusted to always be true if experimentalTimezone should be true and vice versa
* Change all tests checking for correct usage of ExperimentalTimezone
As this parameter is no longer used, the tests which check for correct behaviour of this is no longer needed
* Fix type errors
Tests regarding types does now pass
'npm run check-types' will run successfully
* fix lint issues
Fix all current lint errors and now lint test goes through
* Fix test regarding profile popover
enableTimezone now is gone and all profile_popover.test.tsx can run successfully.
Added state.entities.users.profiles[] as it before threw an error without it.
* Fix tests where "April 1 2019" was changed to "April 01 2019"
Now it will show "April 1 2019" and "timeZone" will only show if its other than empty ("").
* Fix test where date was set to NaN
Now date will show correctly and will not be NaN
* fix minor test case that failed before
* fix linting in server
* Delete tests that are not valid with timeZoneEnabled removed
tests in advanced_create_comment and advanced_create_post had timeZoneEnabled
set to false as default. The tests that use this are now changed to once which are meant to have timeZoneEnabled set to true.
Adjust jest function in advanced_create_post to get correct stacktrace
* Parameter deleted
isTimeZoneEnabled is always true and therefore the parameter can be deleted
* adjust to prettier standard
---------
Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
* ISSUE#24764 | Convert close_channel/close_channel.tsx from Class Component to Function Component
* add type to tests
* remove unecasarry type assertion
* Convert localizeMessage to intl
* remove unnecassary function
* revert back from interface to type
* lint fix
* lint fix
* lint fix
* Fix failing tests
* Convert ./components/channel_header_dropdown/mobile_channel_header_dropdown_animation.tsx from Class to Functional component
* enhancement
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* chore: migrate user_grid_remove to fun. component
* Update webapp/channels/src/components/admin_console/user_grid/user_grid_remove.tsx
Co-authored-by: Daniel Espino García <larkox@gmail.com>
* chore: minor linting fix
---------
Co-authored-by: Daniel Espino García <larkox@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
* Convert class to function for SystemPermissionGate
* refactor into arrow func and destructure props param;
* add newline to file
* indent params, remove space before colon, add semicolon
* Wrap return in empty tags; run fix-style; consolidate multiple IFs into XOR-like condition
* Update with invert=false default param for SystemPermissionGate component
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* Converted Menu Header to function Component
* Converted MenuHeader to Function Component an d fixed test file
* Added deprecated line
* added jsdoc above the component
* Added Suggested Changes
---------
Co-authored-by: Mattermost Build <build@mattermost.com>