Commit Graph

17748 Commits

Author SHA1 Message Date
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
Julien Tant
375404c12e
[MM-54522] Add trial info to log + support packet (#24596)
Automatic Merge
2023-10-26 22:22:22 +03:00
Daniel Espino García
756765b9b4
Unify handlePaste and handlekeydown (#24511)
* Unify paste and handlekeydown

* Fix snapshots

* Address feedback

* Properly fix MM-54178 and avoid opening the reaction from the edit post textbox
2023-10-26 18:41:43 +02:00
Amy Blais
c1eb40ae05
Update en.json (#25074)
Automatic Merge
2023-10-26 16:52:22 +03:00
janlengyel
18bc5536f4
[MM-52846] Migrate "components/autocomplete_selector.jsx" and tests to Typescript (#25056)
* Migrate AutocompleteSelector and tests to ts

* Remove commented code

* More cleanup

* Implemented suggestions

* Revert formatting change

* Remove default value and add undefined check

* Remove optional from props with default values

* Unify "Selected" type
2023-10-26 15:28:27 +02:00
Daniel Espino García
cee4411355
[MM-54495] Fix update post plugin hooks (#24602)
* Fix updatePost props and plugin hooks

* Add more tests

* Minor naming improvement

* Revert props related changes

* Fix test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-26 15:15:00 +02:00
Nicolas Le Cam
6649bbebb8
[MM-54924] Update pdfjs to version 3.11.174 (#25075) 2023-10-26 15:36:10 +05:30
M-ZubairAhmed
5013d35e97
[MM-54876] Deprecate all custom translation functions and components (#25069) 2023-10-26 14:10:52 +05:30
Balaji K
c4d2504605
[MM-55118] Replace usage of LocalizedIcon in 'fa_next_icon.tsx' with i/span tags (#25133) 2023-10-26 12:27:06 +05:30
Balaji K
385b839179
[MM-55120] Replace usage of LocalizedIcon in 'fa_search_icon.tsx' with i/span tags (#25132) 2023-10-26 12:25:23 +05:30
Tanmay Vardhaman Thole
009d6136f0
[MM-54118] Special mentions (@here, @channel) are not formatted correctly in the RHS (#24800) 2023-10-26 12:24:06 +05:30
Harrison Healey
14fd5c8168
Remove some usage of changeCss and some unused CSS (#25049)
* Inline .more-modal__gm-icon background

* Remove superceded .user-popover__role background

* Inline .svg-text-color fill

* Inline .multi-select__note background

* Remove superceded .status--group background rule

* Split rules

* Remove unused .modal-tabs rule and CSS

* Inline .system-notice border-color rule

* Inline .image-loaded border-color

* Remove superceded .dropdown-menu button border-color

* Removed unused .member-list__popover rules and CSS

* Inline .alert-transparent border-color

* Inline .access-history-modal .table border-color

* Inline .post-list__arrows fill

* Inline .card-icon__container color

* Inline .post-image__download svg border-color and stroke

* Split rules

* Remove unused .channel-header__links rules and CSS

* Remove unused .usage__icon rule and CSS

* Remove unused .more-modal__header rule

* Remove unused .icon--body rule

* Inline .post-menu border-color

* Remove unused .post-waiting rule and CSS

* Inline .post__body color

* Split rules

* Inline .nav-tab color

* Inline .input-group-addon color

* Inline .app_content color rule

* Remove unused .post-create-body rule and CSS

* Inline .msg-typing color

* Inline .dropdown-menu color

* Inline .popover color

* Remove superceded .suggestion-list__main color

* Remove .tip-overlay rule and unused _tutorial.scss

* Inline .form-control disabled and readonly color

* Inline fieldset[disabled] color

* Inline .post__link color

* Remove unused #archive-link-home rule and CSS

* Remove unused .video-thumbnail__error rule and CSS

* Inline #post-create color

* Remove unused .mentions--top rules

* Inline .system-notice box-shadow and remove unneeded .shadow--2 rules

* Split rules

* Inline .shortcut-key background rule

* Remove superceded .post__body hr background rule

* Inline .loading__content .round background-color

* Inline .tutorial__circles .circle background-color

* Inline .channel-header .heading color

* Update missed snapshots

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-25 16:53:46 -04:00
sjcode99
fb11048d87
Convert ./components/widgets/loading/loading_wrapper.tsx from Class C… (#24997)
* Convert ./components/widgets/loading/loading_wrapper.tsx from Class Component to Function Component

* removed snapshots from the testcase

---------

Co-authored-by: sjcode99 <misuraj2611@gmail.com>
2023-10-25 15:50:26 -04:00
Neto Costa
00108d44bb
[MM-47821]: fix searchUserCmdF to return proper errors (#24700)
* fix: fix searchUserCmdF to return proper errors

* fix: fix broken tests

* fix: fix go-ci issues

* fix: fix more broken tests

* fix: fix wrong function call on error getting user test

* fix: fix e2e test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-25 14:56:12 -04:00
Antonis Stamatiou
f01e8f6c6d
[CLD-6501] Enhance visibility for PR builds artefacts (#25141)
Co-authored-by: Akis Maziotis <akis.maziotis@mattermost.com>
2023-10-25 18:22:15 +03:00
jannikb
76234892d2
Add back button to 'Don't have an account' page (#24994)
* Add back button to 'Don't have an account' screen

* update track event based on pr comment

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>

* fix absolute import

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2023-10-25 11:02:56 -04:00
Ben Schumacher
671cf6cc3d
[MM-54319] Add AdvancedLoggingJSON setting to system console (#24733)
* Add AdvancedLoggingJSON setting to system console

* Apply suggestions from code review

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>

* Add validation for AdvancedLoggingJSON

---------

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-25 16:40:07 +02:00
Dhani
0844968d81
[MM-53166] Reset notification sounds modal selection when settings canceled (#24871)
* fix: 24849 - reset notification selection

* test: 24849 - add notification e2e test

* test: 24849 - add notification e2e test

* fix: 24849 - lint error

* feat: 24849 - add and enable calls plugin

* fix: 24849 - fix plugins lint

* fix: 24849 - e2e and desktop component

* fix: 24849 - e2e class queries

* test: 24829 - update snapshot

* test: 24849 - change MM code and remove call sound

---------

Co-authored-by: dhnlr <work@dhnlr,com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-25 09:28:30 -04:00