Граф коммитов

2969 Коммитов

Автор SHA1 Сообщение Дата
Ben Cooke
9bbdca7240 [MM-54493] Allow a user to disable the webapp prefetch (#24389)
* allow a user to disable the webapp prefetch if they are experiencing degraded performance on initial load
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-02 12:06:14 -04:00
Harrison Healey
e43096b98b MM-54349 Increase timeout for ConfirmModalRedux test (#24607) 2023-09-28 14:51:11 -04:00
Asaad Mahmood
703ad006ad MM-54566 - Adding color override for button (#24616)
* MM-54566 - Adding color override for button

* Updating icon sizes

* Updating icon sizes

* Updating css order
2023-09-28 11:21:32 -04:00
Daniel Espino García
d8977c87a7 Fix typo (#24623) 2023-09-28 15:05:55 +02:00
Weblate.Fix@controlaltdieliet.be
b69d114aa9 Translated using Weblate (German)
Currently translated at 98.9% (5633 of 5695 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/de/
2023-09-26 12:47:38 -04:00
Tom De Moor
dc316c8037 Translated using Weblate (Dutch)
Currently translated at 98.9% (5633 of 5695 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/nl/
2023-09-26 12:47:38 -04:00
Ben Cooke
295228dd88 fix style regression (#24605) 2023-09-25 15:04:23 -04:00
Asaad Mahmood
6f4382189f Button styling update for consistent buttons (#24483)
* Updating button changes

* Updating button

* Updating invite modal button

* Updating button changes

* Updating button

* Updating buttons

* Updating buttons

* Updating buttons

* Updating back btn

* Updating various buttons

* Updating tests

* Updating test

* Reverting channel icon

* Update channel_profile.tsx

* Update setting_picture.tsx

* Updating tests

* Update group_member_list.test.tsx.snap

* Update user_group_popover.test.tsx.snap

* Update user_group_popover.test.tsx.snap

* Updating tests and adding btn class

* Adding btn-xs class

* Updating tests

* Updating test

* Updating test file

* Updating test

* Updating changes requested by daniel

* Updating test

* Updating based on harrisons feedback

* Updating buttons

* Updating test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-25 15:17:14 +05:00
Daniel Espino García
2e0e35dda9 Fix MM53372 (#24494)
* Fix MM53372

* Remove unneeded casting
2023-09-25 11:08:10 +02:00
Saturnino Abril
b7b08dbc0f CLD-5948 Playwright/E2E: Update dependencies, server default config and its types, and remove Boards and mobile view tests (#24583)
* update dependencies

* update dependencies

* remove mobile view

* remove boards

* update default config  and its types

* update snapshots

* fix formatting

* check works and fix styling
2023-09-20 05:28:35 +08:00
Daniel Espino García
88d043a971 Make GM behave as DM (#24289)
* Make GM behave as DM

* Fix lint

* Add desktop notification special behavior

* Change notification preferences menu

* Make changes to the GM channel intro

* Fix tests

* Fix i18n and style lint

* Add system notice and update style

* Fix style and fix tests

* Fix tests

* Handle push notifications as desktop notifications

* Fix tests

* Add test and default GMs to none when user level config is none

* Fix test

* Update only for mentions text

* Add tests

* Fix lint

* Fix lint
2023-09-19 15:29:57 +02:00
Harshil Sharma
39d6cb8008 MM-53125 Add feature to convert group message to private channel (#24421)
* Added convert to channel menu item

* WIP

* refactored channel name input field and created conversion modal

* style

* style

* WIP

* wip

* Created API to fetch common teams of GM members

* Added UI for all members deactivated

* Fetched common teams in client

* WIP

* Added a required attribute to DropdownInput component

* Fixed a case with dropdown input required flag

* WIP

* API first draft

* Genetayed layers and mocks

* Fixed create channel bug

* WIP

* Added cache invalidation

* Calling API from client

* Updated API to accept name and display name as well

* WIP

* Moved converted GM to correct category

* Style fixes

* Added logic to move user to new team/channel after GM conversion

* Prevented guest user from performing action

* Added loading indicator

* Added smoother height transistion when loading finishes

* UI imporvements

* WIP

* Formatted GM conversion message on client side

* lint fix

* Moved convert option from sidebar menu to channel header menu

* Some cleanup

* Updated server layers

* Fixed i18n

* Fixed types

* Fix server i18n

* Fixed channel creation bug

* Added store test for GetCommonTeamIDsForMultipleUsers

* Server tests done

* Updated snapshots

* Updated layers

* lint fix

* Update tests

* For CI

* lint

* restored debug code

* Used user ID instead of username in channel conversion post

* WIP

* Review fixes

* LInt fixes

* Test fix

* WIP

* WIP

* WIP

* wip

* Review fixes, lots of them

* Review fix

* Disabled WIP test

* test

* Cleanup

* Test fix

* removed testing line

* Fixed incorrect default message

* Review fixes

* Fixes

* lint and i18n fix

* Setting category on server side

* updated i18n

* Updated tests

* Added tests

* Refs cleanup

* added test

---------

Co-authored-by: Harshil Sharma <harshilsharma@Harshils-MacBook-Pro.local>
2023-09-19 14:41:34 +02:00
Alex DeCamillo
d08f1ca3fb MM-54356: In-correct User count when adding members that already exists to the channel (#24540)
* Only add user who isn't in the channel

* Update webapp/channels/src/packages/mattermost-redux/src/actions/channels.ts

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

---------

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-19 08:48:59 +02:00
Caleb Roseland
9a3b503169 MM-54505: re-enable remote marketplace functionality (#24561) 2023-09-15 12:17:53 -05:00
Scott Bishel
64fabbeed3 MM-54123 Add group slash command (#24553)
* 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 slash command for user groups

* revert package-lock

* remove unused function

* update based on feedback

* update tests for last change

* i18n-extract, reorder

* retrieve and display user name

---------

Co-authored-by: Benjamin Cooke <benkcooke@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-15 11:00:41 -06:00
Claudio Costa
db139627ff [MM-54494] Update selector to get profiles connected to calls (#24544)
* Update selector to get profiles connected to calls

* Clean plugin version
2023-09-14 15:23:18 -06:00
Harrison Healey
0fb6e5169d Move logic to track mobile view into its own component (#24272)
* Move logic to track mobile view into its own component

* Address feedback
2023-09-14 17:02:31 -04:00
Ben Cooke
bc4904e5b3 MM-54123 Add group to channel (#22954)
* 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>
2023-09-14 08:43:44 -06:00
Scott Bishel
4929fde3d3 update text (#24531)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-14 07:57:56 -06:00
Harrison Healey
4d37aad678 MM-53524/MM-53525 Clean up post textbox measurement (#23973)
* 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>
2023-09-13 18:05:43 -04:00
Devin Binnie
c53b5f7b2b [MM-54440] Add link to notification docs in the Settings modal (#24538)
* [MM-54440] Add link to notification docs in the Settings modal

* Fix i18n

* PR feedback
2023-09-13 09:19:09 -04:00
M-ZubairAhmed
19b843cf24 MM-54404 : E2E tests for the Gif picker (#24486) 2023-09-13 11:58:35 +05:30
Ben Schumacher
7e0d9110ed Add defensive code to makeGetPostsInChannel to avoid panic (#24510) 2023-09-12 11:04:16 -04:00
M-ZubairAhmed
6109330beb MM-54458 : Refactor playwright test with app areas (#24527) 2023-09-12 16:35:07 +05:30
Agniva De Sarker
c887381318 MM-53736: Compliance export button state fix (#24488)
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>
2023-09-12 10:08:09 +05:30
Carrie Warner (Mattermost)
092a115c52 Clarified in-product hint text (#24490) 2023-09-11 17:01:14 -04:00
Sinan Sonmez (Chaush)
71fb10ae7a MM-54260: In Browse Channel Modal fix member count on private channels and when there is only 1 member in the channel (#24452) 2023-09-09 14:47:06 +05:30
M-ZubairAhmed
060a63a3ed MM-53478 : Improve design of keyword that trigger notification (#23934) 2023-09-09 14:45:50 +05:30
Harrison Healey
86689b7ee6 MM-54399 Move resizable sidebar handles to not overlap scrollbars (#24491)
* MM-54399 Move resizable sidebar handles to not overlap scrollbars

* Disable RHS resizing in mobile view

* Fix snapshots

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Devin Binnie <devin.binnie@mattermost.com>
2023-09-08 11:50:47 -04:00
Christopher Poile
4022d2e762 MM-54443 - Fix: registerDesktopNotificationHook is missing (#23884) (#24497)
(cherry picked from commit 46a659e06d)
2023-09-08 08:16:26 -04:00
Devin Binnie
01cf4b459f [MM-54402] Change protocol transform method for Desktop Auth to be compliant with web standards (#24479) 2023-09-07 09:03:39 -04:00
Nick Misasi
fcfcbd9909 [CLD-6219] Add Company Name field to Purchase Modal (#24428)
Automatic Merge
2023-09-06 23:27:35 +03:00
M-ZubairAhmed
b540ed5d30 Remove leftover Gitlab CI files (#24472) 2023-09-06 23:45:48 +05:30
Daniel Espino García
d13429aa92 Enable import order (#24091)
* 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
2023-09-06 12:51:55 +02:00
M-ZubairAhmed
bac317dfe5 MM-54181 : Clean up code around deprecated Gfycat (#24343)
* first pass of removal

* first pass of removal

* Update admin_console.js

* rev beta

* remove more

* Update initial_state.ts

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-05 16:40:37 -04:00
Harrison Healey
0338ec8fdc Update subpackage versions to 9.1 (#24445) 2023-09-05 15:19:55 -04:00
Scott Bishel
f4b58d602b update video link (#24433) 2023-09-05 08:45:35 -06:00
AsisRout
947f71ae74 MM-53945 : Server logs page shows incorrect message "No channels found" (#24281) 2023-09-05 13:58:04 +05:30
abhinav700
5443f9d371 MM-47110 : Migrate "components/advanced_create_comment/advanced_create_comment.test.jsx" to Typescript (#24257) 2023-09-04 14:15:00 +05:30
Harshil Sharma
4dfe790a72 Fixed a bug where unread badge was hidden in LHS (#24440) 2023-09-04 09:43:51 +05:30
Amy Blais
d2ce252cf5 Update NOTICE.txt (#24426)
* Update NOTICE.txt

* Update NOTICE.txt

* Update NOTICE.txt

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-01 12:32:06 -04:00
Pablo Andrés Vélez Vidal
7a0c7a5f3f MM-53639 - fix firefox not detecting non-formatted paste action on ctrl|cmd+shift+v (#24384)
* MM-53639 - fix firefox not detecting non-formatted paste action on ctrl+shift+v

* cover ctrl + cmd keypress

* port the changes to advance create comment component

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-01 12:30:31 -04:00
Harrison Healey
3828446abd Update version of JS subpackages to 9.0.0 (#24438) 2023-09-01 12:25:16 -04:00
Harrison Healey
b17daf79b1 MM-49393 Remove Utils.isMobile (#24271)
* 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
2023-09-01 12:20:45 -04:00
Harrison Healey
47e18ea829 MM-49393 Remove more code from utils.tsx (#24266)
* 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.
2023-09-01 11:56:23 -04:00
TheRealJoeFriel
831a7db73d MM-39161 : Show more recently used reactions in the RHS hover menu (#23937) 2023-09-01 09:16:26 +05:30
Ross Baquir
a2adc0e33e MM-54173 group mention punctuation (#24402)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-31 14:41:01 -05:00
Harrison Healey
f2fcf3d839 MM-53107 Add setting to limit the max number of markdown nodes (#24414)
* MM-53107 Add setting to limit the max number of markdown nodes

* Add extra validation for a couple config fields

* Add new setting to telemetry
2023-08-31 14:36:24 -04:00
Harrison Healey
c07b30c5b0 MM-54191 Change how menu item click handlers are triggered after menus fully close (#24335)
* 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
2023-08-31 11:53:33 -04:00
Ben Cooke
2c6179a0a6 Restore previously archived groups (#22597)
* 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>
2023-08-31 08:07:51 -06:00