Commit Graph

2935 Commits

Author SHA1 Message Date
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 bdd113ee95.
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
Sinan Sonmez (Chaush)
53fc44e13a MM-46494: Add filter options to browse channel modal (#24099) 2023-08-31 08:37:41 +05:30
Harrison Healey
fd74208af1 Move .editorconfig to repo root (#24398)
* Move .editorconfig to repo root

* Add yaml formatting to .editorconfig
2023-08-30 16:29:07 -04:00
KyeongSoo Kim
61473efb93 MM-27936: Allow resizing the channel sidebar and right-hand sidebar (#23117)
* MM-27936: Resize sidebar

* separate sidebar related constants into different file

* reset style when sidebar expanded

* change not to save user_id when saving to local_storage

* prevent a separation between the rhs and the main center panel

* change variable name

* migrate to css-based paradigm

* delete unnecessary files

* update snapshot

* increase the resizable range

* fix transition

* Made RHS and LHS widths not be saved scoped by team

* scope cleanup

* fix lhs header menu ellipsis/tolerances

* fix lint

* remove a ref from a dependency

* return null instead of empty jsx

* return null when disabled

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
2023-08-30 15:34:48 -04:00
Devin Binnie
a3b194581f [MM-37984] Allow Desktop App to authenticate via external providers outside of the app on supported servers (#24140)
* [MM-37984] Allow Desktop App to authenticate via external providers outside of the app on supported servers

* PR feedback

* Add support for mattermost-dev protocol for development use

* Update server/channels/db/migrations/postgres/000110_create_desktop_tokens.up.sql

* Fix silly typo

* Update server/channels/db/migrations/postgres/000110_create_desktop_tokens.up.sql

* Remove storage of client token, only validate it on the client

* Update migrations

* Add concurrently create index

* Remove CONCURRENTLY for now

* Fix issue with changing history

* Remove old migration

* Use idempotent statement to drop old index

* Remove reference to old table
2023-08-30 11:21:43 -04:00
master7
105fa4a195 Translated using Weblate (Polish)
Currently translated at 100.0% (5655 of 5655 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/pl/
2023-08-30 15:30:26 +02:00
Matthew Williams
2f681d9a0e Translated using Weblate (English (Australia))
Currently translated at 99.9% (5654 of 5655 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/en_AU/
2023-08-30 15:30:26 +02:00
MArtin Johnson
a946fc1b7b Translated using Weblate (Swedish)
Currently translated at 100.0% (5655 of 5655 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/sv/
2023-08-30 15:30:26 +02:00
Coelho
17316e912c Translated using Weblate (Portuguese (Brazil))
Currently translated at 87.8% (4966 of 5655 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/pt_BR/
2023-08-30 15:30:26 +02:00
Deivison Lincoln
2acd91b3cc Translated using Weblate (Portuguese (Brazil))
Currently translated at 87.8% (4966 of 5655 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/pt_BR/
2023-08-30 15:30:26 +02:00
Jesús Espino
8c8b8b7e79 Add code block actions plugin extensibility (#24348)
* Add code block actions plugin extensibility

* Fixing tests

* Fixing linter errors

* Move Plugin components left of label

---------

Co-authored-by: Christopher Speller <crspeller@gmail.com>
2023-08-29 14:51:37 -07:00
Caleb Roseland
dbb39e44cc MM-54261: re-scope css to intended target (#24396) 2023-08-29 14:58:52 -05:00
Scott Bishel
f35291169c Add config setting to set default User Setting for filter join/leave message (#24047)
* initial submit, join/leave message

* i18n-extract

* additional changes for client config

* add unit tests

* fix unit tests

* change tests to use string not bool

* more unit test fixes

* add and fix unit tests

* revert package-lock

* update unit tests

* Update default_config.ts

* fix unit test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-29 12:30:16 -06:00
Harrison Healey
8235b5bb44 MM-53989 Upgrade to Node 18 and NPM 9 (#24283)
* MM-53989 Update to Node 18 and NPM 9

* MM-53989 Remove skip_integrity_check.js

* Force e2e-test/cypress to use its version of TS for types package

* Update .nvmrc

* Update .nvmrc lineending

* Update server.override.yml

---------

Co-authored-by: M-ZubairAhmed <m-zubairahmed@protonmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-28 14:37:05 -04:00
Scott Bishel
053041cd2c update help text (#24375)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-28 08:04:07 -06:00
Zubair Imtiaz
61dae292f7 [MM-53333] Modified the delete category modal to contain a cancel button #24290 (#24317)
* Added cancel button in the delete category modal

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-28 09:49:33 -04:00
Tasawar Hussain
77b19a0d3a MM-53926 fix commented on display name (#24322)
* Sync giphy package versions in package-lock.json file

The versions were added automatically after starting the server, so seems like lock file is not synced

* Use main user_profile component in commented_on to fix displayName

* Refactor commented_on component from class to dumb/function component

* Resolved comments and make eslint happy

* Remove display name prop being passed to UserProfile component

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-28 15:25:12 +02:00
Caleb Roseland
818225dffe MM-52981, MM-53559: Streamlined in-product marketplace (#24311) 2023-08-25 14:39:25 -05:00
Konstantin
563feafa46 Translated using Weblate (Russian)
Currently translated at 100.0% (5655 of 5655 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/ru/
2023-08-25 14:48:12 +02:00
Hosted Weblate
02f5a61a63 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/
2023-08-25 14:48:12 +02:00
kaakaa
2b53038ef0 Translated using Weblate (Japanese)
Currently translated at 100.0% (5648 of 5648 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/ja/

Translated using Weblate (Japanese)

Currently translated at 97.2% (5495 of 5648 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/ja/
2023-08-25 14:48:12 +02:00
Hosted Weblate
7d98f0c9d2 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/
2023-08-25 14:48:12 +02:00
Tom De Moor
84e17bc134 Translated using Weblate (Dutch)
Currently translated at 99.9% (2464 of 2465 strings)

Translation: mattermost-languages-shipped/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/nl/

Translated using Weblate (Dutch)

Currently translated at 100.0% (5648 of 5648 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/nl/
2023-08-25 14:48:12 +02:00
jprusch
78d49a52cd Translated using Weblate (German)
Currently translated at 100.0% (5655 of 5655 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/de/

Translated using Weblate (German)

Currently translated at 100.0% (5648 of 5648 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/de/
2023-08-25 14:48:12 +02:00
Harrison Healey
dad579daee MM-54211 Fix Unreads category being visible with no unread channels (#24334) 2023-08-24 10:33:47 -04:00
Jesús Espino
4145fd2f4e Add support for actions in the unreads bar from plugins (#24265)
* Add support for actions in the unreads bar from plugins

* Adding channelId as parameter

* Fixing linter errors

* Changing the extensibility to the new messages separator

* Making everything work with the plugin

* Fixing linter and types errors

* Fixing unit test

* Tiny improvement in the styles

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-24 12:20:29 +02:00
Harrison Healey
e2a5293e2e MM-53999 Fix keyboard support for Menu components (#24282)
* Cherry-pick test changes from #24243

* Add required change from Saturn's PR to make reminder menu accessible

* MM-53999 Flip provider order so that MUI props are passed

* MM-53999 Pass MUI props through custom MenuItem components

* Address feedback

* Update snapshots
2023-08-22 12:53:02 -04:00
Tasawar Hussain
e48efdc5da Sync giphy package versions in package-lock.json file (#24314)
The versions were added automatically after starting the server, so seems like lock file is not synced
2023-08-22 10:38:56 -04:00
Miguel de la Cruz
be68398c7f Updates post text processing to fetch nonexisting custom groups (#24292)
* Updates getProfilesAndStatusesForPosts to fetch nonexisting custom groups

* Fix linter

* Rename method

* Adds an action test

* Using a set on loadedProfiles instead of an array
2023-08-21 09:20:49 -06:00
M-ZubairAhmed
bc11b29807 Replace Gfycat with GIPHY in emoji/gif picker (#24236)
* Added the package

* design

* add styled-component alias

* add contrast ratio

* added the tab icon

* review comments

* rev comments

* key added

* key added

* trans

* Added giphy sdk test key for playwright tests config

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: maria.nunez <maria.nunez@mattermost.com>
2023-08-18 16:02:46 -04:00
Andrey K
56a0becbca [MM-32576] Text copied from Microsoft OneNote pastes as an image (v2) (#23530)
* [MM-32576] Text copied from Microsoft OneNote pastes as an image

* [MM-32576] Text copied from Microsoft OneNote pastes as an image (linter and tests fix)

* [MM-32576] Text copied from Microsoft OneNote pastes as an image (E2E tests fix: mock clipboardData.getData())

---------

Co-authored-by: Andrey Karavashkin <akaravashkin@stsoft.ru>
2023-08-18 07:37:58 -04:00
Christopher Poile
7b0b0d8609 MM-53764 - Fix: Improve limits on Opengraph Data Cache (#24177)
* enforce strict opengraph cache entry size limit

* move json marshalling and error checking into parsOpenGraphMetadata fn

* fix linting

* fix potential nil deref

* Revert "fix potential nil deref"

This reverts commit 095bcd496e.

* Revert "fix linting"

This reverts commit f3e1f7b276.

* Revert "move json marshalling and error checking into parsOpenGraphMetadata fn"

This reverts commit ba9a1e13b0.

* Revert "enforce strict opengraph cache entry size limit"

This reverts commit d1de4a8fa4.

* remove /opengraph api endpoint

* i18n

* removing unneeded action and reducer
2023-08-17 18:23:39 -04:00
Daniel Espino García
4a4bf82440 Remove unused components (#24189)
* Remove unused components

* i18n-extract

* Fix tests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-15 16:46:19 -04:00
Nitin Suresh
b19233d3e3 [MM-53699] : Remove channel header limit message when user adjusts to valid length (#24160)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-15 16:42:10 -04:00
Sinan Sonmez (Chaush)
39150bc16d fix member count (#24233) 2023-08-15 16:41:20 -04:00