Commit Graph

18809 Commits

Author SHA1 Message Date
Ashish Dhama
13109aeb98
MM-55973: Make keyboard shortcuts modal content div accessible via keyboard (#27412)
Automatic Merge
2024-06-24 14:32:22 +03:00
Bruno
06f59531f5
MM-57319 Direct Message modal message improvement (#27217)
* Direct Message modal message improvement

   *Help text changed, create a modal link created

* Updated the use of openModal to directly handle state updates in the component by using useDispatch hook.

* FormattedMessage is used in DM modal help text

* MM_NO_DOCKER updated to true in /server/config.mk file

* DM modal help message bug fixed

* bug: remainingRext function changed to RemainingComponent

* code style changes

* code style changes

* code style changes

* code style changes

* code style changes

* code style changes

* RemainingText component changed deleted and added remainingText

* code style changes

* href and prevenDefault added to a tag

* hideModal removed props and handled using dispach

* handleHide removed from List component

* MM_NO_DOCKER changed to false

* remaining text changed

* fixed bug

* MM_NO_DOCKER ?= false

* MM_NO_DOCKER ?= false

* added missed semicolons

* snapshot updated

---------

Co-authored-by: Begench <forgithubtobegench@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-06-24 10:54:52 +02:00
ahmadJT
acc4a7a968
[MM-58410] Migrate tooltips of 'components/post/post_component' to WithTooltip (#27199) 2024-06-24 08:45:49 +00:00
Miguel de la Cruz
a181b3bc7b
Fix not enough return values in handleChannelCreation (#27430) 2024-06-24 09:27:35 +02:00
Miguel de la Cruz
d490fdc1d9
Marks the RemoteTeamId field of RemoteClusters as deprecated (#27364)
* Marks the RemoteTeamId field of RemoteClusters as deprecated

The `RemoteTeamId` was used both in the `RemoteCluster` model and as
part of remote invites. It existed so two different remotes could have
multiple secure connections between them, and have each of those
connections scoped to a team, sharing through each only the channels
that belong to their corresponding team.

The way that we're thinking on the feature currently only contemplates
one secure connection between two servers, and shares all the
channels through that secure connection, so this field is no longer
needed.

As we don't have a system in place for the user to choose in which
team a channel should be created from an invite, this change adds a
mechanism that checks the invite for a teamId, and if it's not
present, fetches a team from the database to create the channel
into. This makes the change backwards compatible for secure
connections that already have an established behavior and allows us to
move forward with the implementation of an alternative.

* Mark invite teamId field as deprecated

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-06-22 23:08:55 +02:00
Harrison Healey
6e5c741a7b MM-59033 Increase maximum bucket size for Load Event End metric 2024-06-21 17:47:39 -04:00
Ashish Dhama
e50d293a61
[MM-32770] Inform user that mentions added in edited posts won't trigger notifications for the receiving user (#27371) 2024-06-21 16:51:46 +00:00
ahmadJT
c5c0912abe
[MM-58442] Migrate tooltips of 'components/drafts/panel/panel_header' to WithTooltip (#27197) 2024-06-21 16:40:36 +00:00
Scott Bishel
e23f992b26
fix for group member count using wrong property (#27201)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-06-21 09:19:56 -06:00
Christopher Poile
5823edf2c2
[MM-59037] Prepackage calls v0.28.2 for v9.10 (#27425) 2024-06-21 09:56:05 -04:00
Harrison Healey
f6d0dc1931
MM-58772 Change PerformanceReporter to use Date.now for timestamps (#27396)
* MM-58772 Change PerformanceReporter to use Date.now for timestamps

* Let timestamps be equal in test
2024-06-20 12:11:45 -04:00
Takuya N
efe04e31b0
chore(api): replace redoc-cli with @redocly/cli (#27144)
redoc-cli was deprecated in favor of @redocly/cli.

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-06-20 17:54:41 +02:00
Arya Khochare
09792aee4e
[MM-58519] Migrate tooltips of "components/integrations/bots/add_bot/add_bot.tsx" to WithTooltip (#27291) 2024-06-20 07:01:53 +00:00
lindalumitchell
d811bd9e1d
Update link preview URL in test-search.md (#27398) 2024-06-20 14:48:22 +08:00
enzowritescode
a624c6dc87
Add saml private key to gitignore, remove unused constants (#27391) 2024-06-19 10:03:28 -06:00
Harrison Healey
7d06ac8812
Move password utilities to their own file (#27366)
* Move password utilities to their own file

* Move passwordErrors to utils/password

* Update file path in test

* Actually commit the whole thing
2024-06-19 15:42:38 +00:00
Harrison Healey
cca0db7e32
MM-58823 Remove feature flag from client metrics (#27397) 2024-06-19 10:45:23 -04:00
Harrison Healey
5defc75e46
MM-57913 Increase maximum length of Preferences.Value column (#27297)
* MM-57913 Increase maximum length of Preferences.Value column

* Add missing column name to migration

* Lowercased table and column names
2024-06-19 10:39:37 -04:00
Doug Lauder
8181a9ddff
MM-57867 Don't delete existing DM on invitation error (#27357)
* ensure channel invitations create new channels; don't delete pre-existing channels on failure cleanup

* update comment
2024-06-19 16:20:46 +02:00
Devin Binnie
f41e8ad756
[MM-57489] Check for StatusCode when receiving responses from the push proxy (#27392) 2024-06-19 09:18:26 -04:00
Brandon Shen
3a890e1c90
[MM-58514] Migrate tooltips of "components/channel_members_rhs/header.tsx" to WithTooltip (#27241) 2024-06-19 09:39:52 +00:00
Brandon Shen
9bf07437cf
[MM-58513] Migrate tooltips of "components/channel_info_rhs/header.tsx" to WithTooltip (#27240) 2024-06-19 09:39:25 +00:00
RJ Trujillo
fe5ddaee8e
fix(webapp/Makefile): Drop quotes around appended cppflags (#27374)
Currently, if you're building under aarch64 and have cppflags set in your environment as such:

`CPPFLAGS="-O2 -Wall -fomit-frame-pointer -march=armv8-a -mtune=neoverse-n1 -Wp,-D_FORTIFY_SOURCE=3"`

This will result in `-DPNG_ARM_NEON_OPT=0` being improperly applied:

`CPPFLAGS="-O2 -Wall -fomit-frame-pointer -march=armv8-a -mtune=neoverse-n1 -Wp,-D_FORTIFY_SOURCE=3 " -DPNG_ARM_NEON_OPT=0""`

As a result, when npm install is ran, it will fail. To fix this, we remove the quotes around the appended cppflags

Signed-off-by: RJ Sampson <rj.sampson@chainguard.dev>
2024-06-18 15:56:45 -04:00
Daniel Schalla
1bbc3b4e83
[MM-58560] Configurable session revocation during password resets (#27286)
* [MM-58560] Allow for configurable session revocation during password reset

* Missing i18n additions

* Update Settings Wording

* Update Settings Wording #2

* Update default_config.ts for Session Termination

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-06-18 21:13:29 +02:00
Matheus
cbd5d95bbb
[MM-57988] Fix move thread logic to not block channel admins (#27061)
* mm-57988: Allowing for channel admins to move thread

* Fix the MoveThread team admin unit test that was introduced

* Renaming the hasPermittedRole function to hasPermittedWranglerRole

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-06-18 13:41:49 -04:00
Harrison Healey
0da473b9f8
Remove t from utils and most components (#27274)
* Remove t from utils/utils

* Remove t from utils/url

* Remove t from utils/constants

* Remove t from components/widgets

* Remove t from components/copy_button

* Remove t from components/searchable_channel_list

* Fix mocking of React in some tests
2024-06-17 13:40:37 -04:00
Ben Cooke
9187c772b6
[MM-56074] mmctl job commands (#26855)
* add job list and update  job status command to mmctl
2024-06-17 12:07:05 -04:00
Rajat Dabade
5894abc36e
[MM-58315]: prepackage boards to v9.5+ (#27307)
* [MM-58315]: prepackage boards to v9.5+

* chore: changes the name of focalboard artifacts
2024-06-17 18:30:06 +05:30
Weblate (bot)
e92de72cfc
Translations update from Mattermost Weblate (#27378)
* Translated using Weblate (French)

Currently translated at 83.2% (4806 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fr/

* Translated using Weblate (Polish)

Currently translated at 100.0% (2506 of 2506 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/pl/

* Translated using Weblate (German)

Currently translated at 100.0% (2506 of 2506 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/de/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (2506 of 2506 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/sv/

* Translated using Weblate (Japanese)

Currently translated at 100.0% (2506 of 2506 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/ja/

* Translated using Weblate (Japanese)

Currently translated at 100.0% (5772 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/ja/

* Translated using Weblate (Norwegian Bokmål)

Currently translated at 3.7% (215 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nb_NO/

* Translated using Weblate (Norwegian Bokmål)

Currently translated at 3.9% (228 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nb_NO/

* Translated using Weblate (Norwegian Bokmål)

Currently translated at 4.3% (252 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nb_NO/

* Translated using Weblate (Norwegian Bokmål)

Currently translated at 4.3% (252 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nb_NO/

* Translated using Weblate (French)

Currently translated at 83.2% (4808 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fr/

* Translated using Weblate (French)

Currently translated at 83.4% (4815 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fr/

---------

Co-authored-by: boristrbrt <boris.trombert@gmail.com>
Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: jprusch <rs@schaeferbarthold.de>
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Co-authored-by: Frank Paul Silye <frankps@uio.no>
Co-authored-by: Zenocode <zenocode@protonmail.com>
2024-06-17 09:46:03 -03:00
Ben Schumacher
01958bb5dc
[MM-58039] Enable errcheck linter for enterprise/saml package (#26909) 2024-06-17 05:10:39 +02:00
Christopher Poile
a316dfb80b
[MM-58296] Update prepackage calls to v0.28.1 for MM v9.10 (#27352)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-06-15 10:12:06 -04:00
Claudio Costa
958a403537
[MM-53491] Fix rendering of active call icon in sidebar's channel link (#27172)
Automatic Merge
2024-06-14 19:41:30 +03:00
Matthew Birtch
1fd346f28e
fixed wrapping button label for followed threads (#27330)
Automatic Merge
2024-06-14 17:11:30 +03:00
M-ZubairAhmed
0d5e30dddb
[MM-58456] Make react library be loaded at DOMContentLoaded instead of onload (#27192) 2024-06-13 17:37:41 -04:00
Matthew Birtch
a88f283ef7
MM-58685 Fix Channel Header Icon Button Spacing (#27313)
Automatic Merge
2024-06-13 21:11:30 +03:00
Alejandro García Montoro
d81ce03168
MM-57839: Rewrite static assets only if needed (#27076)
* Rewrite static assets only if needed

Refactor UpdateAssetsSubpathInDir so that the actual rewriting of files
happen in two different functions: one for root.html, another for
manifest.json and *.css files.

I would have wanted to simply do a

  if pathToReplace == newPath { return nil }

when those two variables are defined, but the logic for root.html is not
that simple, and that may miss some edge cases, so I opted out for
simply moving the actual rewriting to individual functions, which check
for their corresponding conditions to perform the update:
  1. for root.html, check that the edited file is indeed different than
     the original one
  2. for manifest.json and *.css files, rewrite them only if
     pathToReplace != newPath, which in this case is clear that that's the
     only modification we do

* Fix expected error msg in test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-06-13 12:01:57 +02:00
Doug Lauder
bf8ddb4bdc
MM-57873 Check user visibility when accepting channel invites for DMs (#27331)
* check user visibility when accepting channel invites for DMs

* stronger visibility checking for DM users

* check for correct remoteid for remote user in DM invite

* fix unit test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-06-13 11:40:31 +02:00
Miguel de la Cruz
9733694854
Updates remote user creation process to preserve username and email (#27334)
This change makes sure that the original username and email are always
preserved when creating a user coming from a remote cluster.
2024-06-13 09:56:39 +02:00
Claudio Costa
4b0ae20ef7
Pass remote address in WebSocketMessageHasBeenPosted plugin hook (#27332) 2024-06-13 09:01:49 +02:00
Claudio Costa
d2c3710265
[MM-58017] Allow plugins to use more visualization types for admin statistics (#27188)
* Allow plugins to use more visualization types for admin statistics

* Fix translations failure in test

* Review types and better tests
2024-06-12 14:55:55 +02:00
Daniel Espino García
1ec2de4a95
Add mobile metrics (#27045)
* Add mobile metrics

* Fix mocks

* Add tests

* Fix lint

* Address feedback

* Fix lint

* Fix test

* Fix CI

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-06-12 11:33:04 +02:00
Ibrahim Serdar Acikgoz
691386a814
[MM-53356] server/app/migrations: refactor app migrations (#23958) 2024-06-12 10:08:57 +02:00
Harrison Healey
dfdb6e9ece
Improve isolation of PerformanceReporter tests to increase their stability (#27275)
* Improve isolation of PerformanceReporter tests to increase their stability

* Change how PerformanceReporter.sendBeacon is defined
2024-06-11 17:05:29 -04:00
Eva Sarafianou
1d704745b7
Remove gobom files (#27140) 2024-06-11 19:15:24 +03:00
Doug Lauder
594ba6e665
MM-58577 Check remote ownership for posts and reactions (#27317)
* - ensure that posts and reactions can only be added via sync when coming from a remote that the target channel is shared with.
- ensure that posts and reactions are only modified/deleted by the remote that owns them.

* check that reaction belongs to post that belongs to channel that is shared with remote;  check that posts belong to channel shared with remote

* check for correct error type in unit test

* tweak unit test
2024-06-11 17:51:00 +02:00
Weblate (bot)
6f8de3449a
Translations update from Mattermost Weblate (#27306)
* Translated using Weblate (German)

Currently translated at 100.0% (2505 of 2505 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/de/

* Translated using Weblate (Dutch)

Currently translated at 100.0% (2505 of 2505 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/nl/

* Translated using Weblate (Polish)

Currently translated at 100.0% (2505 of 2505 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/pl/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (2505 of 2505 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/sv/

* Translated using Weblate (German)

Currently translated at 100.0% (5772 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/de/

* Translated using Weblate (Dutch)

Currently translated at 99.9% (5769 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nl/

* Translated using Weblate (Polish)

Currently translated at 100.0% (5772 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/pl/

* Translated using Weblate (Swedish)

Currently translated at 99.9% (5769 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/sv/

* Translated using Weblate (Persian)

Currently translated at 84.7% (2122 of 2505 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/fa/

* Translated using Weblate (Japanese)

Currently translated at 99.7% (5760 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/ja/

* Translated using Weblate (Japanese)

Currently translated at 100.0% (2505 of 2505 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/ja/

* Translated using Weblate (Polish)

Currently translated at 100.0% (5772 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/pl/

* Translated using Weblate (Polish)

Currently translated at 100.0% (5772 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/pl/

* Translated using Weblate (Polish)

Currently translated at 100.0% (5772 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/pl/

* Translated using Weblate (Swedish)

Currently translated at 99.9% (5771 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/sv/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (5772 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/zh_Hans/

* Translated using Weblate (Polish)

Currently translated at 100.0% (5772 of 5772 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/pl/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (2505 of 2505 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/sv/

---------

Co-authored-by: jprusch <rs@schaeferbarthold.de>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
Co-authored-by: Mo Jahani <only_maj@yahoo.com>
Co-authored-by: maruTA-bis5 <bis5.wsys@gmail.com>
Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Co-authored-by: aeomin <lin@aeomin.net>
2024-06-11 10:09:16 -03:00
Aditya Pratap Singh Hada
075e0df5df
[MM-57034]: Check for s3 object is File or Directory (#26837)
* check for path when number of object is one

* add test and updated condition to check for path

* updated test and removed string trim

* using exported method

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-06-11 17:32:57 +05:30
Nick Misasi
b86ba51efd
Add check to not send license expiration email when in Cloud (#27308) 2024-06-10 11:20:44 -04:00
Domenico Rizzo
4acc4796ed
Added GetPluginID method and tests (#27281)
A new method, GetPluginID, has been added to the Manifest model. This function returns the ID of a plugin. Corresponding unit tests have also been implemented to ensure that this function works as expected. The test cases cover scenarios where IDs are the same and different.
2024-06-10 11:11:47 -04:00
Christopher Speller
cebe7e0315
Update Copilot plugin prepackaged version (#27296) 2024-06-10 07:13:36 -07:00