Commit Graph

17732 Commits

Author SHA1 Message Date
Dipan Dhali
a272a78e63
Convert ShieldOutlineIcon to function Component (#24810)
* Convert ShieldOutlineIcon to function Component

* Fixed Extra line and Test file
2023-10-18 10:04:40 +02:00
Kritik Jiyaviya
0bf7f1413c
Convert ./components/post_view/scroll_to_bottom_arrows.tsx to functional component (#24801)
* Convert ./components/post_view/scroll_to_bottom_arrows.tsx from Class Component to Function Component

* update scroll_to_bottom_arrows component

* enhancement: scroll_to_bottom_arrows component

* update scroll_to_bottom_arrows component

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-18 09:52:34 +02:00
Paul Vernin
d2d820cb31
[MM-54474] Fixed behaviour of markdown code button (#24816)
* update webapp/../apply_markdown.ts to support codeblock and inline block markdown correctly & added corresponding unit tests to apply_markdown.test.tsx

* refactor apply_markdown.ts

* refactor applyMarkdownToSelection to support different starting/ending delimiter && delete applyCodeBlockToSelection

* updated apply_markdown.test.tsx

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-17 16:25:09 -04:00
Harrison Healey
3e6cce5ab5
Add documentation for get emojis by names API (#24983) 2023-10-17 15:09:26 -04:00
Harrison Healey
3d0fd16666
MM-54640 Add API to get multiple emojis by name at once (#24651)
* MM-54640 Add API to get multiple emojis by name at once

* Fix status code when too many names are requested

* Address feedback

* Update unit tests

* Fix styling

* Fix more styling

* Fix mismatched i18n id
2023-10-17 12:03:28 -04:00
Harrison Healey
77cc356d46
Revert "Add "thanks" and "thank you" to "pray" emoji (#24090)" (#24969)
This reverts commit 6abaf04a95.
2023-10-17 11:57:35 -04:00
Jesse Hallam
2ba91e43b6
Remove support for unused product interfaces (#24965)
We no longer rely on commands and hooks for products, so simplify this code.
2023-10-17 11:55:41 -03:00
Tom De Moor
1de790a4fe
Adding Vietnamese as a new language (beta) (#24074)
* adding vietnamese

* ran npm run test:updatesnapshot

* ran npm run test:updatesnapshot

* Update i18n.jsx

* updatesed snapshot

* fix whitespace in snapshots

* add vi as supported server locale

* update docs to point at server-side list of supported locales

* removed incorrect translation

---------

Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
2023-10-17 10:08:13 -03:00
Rafael Kristoforus Yanto
09adf9ae91
[MM-54842] Convert LocalizedInput of 'abstract_command.tsx' to regular input component (#24886) 2023-10-17 18:20:01 +05:30
Balaji K
f86ec9da18
#24773 Converted ./components/emoji_picker/components/emoji_picker_header.tsx to Function Component (#24803)
* #24773 Converted ./components/emoji_picker/components/emoji_picker_header.tsx to Function Component

* Fixed the lint errors and removed the explicit functional component type

* Added memo to make the functional component pure.
2023-10-17 12:59:36 +02:00
Yusuke Nemoto
654669aa00
[MM-54858] Can't set 0 to a dialog element with subtype=number in interactive dialog (#24916)
* fix: avoid considering 0 as falsy value

* refactor: simplify value assertion

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-17 12:57:03 +02:00
Dipan Dhali
f44f4edd17
[MM-54834] Convert LocalizedInput of mfa/setup/setup.tsx to regular input component (#24931) 2023-10-17 16:26:47 +05:30
Firmansyah Yanuar
98c8f9ae44
[MM-54794] Convert ./components/widgets/icons/fa_next_icon.tsx to function component (#24785)
* chore(channels): convert next icon to functional component

* test(channel): update next snapshot

* chore(channels): change to arrow function, remove `t`, and use `classNames`

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-17 12:49:35 +02:00
Harsh Solanki
1f384cad4e
[MM-54838] Convert LocalizedInput of 'system_users.tsx' to regular input component (#24858) 2023-10-17 14:58:46 +05:30
Ritesh Mukim
fb1234667b
[MM-23408] Migrate "components/setting_item_max.test.jsx" to Typescript (#24938) 2023-10-17 14:57:25 +05:30
Balaji K
83b4ad458a
#24774 Converted ./plugins/rhs_plugin/rhs_plugin.tsx to Function Component (#24802)
* #24774 Converted ./plugins/rhs_plugin/rhs_plugin.tsx to Function Component

* Fixed the lint errors and removed explicit FC type

* Added memo to make the functional component pure.
2023-10-17 10:43:01 +02:00
Balaji K
2b2743d9cb
#24774 Converted ./plugins/rhs_plugin/rhs_plugin.tsx to Function Component (#24802)
* #24774 Converted ./plugins/rhs_plugin/rhs_plugin.tsx to Function Component

* Fixed the lint errors and removed explicit FC type

* Added memo to make the functional component pure.
2023-10-17 10:42:36 +02:00
Harshil Sharma
4633d4d3b9
MM-54731 Fixed a bug preventing users be added from system console (#24828)
* Fixed a bug preventing users be added from system console

* Updated usersToRemove
2023-10-17 11:54:54 +05:30
Ben Schumacher
4408ece955
Fix data race in bulk import tests (#24897) 2023-10-16 22:40:19 +02:00
Umar Abid
1a12faaaae
GH-24784 Convert ./components/common/site_name_and_description.tsx to Function Component (#24809)
* fix: convert ./components/common/site_name_and_description.tsx to function component

* update: code style changes

* fix: refactor code

* fix: update failing snapshots

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-16 17:30:06 +02:00
Nick Misasi
8f2ae32e82
[CLD-6077] Changes to Country Selectors throughout Webapp (#24868)
* Standardize country selectors into using a central component - don't use Country Name, use Country Code

* Fix colour of placeholder

* Updates

* Update state selector to reflect changes from Country Name to Country Code

* Fix linter"
2023-10-16 11:23:22 -04:00
Tanmay Vardhaman Thole
cb83bd154b
convert EmojiIcon component from class based to function based component (#24792)
* convert EmojiIcon comp to functional comp

* comment resolved

* memoization added

* snapshot updated

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-16 17:05:05 +02:00
Tanmay Vardhaman Thole
b4f3816f0c
migrate channel header dropdown comp to functional comp (#24793)
* migrate channel header comp to functional comp

* snapshots updated

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-16 17:04:31 +02:00
mattermod
2cdf2aaff8 Update latest version to 9.1.0 2023-10-16 15:02:56 +00:00
Jesse Hallam
0577a5aaa2
Fix OpenApi vetting (#23974)
* fix openApi vetting

The underlying mattermost-govet tool effectively hasn't been called for some time, as we weren't checking out and building the spec files to pass. Now that hte API is in the monorepo, build it locally and check against it.

Unfortunately, our API documentation isn't up-to-date, and this PR isn't fixing that. For now, add a discrete `make vet-api` and workflow that won't block the build until the API documentation is back in sync and can be merged into the existing `make vet` directive.

* mattermost-govet: use upstream@new

* fix missing /api/v4 prefix for commands autocomplete suggestion

* document /api/v4/ldap/users/{user_id}/group_sync_memberships

* document /api/v4/groups/{group_id}/restore

* fix /files/{file_id}/public actually at root

* document /api/v4/users/invalid_emails

* fix SetThreadUnreadByPostId

* Revert "fix SetThreadUnreadByPostId"

This reverts commit b16bcc8044.

* Revert "Revert "fix SetThreadUnreadByPostId""

This reverts commit 8bda05dc8a.

* workaround undocumented API endpoints

* remove unnecessary whiteline

* ignore go tool output

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-16 11:27:43 -03:00
Nick Misasi
930309e01e
[CLD-6373] Fix non-admin users requesting self hosted expansion status on load (#24890)
* Fix non-admin users requesting self hosted expansion status on load

* Fix linter

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-16 09:55:13 -04:00
Jesús Espino
b6fd1b7bcf
migrating elasticsearch_settings.test.jsx to typescript (#24947)
* migrating elasticsearch_settings.test.jsx to typescript

* Fixing CI
2023-10-16 15:11:33 +02:00
Jesús Espino
8eaaa7228e
migrating database_settings.test.jsx to typescript (#24946)
* migrating database_settings.test.jsx to typescript

* Removing unnecessary type assertion
2023-10-16 13:45:53 +02:00
Eric Sethna
6abaf04a95
Add "thanks" and "thank you" to "pray" emoji (#24090) 2023-10-16 16:10:57 +05:30
M-ZubairAhmed
d557bd864f
[MM-54138] Remove code involving getRedirectLocation and state.entities.posts.expandedURLs (#24739) 2023-10-16 16:09:59 +05:30
Zubair Imtiaz
d98dc31425
Fixes [#24664] Improve System Message Formatting for Channel Header Edits (#24714)
* Added cancel button in the delete category modal

* fix lint error

* fix eslint issues

* Line break Added in system messages-ChannelHeader

* fix-lint

* Update _post.scss

* Update _markdown.scss

* Update system_message_helpers.tsx

* remove_extra_spaces

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-16 12:34:43 +02:00
Maria A Nunez
2f5b756d67
MM-53481 Fix textbox broken Help link (#24889)
* Fixed broken link

* Fix importa

* Lint

* Fix import

* Linting

* fix snapshots
2023-10-16 06:24:47 -04:00
js029
9698ab2119
Mm 24857 specific logger in post go (#24862)
Co-authored-by: js029 <js029@gmail.com>
2023-10-16 12:17:04 +02:00
Paul Vernin
6457a47110
update (_sidebar-right.scss): remove default max-width (400px) of .sidebar--right (#24878) 2023-10-16 11:22:26 +02:00
Kritik Jiyaviya
a2475a46a6
Convert ./components/integrations/integration_option.tsx to functional component (#24806)
* Convert ./components/integrations/integration_option.tsx to functional component

* update integration_option component

* improve integration_option component
2023-10-16 10:21:35 +02:00
Harshil Sharma
89eae8babe
Updated error message for invalid attachments (#24872) 2023-10-16 11:24:58 +05:30
Saturnino Abril
6746857ee7
MM-52642 CLD-6352 MM-54007 Prepare setup for Playwright pipeline (#24647)
* pipeline(playwright): prepare setup for playwright

* feedback address

* clean up readme

* Fix docker-compose command and definition for dashboard

* fix the dashboard

* ignore dashboard when formatting

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Mario Vitale <mvitale1989@hotmail.com>
2023-10-14 07:02:32 +08:00
Michael Kochell
e9da1ee8ca
Performance metrics: Differentiate requests that are from page load (#24327)
* POC page_load_context header

* refactor to make this.pageLoadContext a private field, and relocate setTimeout code

* add pageLoadContext to `ObserveAPIEndpointDuration` method

* move to telemetry_actions

* move PageContext constant in webapp

* give server control of possible page_load_context values

* variable name change

---------

Co-authored-by: mickmister <mickmister>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-13 14:59:12 -04:00
Ben Cooke
72c75f01ce
[MM-52710] Adding a separator to the channel search string (#24349)
* adding a separator to the search string
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-13 12:52:23 -04:00
Gabriel Akinyosoye
02d0b12c96
[MM-54639] Help menu should open correctly aligned (#24655)
* remove openLeft

* remove prop usage

* revert menu

* change user guide dropdown

* update snapshot
2023-10-13 12:49:10 -04:00
Maria A Nunez
7074850fb1
Remove professional plus from in-product pricing (#24727)
* Remove professional plus from cloud pricing

* Removed additional unused strings
2023-10-13 11:57:56 -04:00
Scott Bishel
f4b4afdae6
MM-53855 - Handle serverError undefined or null (#24630)
* handle serverError undefined or null

* exclude bots from list and search for adding users to roles

* add import, fix lint

* add unit tests

* update test, team/channel admin based on membership, not user roles

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-13 09:57:17 -06:00
Agniva De Sarker
bd982356a7
Move mmctl CI tests to free tier (#24899)
Only the -race tests in master branch takes
more memory. So it will take more time, but there's no
need to optimize run time in master as nobody
is waiting for it to complete.

```release-note
NONE
```
2023-10-13 21:09:36 +05:30
Mattermod
a4754181f9
Update minor version to 9.2.0 (#24914)
Automatic Merge
2023-10-13 16:22:23 +03:00
mattermod
22686de81d Update latest version to 9.0.1 2023-10-13 12:28:43 +00:00
Alejandro García Montoro
2bc99398f9
MM-53023: Add origin client to ObserveAPIEndpointDuration (#23631)
* Add origin device to ObserveAPIEndpointDuration

* Fix generation of einterfaces mocks

* make einterfaces-mocks

* Use request's query and headers to get origin

* Add desktop to the origin device identification

* Test originDevice function

* Rename origin device to origin client
2023-10-12 19:09:52 +02:00
Sai Deepesh
1fe2295c70
[MM-47094] Migrate "components/integrations/abstract_oauth_app.jsx" and tests to Typescript (#24529) 2023-10-12 21:26:54 +05:30
Michael Kochell
195927eb4a
Revert "jira plugin prepackage 4.0.0 (#24609)" (#24901)
This reverts commit 2d9e0108e8.
2023-10-12 11:05:00 -04:00
Devin Binnie
89492a6a46
[MM-53428] Delete empty drafts on upsert (#24046)
* [MM-53428] Delete empty drafts on upsert

* Add migrations to fix existing drafts

* Fix CI

* Delete empty drafts entirely from the DB

* Fix lint

* Implement batch migration for deleting drafts

* Missing store layers

* Add updated mock

* Remove unnecessary test

* PR feedback

* Add check for cluster migration

* Fix MySQL

* Don't check for len<2

* Bit of PR feedback

* Use query builder for parameters

* PR feedback

* More PR feedback

* Merge'd

* unit test GetLastCreateAtAndUserIdValuesForEmptyDraftsMigration

* simplified builder interface

* fix DeleteEmptyDraftsByCreateAtAndUserId for MySQL

* rework as batch migration worker

* fix typo

* log ip address on version mismatches too

* simplify reset semantics

* remove trace log in favour of low spam

* document parameters for clarity

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
2023-10-12 10:52:10 -04:00
M-ZubairAhmed
760dfe41f9
[MM-54879] Goodbye, GraphQL -- Regards Webapp (#24850) 2023-10-12 17:03:13 +05:30