Commit Graph

19380 Commits

Author SHA1 Message Date
Devin Binnie
0c90b0363b
[MM-60609][MM-60612] Include Desktop App metrics in PerformanceReporter, add metrics in Prometheus for CPU/Memory usage (#28825)
* [MM-60609][MM-60612] Include Desktop App metrics in PerformanceReporter, add metrics in Prometheus for CPU/Memory usage

* Fix mocks

* PR feedback
2024-10-22 12:16:20 -04:00
Daniel Espino García
2d96053012
Use flags for create post (#28857)
* Use flags for create post

* Remove unintended file

* Fix unintended change and types

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-22 16:00:26 +02:00
Daniel Espino García
43a06d1b78
Fix dependencies and callbacks on update user group modal (#28867) 2024-10-22 15:49:50 +02:00
Caleb Roseland
da17205d0b
MM-61197, MM-60615: Move Connected Workspaces to Site Configuration (#28887) 2024-10-22 08:16:52 -05:00
Vishal
cc5b3a2f69
[MM-37585] (#28634)
* add tests

* pass userID to the function instead of the user object.

* remove concurrent login simulation

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-22 12:21:36 +05:30
yasserfaraazkhan
1a28bc2c58
Feat(e2e): E2E test for Optional desktop app landing page (#28839) 2024-10-22 05:40:25 +05:30
Weblate (bot)
9d23695b7c
Translations update from Mattermost Weblate (#28880)
Automatic Merge
2024-10-21 17:44:32 +02:00
Guillermo Vayá
4cd73fc2d5
[MM-61193] Create trackFeatureEvent telemetry handler for paid features in web (#28834)
* frontend paid feature usage tracking

* fixes on the tooling

* fix lint errors

* fix types

* fix ci

* move from paid to SKU

* fix linter

* move categories and skus to depend on event instead of feature

* move to constants
2024-10-21 15:04:27 +02:00
Rita Anene
aa450f2432
[MM-60861] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/notify_confirm_modal.tsx' with FormattedMessage (#28772) 2024-10-21 04:56:03 +00:00
Agniva De Sarker
64677dd554
MM-42810: Using websocket broadcast hook for permalink preview (#28627)
We use the newly introduced websocket broadcast hook system
to implement permalink preview efficiently. This is essentially
a re-do of https://github.com/mattermost/mattermost/pull/23812
using the new system.

https://mattermost.atlassian.net/browse/MM-42810
```release-note
NONE
```

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-21 09:35:32 +05:30
Niharika Goulikar
6939623e11
[MM-60832] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/admin_console/custom_terms_of_service_settings/custom_terms_of_service_settings.tsx' with FormattedMessage (#28690) 2024-10-20 18:07:08 +00:00
Mario Vitale
afbdfd9281
CLD-8147 Fix typo (#28856) 2024-10-19 09:46:03 +08:00
Arya Khochare
3ecded7387
[MM-60859] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/admin_console/system_roles/system_role/system_role_permissions.tsx' with FormattedMessage (#28732) 2024-10-19 01:17:34 +00:00
Miguel de la Cruz
8c1381f00a
Disables text editor for DMs and GMs with remote users (#28861)
This change makes the text editor behave similarly to the case of read
only channels, in a disabled state and showing a placeholder that
indicates that DMs and GMs with remote users are currently not
supported.

There is no way to create this type of channels now, but chances are
that existing servers have some already, so this is intended to
explicitly indicate that those won't work.
2024-10-18 15:34:42 -06:00
Miguel de la Cruz
30cb527cf6
Forbid users from creating DMs and GMs with remote users (#28855)
* Forbid users from creating DMs and GMs with remote users

This change prevents the application from creating new DMs and GMs
when remote users are involved, and prevents as well new posts from
being created into preexisting DMs and GMs with remote users created
in previous versions.

* Adds i18n

* Skip preexisting DM tests and create a new one for the new behavior
2024-10-18 11:16:29 -06:00
Angel Mendez
318abef7d1
convert elasticsearch_autocomplete/ files to ts (#28484)
* convert elasticsearch_autocomplete/ files to ts

- convert js files to ts
- update types
- fix lint issues

Fixes: #21308

* fix: add missing exports elasticsearch_autocomplete

- add missing export on functions:
 - createEmail
 - searchForChannel

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-18 08:57:21 -07:00
Rita Anene
53522e2371
[MM-60811] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/admin_console/team_channel_settings/channel/details/channel_profile.tsx' with FormattedMessage (#28610)
* Fix: Replace FormattedMarkdownMessage in file

* fix: update snapshot

* Fix: wrap Formated message in b tag

* Fix: wrap Formated message in b tag

* Fix: Fix Linting in file

* Fix: update snapshot

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-18 11:22:12 -04:00
Mario Vitale
0a14eb3d45
E2E Tests: unify compose files, support Opensearch (#28716)
* Unify docker-compose files, support opensearch and redis
* Support cypress/playwright bools, MM_SERVICE_OVERRIDES input
* Remove unused directives from E2E tests
* [skip ci] Fix ES tests, PR messages
* [skip ci] Fix service pruning on server restart
* [skip ci] Make services overrides a CSV, better param descriptions

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-18 16:51:24 +02:00
Harrison Healey
6af8c2f83e
Fix multiple copies of utility classes being loaded by the app (#28802)
* Fix multiple copies of utility classes being loaded by the app

When using SASS's at-import rule for a file containing CSS classes, the
entirity of the imported file is included into that chunk of the JS
bundle. This leads to those class definitions being duplicated multiple
times in the code loaded by the browser. That doesn't happen for mixins,
functions, or SASS variables which are evaluated at compile time.

To prevent those classes from being repeatedly defined, we need to not
import them into multiple bundles. We already load the utility classes
into the root bundle, so we just need to make sure not to import
sass/utils/_module.scss, sass/utils/_flex.scss,
sass/utils/_animations.scss, or sass/utils/_modifiers.scss into any
CSS files which are imported into individual components.

* Canonize import paths for SCSS mixins and functions

We previously imported some .scss files as `src/sass/...` and others as
`sass/...`. This was allowed becuase sass-loader's
`sassOptions.includePaths` included both `src` and `src/sass`. I've made
that more consistent now and removed the redundant include path.
2024-10-18 10:50:26 -04:00
Miguel de la Cruz
b4d8b6239c
Excludes remote channels from channel search (#28708)
* Excludes remote channels from channel search

This is done through a new body parameter in the SearchAllChannels
endpoint that allows to search for local only channels, which are
either channels that are shared but marked as homed locally, or
channels that are not shared at all.

* fix lint

* Fix tests

---------

Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
2024-10-18 07:41:24 -06:00
Mario Vitale
f06742c7e2
Fix image mirroring issues (#28849) 2024-10-18 13:32:39 +02:00
Caleb Roseland
fcded9559c
MM-61032: Add default_team_id to accept invite flow (#28841)
* add default_team_id to accept invite api

* add team selector to accept invite flow UI

* e2e

* lint/i18n
2024-10-18 12:26:38 +02:00
Miguel de la Cruz
5a923e0b94
Updates the create remote cluster endpoint to require a default team id (#28709)
Support for RemoteClusters without a default team id is in place for
old servers that created those connections before v10.1. This change
forbids the creation of new RemoteClusters without providing this
field, and will be removed when manual invites are implemented.

Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
2024-10-18 12:22:27 +02:00
Scott Bishel
ad50357792
change Get() to use Master (#28842)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-18 12:19:43 +02:00
Mario Vitale
2e010837f0
Update mirrored images, build opensearch (#28835)
* Update mirrored images, build opensearch
2024-10-18 09:45:51 +02:00
TheInvincible
bfd1d49e06
Fix errcheck issue in subpath_test.go (#28791)
* Fix errcheck issue in subpath_test.go

* Fix govet error

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-18 11:59:49 +05:30
Arya Khochare
c4fde3109b
[MM-57900] With long instance names, the About message gets cutoff in menu item (#26955) 2024-10-18 04:05:47 +00:00
Caleb Roseland
e6d6881917
MM-60980: Add RemoteClusterInvite.IsValid (#28624)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-17 20:37:11 -05:00
Arya Khochare
73fc99b577
errcheck issues fixed (#28646)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-17 15:22:01 +02:00
TheInvincible
0cb2475ea4
Fix errcheck issue in handlers.go (#28794) 2024-10-17 12:37:41 +02:00
Aditi Patel
347ca15f8d
[MM-60858] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/commercial_support_modal/commercial_support_modal.tsx' with FormattedMessage (#28737) 2024-10-17 10:29:15 +00:00
Caleb Roseland
9ae2752593
MM-60616: Shared Channels - System Console E2E (#28379)
* fix rc content types

* api spec

* don't ignore content type when parsing body

* secure connections:
- create
- read
- update
- delete
- share
- accept

* title

* wip

* manage shared channels, other fixes

* revert

* revert old

* maxlines

* add team selector, tooltip fix, msg fixes

* cleanup

* remote disabled state admindef

* add team label to channels input, fix i18n

* add filter

* review fixes, other fixes

* cleanup

* refactor channel fetching

* move modals

* fix imports, fix collected id

* remove unused action

* tabs visibility

when connection pending, hide tabs if none from home are shared.
when connection is connected, always show tabs

* api docs invite/uninvite response type

* fix modal id ref

* Remove the generate invite option for confirmed clusters

* e2e: add empty state test

* e2e: add create flow test

* fix modal id ref

* rev: double negation

* rev: server side password for create flow

* rev: remote cluster type 0 token, delete_at

* testing a11y, ids

* e2e

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
2024-10-17 10:36:51 +02:00
Michael
cd43bac181
[MM-60829] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/unarchive_channel_modal/unarchive_channel_modal.tsx' with FormattedMessage (#28730) 2024-10-17 06:45:18 +00:00
Ben Schumacher
2c139a293b
Add missing parenthesis in mmctl webhook list (#28778)
* Add missing parenthesis in mmctl webhook list

* Use generics in StoreResult
2024-10-17 07:45:10 +02:00
Elias Nahum
f8f998bfcb
set update_at on bookmarks return when changing sort order (#28807)
* set update_at on bookmarks return when changing sort order

* update bookmarks sort order test
2024-10-17 07:42:19 +02:00
M-ZubairAhmed
48cde8c0bf
[MM-60655] Issue in subpath hosting after changes in root.html (#28617) 2024-10-17 01:13:16 +00:00
Michael
c0df35b93e
[MM-60816] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/channel_view/channel_view.tsx' with FormattedMessage (#28728) 2024-10-17 01:07:01 +00:00
k srisri reddy
f3e7c2bf7a
[MM-60831] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/user_list_row_with_error/user_list_row_with_error.tsx' with FormattedMessage (#28726) 2024-10-17 01:05:13 +00:00
Rohan Sharma
ad65b6b391
[MM-60854] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/admin_console/team_channel_settings/convert_confirm_modal.tsx' with FormattedMessage (#28733) 2024-10-17 00:59:16 +00:00
Rohan Sharma
df925a3e6b
fix: Scheme test errcheck issues (#28553)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-16 16:30:09 -05:00
Malay Kumar
b1cde33d2c
[MM-60807] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/admin_console/license_settings/renew_license_card/renew_license_card.tsx' with FormattedMessage (#28626)
* Replaced FormattedMarkdownMessage

* Fix: update message id and formatting

* Fix: Revert Classname - optimize translation

* Fix: update translation en.json

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-16 17:24:23 -04:00
Pratham Mahajan
f1250eaadb
Fix errcheck issues in server/channels/api4/export_test.go (#28815)
* Fix errcheck issues in server/channels/api4/export_test.go

* fixed lint errors

* fix
2024-10-16 17:33:56 +02:00
Harrison Healey
b2fbee1608
Remove localizeMessage from a bunch of components (#28340)
* Remove localizeMessage usage for passing into LoadingSpinner or LoadingWrapper components

* Allow Input widget to translate its placeholder and remove related usage of localizeMessage

* Allow DropdownInputHybrid to translate its placeholder and remove localizeMessage from related files

* Have Multiselect translate some of its props and remove localizeMessage from the components using it

* Remove unused message prop from StartTrianBtn

* Remove localizeMessage from a bunch of function components

* Remove unused editingPost.title state

* Remove usage of localizeMessage from some random components

* Remove unused DataGrid searchPlaceholder prop

* Add LocalizedPlaceholderInput and LocalizedPlaceholderTextarea

I used these in a bunch of places where we used localizeMessage or in places where we only injected intl just for a placeholder. I didn't really need to remove injectIntl from all these places, but it's been a pet peeve of mine for a while

* Have SearchableChannelList always use its injected intl

* Added changes that VS Code didn't show me in the last commit...
2024-10-16 15:22:28 +00:00
Scott Bishel
6dc44f2831
MM 60583 Update message after continuing (#28425)
* remove part of the error message

* update text

* once continuing, clear error

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-16 09:19:05 -06:00
Scott Bishel
5dc86d5010
MM-56775 Limit Bookmarks Title and URL (#28424)
* additional validation for channelbookmark

* add fixes for webapp

* only set permissions correct for type

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-16 08:26:53 -06:00
TheInvincible
9726eedbe2
Update license.go (handled error) (#28410)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-16 09:45:41 +02:00
Nicolas Le Cam
63c97f5a6d
Change HeaderIconWrapper so that it get its icon passed as a children instead of a props (#28723)
Signed-off-by: Nicolas Le Cam <niko.lecam@gmail.com>
2024-10-15 14:59:28 -04:00
Scott Bishel
d5ce06e580
MM-60722 - don't allow multiple '@' in email (#28481)
* don't allow quoted strings in email

* don't allow multiple '@' in email

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-15 12:21:02 -06:00
Christopher Poile
b8e462e198
MM-60987: Move message_export code to monorepo (#28674)
* move message_export code to monorepo

* update license headers

* moving over `dedicated filestore` (#1772) from enterprise master
2024-10-15 13:03:31 -04:00
Asaad Mahmood
1d04a2292d
MM-60913 - Removing override from webhook buttons (#28769) 2024-10-15 19:00:43 +05:00