Commit Graph

18961 Commits

Author SHA1 Message Date
Harrison Healey
a773e6828c
MM-58772 Fix counter metrics not using Date.now (#27702) 2024-07-22 14:43:28 -04:00
Weblate (bot)
68737af37d
Translations update from Mattermost Weblate (#27721)
Automatic Merge
2024-07-22 19:27:50 +03:00
Agniva De Sarker
e60a189ba2
Elasticsearch: Remove redundant message string (#27703)
The backend title was already there in en.json

```release-note
NONE
```
2024-07-22 13:48:50 +05:30
Arya Khochare
50b3af38aa
[MM-58515] Migrate tooltips of "components/shared_channel_indicator.tsx" to WithTooltip (#27247) 2024-07-20 09:35:20 +00:00
Harrison Healey
c0874455f3
Disable legacy-peer-deps and manually override mismatched dependencies (#27677)
* Disable legacy-peer-deps and manually override mismatched dependencies

* Switch to overriding dependencies of individual packages
2024-07-18 15:36:02 -04:00
M-ZubairAhmed
e2d7d2d23c
[MM-59060] Remove pre release features section from advanced section of user settings (#27608) 2024-07-18 13:01:57 +00:00
Amy Blais
eaa3c86a6a
Updated minimum supported Edge and Chrome versions (#27691)
Automatic Merge
2024-07-18 15:27:50 +03:00
M-ZubairAhmed
1ff54a31bc
[MM-59296] Can't open web client on iOS Safari (#27607) 2024-07-18 10:39:16 +00:00
Scott Bishel
db138fd23a
Remove deprecated function (#27605)
* make /ancillary a post

* remove get from client, fix tests

* remove GET for retrieving ancillary permissions

* Update permissions.yaml

* Update permissions.yaml

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-17 16:02:39 -06:00
Claudio Costa
be94c47607
[MM-57418] Implement support for defining plugin settings sections (#27654)
* Implement support for defining plugin settings sections

* Implement custom plugin configuration sections

* Tests

* Update test

* Improvements
2024-07-17 18:24:33 +02:00
Asaad Mahmood
c0a7a19294
MM-58527 - Fixing overflow issue for autocomplete (#27479)
* MM-58527 - Fixing overflow issue for autocomplete

* MM-58527 - Fixing overflow issue on autocomplete
2024-07-17 20:52:01 +05:00
Jesse Hallam
9304c404df
MM-58756: paginate webhooks list (#27368)
* MM-58756: paginate webhooks list

* show error if webhook list fails
2024-07-17 10:02:07 -03:00
Harshil Sharma
b25820b5c5
Added a bunch of debugging logs for Elasticsearch index check (#27678)
* Added a bunch of debugging logs for Elasticsearch index check

* Update server/channels/app/elasticsearch.go

---------

Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
2024-07-17 13:37:34 +05:30
yasserfaraazkhan
d71e5e4f4e
MM-57354: Fix elastic search e2e tests (#27670) 2024-07-17 07:33:40 +08:00
Scott Bishel
fb790a860b
fix wrong property set (#27625)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-16 17:23:25 -06:00
Weblate (bot)
7b27b28d6f
Translations update from Mattermost Weblate (#27656)
* Translated using Weblate (German)

Currently translated at 100.0% (2520 of 2520 strings)

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

* Translated using Weblate (Japanese)

Currently translated at 100.0% (2520 of 2520 strings)

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

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (2520 of 2520 strings)

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

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (5801 of 5801 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (2520 of 2520 strings)

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

* Translated using Weblate (Polish)

Currently translated at 99.5% (5775 of 5801 strings)

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

* Translated using Weblate (Dutch)

Currently translated at 100.0% (2520 of 2520 strings)

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

* Translated using Weblate (Russian)

Currently translated at 100.0% (2520 of 2520 strings)

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

* Translated using Weblate (Russian)

Currently translated at 98.5% (5715 of 5801 strings)

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

* Translated using Weblate (Dutch)

Currently translated at 99.9% (5797 of 5801 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (5801 of 5801 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (5801 of 5801 strings)

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

* Translated using Weblate (English (Australia))

Currently translated at 100.0% (2520 of 2520 strings)

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

* Translated using Weblate (English (Australia))

Currently translated at 100.0% (5801 of 5801 strings)

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

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

---------

Co-authored-by: jprusch <rs@schaeferbarthold.de>
Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Co-authored-by: Sharuru <mave@foxmail.com>
Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: Konstantin <eleferen@gmail.com>
Co-authored-by: Matthew Williams <Matthew.Williams@outlook.com.au>
2024-07-16 15:22:42 -03:00
Scott Bishel
ea6490a5eb
MM-58847 Sanitize User (#27471)
* add more fields to sanitizeInput on User

* add test for user sanoitizeInput

* add more fields

* remove line, lint fix

* additional fields and sanitize update

* Update user_test.go

* remove fields that are unnecessary to check

* add check to test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-16 11:39:47 -06:00
yasserfaraazkhan
e917709be5
feat(e2e): Manage User Settings e2e tests (#27618) 2024-07-16 20:40:00 +05:30
Mario Vitale
e05ec0efc3
Fix E2E test triggering (#27669)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-16 16:36:42 +02:00
Harshil Sharma
4a48a6f020
Code enhancements to feature - Sysadmin manage user settings (#27636)
* A bunch of refactoring to simplify things

* Unifged getUnreadScrollPositionPreference selector

* Unifed a selector

* Unifed a selector

* Renaming currentUserId to userId

* Renaming currentUserId to userId

* Fixed a typo
2024-07-16 19:55:08 +05:30
M-ZubairAhmed
80aaeb9d03
[MM-59083] Handle permissions in user management options (#27668) 2024-07-16 14:20:13 +00:00
Harrison Healey
0227ac0fc1
MM-59404 Stop automatically dismissing desktop notifications (#27627) 2024-07-15 12:53:17 -04:00
Harrison Healey
fd0f1cf87e
MM-59099 Show invalid emoji text with its original case (#27603) 2024-07-15 12:51:20 -04:00
Harrison Healey
d3dac41cda
MM-59416 Don't request notification permissions when we already have them (#27629)
* MM-59416 Only request notification permissions from the browser once per session

* MM-59416 Don't request notification permissions when we already have them

* Address feedback

Co-authored-by: Daniel Espino García <larkox@gmail.com>

* Fix bad merge

---------

Co-authored-by: Daniel Espino García <larkox@gmail.com>
2024-07-15 12:50:25 -04:00
enzowritescode
d44c3d5d45
Replace Hard-coded HTTP Verbs with Constants (#27219)
* Replace hard-coded HTTP verbs with constants in `net/http`
2024-07-15 08:52:03 -06:00
unified-ci-app[bot]
e364c2a265
chore: Update NOTICE.txt file with updated dependencies (#27655)
Automatic Merge
2024-07-15 15:27:51 +03:00
Christopher Speller
fa8269e4ab
Update Copilot plugin prepackaged version to 0.8.3 (#27645) 2024-07-15 04:23:49 -07:00
Daniel Espino García
a272fb29a5
Unify advanced create post and advanced create comment (#26419)
* Unify advanced create post and advanced create comment

* Re-add focus on mount prop and fix minor selector issue with get draft

* Address feedback

* Some merge fixes and some comments addressed

* Remove tests

* Fix tests

* Address feedback

* Fix formatting bar spacer and minor refactoring

* Fix remove upload from clean draft issue

* Fix types

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-15 10:14:14 +00:00
Ben Schumacher
ff3ed78124
[MM-59292] Add metadata to Support Packet (#27573) 2024-07-14 20:26:43 +02:00
Ben Schumacher
a4bdb65037
[MM-55215] Remove deprecated LdapSettings.Trace (#27376) 2024-07-13 10:31:33 +02:00
Ben Schumacher
bbc8baac0a
[MM-59350] Include LDAP vendor errors in Support Packet (#27571) 2024-07-13 10:17:07 +02:00
Ashish Dhama
9bb22a369a
MM-54856: Place emoji at cursor position while editing message (#27418)
* MM-54856: fix issue with emoji position in edit post editor

* use useRef instead of useState

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-12 15:59:22 -04:00
Jesús Espino
a4f2ec744c
Adding Do not disturb and remote user hour warnings (#27138)
* Adding Do not disturb and remote user hour warnings

* Do not show the hour warning on your own DMs

* style tweaks

* Some fixes

* Linter fixes

* Updating snapshots

* Improving the robustness of this solution

* Some improvements on keeping up the hour in the interface

* i18n-extract and fix linter errors

* Removing colon where is not needed

* Removing the time from 6-7 to be shown

* Addressing PR Review Comments

* Changing the remote user hour icon

* Changing back to fill and not outline icon

* Addressing PR review comments

* Fixing the RHS showing this

* Removing unneeded check

* Fixing linter error

* Update webapp/channels/src/components/advanced_text_editor/do_not_disturb_warning.tsx

Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>

* Addressing PR review comment

* adding consistency to show the DND and Late hours message

---------

Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>
2024-07-12 20:11:43 +02:00
Christopher Poile
a3edc70019
[MM-58750] Update prepackage calls to v0.29.0 for MM v9.11 (#27642) 2024-07-12 11:46:24 -04:00
Ben Schumacher
7434b524af
[MM-56655] Remove deprecated Config.ProductSettings (#27375) 2024-07-12 16:33:19 +02:00
Harshil Sharma
40abf8ef66
Updated required role for user report page GET API (#27529)
* Updated required role for user report page GET API

* Updated permission in error message

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-12 11:13:09 +05:30
Akis Maziotis
22604d4592
[fix] ci container image scanning (#27631)
Fixup on https://github.com/mattermost/mattermost/pull/27624
Exposing the tag variable to be used in the scanning step.

Ticket: https://mattermost.atlassian.net/browse/CLD-8041

Signed-off-by: Akis Maziotis <akis.maziotis@mattermost.com>
2024-07-12 08:34:56 +03:00
Harshil Sharma
87d983cc7f
Sysadmin manage user settings (#27583)
* Opened modal from system console

* WIP

* WIP

* WIP

* Handled saving user

* Successfully updated user based settings

* WIP

* WIP

* All settings are updating well

* Fixed modal style

* Added admin mode indicators in modal

* Added confirmation dialog

* Lint fixes

* Added license check

* Added permission check

* Fixed i18n file order

* type fix

* Updated snapshots

* Handled performance debugging setting

* Some styling tweaks

* Fixed text alighnment

* Updated license required from professional to enterprise

* Handled long user names

* review fixes

* Added manage setting option in user list page context menu

* Added loader

* Minor reordering

* Removed confirm modal

* Updated snapshots for removed modal

* Added some tests

* Lint fix

* Used new selector in user detail page

* Used new selector in user list page

* Updated tests

* Fixed an incorrect default test
2024-07-12 10:22:04 +05:30
Akis Maziotis
0df1a62f61
[feat] adding container image scanning (#27624)
Expanding on our ongoing efforts to enhance security, we are integrating container image scanning into the CI pipeline using Wiz.io
https://docs.wiz.io/wiz-docs/docs/github-pipeline

The policy defined, will be providing internal reports in wiz.io for our teams to review. Will not enforcing CI failure at this point.
2024-07-12 00:50:22 +03:00
Ben Cooke
d249d4d1b0
[MM-58778] Fixing white screen for GM conversion (#27385)
* fixing white screen for GM conversion
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-11 16:52:44 -04:00
Harrison Healey
7d80b5d04b
MM-59378 Skip flaky PerformanceReporter test (#27626) 2024-07-11 13:06:02 -04:00
Paweł Pohl
43b70e287a
MM-58351 Fix showing LHS scrollbar when moving mouse over on chrome and safari (#27160)
* fixing scrollbar not showing when moving mouse over sidebar

* making scrollbar hidden by default and keep shown when hover over channel list

* updating sidebar_list snapshot
2024-07-11 11:13:01 -04:00
Daniel Espino García
e8b4892877
Fix several re-renders on init (#26361)
* Fix several re-renders on init

* Fix tests

* Address feedback

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-11 12:58:56 +02:00
Doug Lauder
19d59d1126
MM-58245 Don't allow patching real email or username for remote users (#27613)
* don't allow patching real email or username for remote users

* add comment
2024-07-11 10:17:09 +02:00
Agniva De Sarker
177389d224
MM-53962: Adding ES8 dependency (#24399)
* Adding ES8 dependency

```release-note
NONE
```


Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-11 13:13:31 +05:30
Ibrahim Serdar Acikgoz
a695a755f6
Update .server/gitignore to ignore all JSON files under the directory (#27593) 2024-07-11 09:12:57 +02:00
Mario Vitale
731f056f54
Support release testing (#27587)
* Support release testing
* Merge resolve-ref and generate-test-variables jobs
2024-07-10 16:47:26 +02:00
Scott Bishel
5d7027a172
MM-58776 - Change Ancillary Permissions API to POST (#27504)
* make /ancillary a post

* remove get from client, fix tests

* Update permissions.yaml
2024-07-10 08:12:56 -06:00
Harmeet singh
7c2a461de8
[MM-56921] Rendered Latex in Codeblock when rendering disabled (#27060)
* Rendered Latex in Codeblock when rendering disabled

* Fixed Lint error

* Removed render function in Latex Component

* Fix errors preventing LatexBlock unit tests from running

* Updated latex disabled test for Codeblock testing

* Fixed latex_block test lint errors

* Removed Latex disabled test Snapshot

---------

Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-09 16:47:33 -04:00
Harrison Healey
e3b2b13292
MM-58535 Add more information to LCP and INP metrics (#27484)
* Improve mocking of imported resources in unit tests

We have Webpack configured so that, when code imports an image or other resource, the code gets the URL of that image. Jest now matches that behaviour which is needed because React Testing Library would previously throw an error.

* Polyfill ResizeObserver in all unit tests

* Ensure haveIChannelPermission always returns a boolean value

The previous code could sometimes return undefined. While that should behave the same in practice, it can cause React to print prop type warnings

* MM-58535 Add region label to LCP metrics

* MM-58535 Upgrade web-vitals and add INP attribution

* Change new labels to use snake_case

* Remove replaceGlobalStore option from renderWithContext

I was going to add this in case any tests failed with this option set to false, but after running those tests, that's not the case. I'm going to remove this as an option since it seems more likely than not that anyone using RTL would prefer to have this on.
2024-07-09 15:06:08 -04:00