Commit Graph

17815 Commits

Author SHA1 Message Date
Daniel Espino García
b0dc74957a
Fix flaky test introduced in #24602 (#25236) 2023-11-01 11:23:56 +01:00
Jesús Espino
da43d75e78
Admin console definition to typescript (#25232)
* 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>
2023-11-01 09:57:23 +01:00
Jesse Hallam
83bd2746c3
fix yaml formatting issue (#25252) 2023-10-31 18:27:06 -03:00
mattermod
ba335b4025 Update latest version to 9.1.1 2023-10-31 16:14:24 +00:00
Michelle "MishManners®™" Mannering
1f480b208b
Add accessibility for README file (#25206)
Co-authored-by: Jason Blais <13119842+jasonblais@users.noreply.github.com>
2023-10-31 13:55:45 +01:00
Aniketh Varma
ecf616d7df
Add Gitpod docs link to README (#25057)
Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
Co-authored-by: Carrie Warner (Mattermost) <74422101+cwarnermm@users.noreply.github.com>
2023-10-31 13:42:07 +01:00
Ibrahim Serdar Acikgoz
1cd439f8e0
db/migrations: drop nextsyncat and description columns from shared remotes (#25064) 2023-10-31 15:25:16 +03:00
Ben Schumacher
a4ece51391
[MM-45065] Switch all api4 methods to use the new logger (#24896) 2023-10-31 11:00:22 +01:00
Noha M
3812de0dec
#24744 Converted ./components/spinner_button.tsx from Class Component to Function Component (#24804)
* 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>
2023-10-31 10:35:01 +01:00
Ben Schumacher
b4c9eddca8
[MM-55096] Introduce generic StoreResult (#25086) 2023-10-31 10:21:31 +01:00
Sudhanva-Nadiger
6dda6e3540
[MM-54878] Replace usage of LocalizedIcon in 'plain_log_list.tsx' with i/span tags (#25135) 2023-10-31 13:44:07 +05:30
Suraj lal
bcc60ed692
[MM-55105] Replace usage of LocalizedIcon in 'search_results_header.tsx' with i/span tags (#25209) 2023-10-31 11:04:43 +05:30
Suraj lal
3c9bb83e25
[MM-55111] Replace usage of LocalizedIcon in 'user_settings_general.tsx' with i/span tags (#25208) 2023-10-31 11:03:34 +05:30
Suraj lal
dda3bf1dec
[MM-55115] Replace usage of LocalizedIcon in 'view_user_group_header_sub_menu.tsx' with i/span tags (#25207) 2023-10-31 11:02:27 +05:30
Gaurav Padam
aae7e401e4
[MM-52976] Increase width of announcement banner tooltip (#24964) 2023-10-31 10:40:07 +05:30
Sudhanva-Nadiger
6a26e40ee6
[MM-53474] Migrate 'components/suggestion/switch_channel_provider.test.jsx' to TypeScript 2023-10-31 08:53:57 +05:30
Akbar Abdrakhmanov
c6a6ad9b4b
[MM-50821] Notify about successful login only once via screen reader (#24979)
* [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>
2023-10-30 17:48:29 -04:00
Harrison Healey
bfd6f5aa01
Use bulk emoji API for loading recent emojis (#25043) 2023-10-30 16:03:43 -04:00
ludvigbolin
4547d9ab0e
[GH24626] Remove ExperimentalTimezone as this is always true (#24657)
* 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>
2023-10-30 15:31:05 -04:00
Gibson Han
af8c9ae0ca
[MM-54819] Convert ./components/external_image/external_image.tsx from Class Component to Function Component (#24941) 2023-10-30 22:13:06 +05:30
Atharva Joshi
7480fcfdf7
[MM-54800] Convert "close_channel.tsx" from Class Component to Function Component (#25079)
* 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
2023-10-30 16:47:31 +01:00
Nicolas Le Cam
0b32e66c8e
server: Force local mode when launching test-data target (#25155) 2023-10-30 16:41:14 +01:00
Ben Schumacher
c7461751f2
Use request.CTX instead of *request.Context (#24877)
* Use request.CTX instead of *request.Context

* Fix tests
2023-10-30 16:33:37 +01:00
Jesse Hallam
37dc35c1a1
report master/release-* failures (#25197) 2023-10-30 12:09:19 -03:00
Harrison Healey
36a15fd22b
Fix Webpack warnings (#25147)
* Remove invalid SCSS

* Silence module federation warning by not exposing prop-types
2023-10-30 09:54:33 -04:00
Harrison Healey
2d707017df
Fix typos caused by applyTheme migration (#25193) 2023-10-30 09:54:15 -04:00
Kritik Jiyaviya
7ea88ff4c6
[MM-54803] Convert ./components/channel_header_dropdown/mobile_channel_header_dropdown_animation.tsx from Class to Functional component (#24949)
* 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>
2023-10-30 12:18:57 +01:00
Sudhanshu Pandey
ea23423e2a
[MM-54817] Convert ./components/admin_console/user_grid/user_grid_remove.tsx from Class Component to Function Component (#24912)
* 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>
2023-10-30 12:18:18 +01:00
Erin Akarice
7ff635cfb1
[MM-54818] Convert system_permission_gate.tsx from Class Component to Function Component (#24939)
* 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>
2023-10-30 10:41:42 +01:00
sjcode99
fb6118c107
[MM-55116] Replace usage of LocalizedIcon in 'view_user_group_list_item.tsx' with i/span tags (#25144) 2023-10-30 14:21:46 +05:30
Dipan Dhali
1b706e0202
[MM-54799] Convert ./components/widgets/menu/menu_header.tsx from Class Component to Function Component (#24847)
* 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>
2023-10-30 09:26:53 +01:00
Balaji K
dd1e5bc9d0
[MM-55123] Replace the usage of LocalizedIcon in 'loading_spinner.tsx' with i/span tags (#25139) 2023-10-30 10:14:01 +05:30
Syed Fazil
bce807d751
[MM-55109] Replace usage of LocalizedIcon in 'group_member_list.tsx' with i/span tags (#25178) 2023-10-29 00:34:42 +05:30
Bishal Pal
6fb4dbaeeb
[MM-55119] Replace usage of LocalizedIcon in 'fa_previous_icon.tsx' with i/span tags (#25190) 2023-10-29 00:33:13 +05:30
Bishal Pal
76673606c7
[MM-55098] Replace usage of LocalizedIcon in 'channel_info_rhs/header.tsx' with i/span tags (#25179)
* Replaced LocalizedIcon with i tag

* Replaced aria-label in parent button tag and removed it from i tag

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-28 10:18:30 +02:00
Jesús Espino
5d163d3ae0
migrating webapp/channels/src/tests files to typescript (#25016)
* migrating webapp/channels/src/tests files to typescript

* Fixing linter errors

* Fixing the setup config of the jest.config.js

* Fixing CI

* fix linter errors

* Fixing tests

* fixing ci
2023-10-28 10:15:56 +02:00
Balaji K
6a7adbe59c
[MM-55122] Replaced the usage of LocalizedIcon in 'fa_warning_icon.tsx' with i/span tags (#25136) 2023-10-28 13:05:58 +05:30
Balaji K
3a1ff29fc8
[MM-55114] Replace usage of LocalizedIcon in 'user_settings_sidebar.tsx' with i/span tags 2023-10-28 13:03:30 +05:30
Nicolas Le Cam
1f3bb8b81d
[MM-55113] Replace usage of LocalizedIcon in 'user_settings_security.tsx' with i/span tags (#25151) 2023-10-28 12:49:16 +05:30
Sudhanva-Nadiger
1043aa5330
[MM-47113] Migrate "components/interactive_dialog/interactive_dialog.jsx" and tests to Typescript (#25026) 2023-10-28 12:29:50 +05:30
Michael Kochell
ee3b5e6810
Bump prepackage todo plugin version to 0.7.1 (#25039) 2023-10-27 17:16:22 -04:00
Carrie Warner (Mattermost)
e34e72ec12
Revert "In-product notices can gather user feedback (#25004)" (#25066)
Automatic Merge
2023-10-27 19:22:23 +03:00
Dipan Dhali
9150d5084e
[MM-55103] Replace usage of LocalizedIcon in 'rhs_card_header.tsx' with i/span tags (#25162) 2023-10-27 19:26:33 +05:30
Sudhanva-Nadiger
a5f6cc30a4
[MM-55104] Replace usage of LocalizedIcon in 'rhs_header_post.tsx' with i/span tags (#25159) 2023-10-27 19:23:32 +05:30
Balaji K
3116c7ad31
[MM-55121] Replace usage of LocalizedIcon in 'fa_success_icon.tsx' with i/span tags (#25134) 2023-10-27 18:38:39 +05:30
Andrew Delph
678ac22c79
getChannelAndMyMember to load profiles for new channel (#25127)
ws preferences change event load profiles for GM on GM show

getChannelAndMyMember user Promise.all

remove changes in getChannelAndMyMember

seperate perfence changes by DM and GM instead of load both
2023-10-27 13:12:55 +02:00
Atharva Joshi
b284d40faa
[MM-55092] Replace usage of LocalizedIcon in 'admin_navbar_dropdown.tsx' with i/span tags (#25158) 2023-10-27 14:40:56 +05:30
js029
eb51d43a2d
[MM-55097] Replace usage of LocalizedIcon in 'channel_header.tsx' with i/span tags (#25125) 2023-10-27 14:39:26 +05:30
Akbar Abdrakhmanov
49cc181b00
[MM-54744] 'Customize your experience' point points to Settings icon in header (#25032) 2023-10-27 12:40:52 +05:30
Nicolas Le Cam
573e45691f
MM-52280: Generate higher contrast for some usernames (#25073)
* MM-52280: Generate higher contrast for some usernames

Keep 3 tries but return the best value instead of the last one

Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>

* Try ten times to find the best contrast before giving up

---------

Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
2023-10-26 15:48:35 -04:00