Commit Graph

17764 Commits

Author SHA1 Message Date
Ben Schumacher
d0c22aa1cd
[MM-54435] Use annotated logger to capture compliance export logs (#24791) 2023-10-23 10:20:32 +02:00
Akbar Abdrakhmanov
fe6131caed
[MM-54836] Convert LocalizedInput of 'compliance_reports.tsx' to regular input component (#25014) 2023-10-23 13:38:53 +05:30
ylac
df727947d1
[MM-52831] Migrate "components/admin_console/message_export_settings.jsx" and tests to Typescript (#24933) 2023-10-21 05:34:25 +05:30
M-ZubairAhmed
7caa5bce25
[MM-54486] Copy pasting images from chrome fails (#24718) 2023-10-21 05:29:32 +05:30
Agniva De Sarker
2f5ca43158
Clarify the sensitive/sanitized logic (#25034)
I was looking at the high number of user_updated ws events
and ran across this piece of code. Had a hard time digesting it,
thought of adding a comment for people to understand it more
clearly.

```release-note
NONE
```
2023-10-20 20:49:50 +05:30
Sondre Kjempekjenn
5196a184a0
[GH-22370] Disable markdown keybindings within codeblocks (#24558)
* Disable markdown keybindings within codeblocks

Addresses a usability issue where certain keyboard combinations, primarily used in nordic keyboard layouts, conflict with markdown shortcuts in the editor. This is especially problematic when trying to write characters like \, {, or }.

Given that markdown rendering does not happen within code blocks, this commit disables markdown shortcuts in those regions to allow for normal text entry.

Related Issue: #22370

* Added test suite

* Add test to ensure isWithinCodeBlock is stateless

* Disable markdown keybindings within codeblocks for advanced_create_comment

* Fix linting issues
2023-10-20 14:23:30 +02:00
Akbar Abdrakhmanov
745e5252ab
[MM-54832] Convert LocalizedInput of 'password_reset_send_link.tsx' to regular input component (#25018) 2023-10-20 17:16:22 +05:30
Akbar Abdrakhmanov
342b20ba54
[MM-54830] Convert LocalizedInput of 'team_general_tab.tsx' to regular input component (#25012) 2023-10-20 17:14:43 +05:30
Ben Schumacher
86b965a3c4
[MM-53256] Use buildinfo instead of env variables for mmctl (#23794) 2023-10-20 11:23:05 +02:00
Aayush Borkar
44256326a1
Update store badges on README.md (#24713)
Automatic Merge
2023-10-20 10:52:22 +03:00
Ross Baquir
6e214edb87
MM-54173: Part 2 - unify at mention components (#24487) 2023-10-20 10:34:29 +04:00
Jesse Hallam
c2bc4008fc
prevent modifying non-English translation files (#25002) 2023-10-19 14:40:06 -03:00
Ben Schumacher
e090adcb65
Add information about permanent user deletion to audit logs (#25017) 2023-10-19 17:49:53 +02:00
Carrie Warner (Mattermost)
a234b8f39a
In-product notices can gather user feedback (#25004) 2023-10-19 11:42:49 -04:00
Ben Schumacher
4ed32be6d2
[MM-53019] Add file storage permission check to workspace health dashboard (#24403) 2023-10-19 17:31:09 +02:00
Tom De Moor
3d81a63b4e
Removing empy zh_Han* files that are raising an alert in Weblate (#25011)
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
2023-10-19 11:18:21 -03:00
Maria A Nunez
6f67876629
Bumped NPS version (#25007) 2023-10-19 10:17:53 -04:00
Akbar Abdrakhmanov
df4df815c7
[MM-54837] Convert LocalizedInput of 'permission_team_scheme_settings.tsx' to regular input component (#24988) 2023-10-19 16:34:58 +05:30
Daniel Espino García
f62634622f
[MM-53904] Fix MM-53904 (#24622)
* Fix MM-53904

* Simplify regex

* Simplify utils regex

* Fix lint

* Address feedback and polish regex

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-19 12:59:02 +02:00
Tanmay Vardhaman Thole
6f4d362f9f
migrate DropdownSetting component from class based to function based component (#24796)
* migrate DropdownSetting component to function comp

* code optimized

* snapshot updated

* snapshot updated

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-19 12:58:36 +02:00
Tanmay Vardhaman Thole
c5b43df163
Migrate RemoveFileSetting component from class based to function based component (#24797)
* migrate RemoveFileSetting comp to function comp

* code refactored

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-19 12:28:11 +02:00
Dipan Dhali
4ec573c3fb
[MM-54793] Convert ./components/widgets/separator/notification-separator.tsx to Function Component (#24887)
* Converted Notification Seperator to function component

* Fixed lint error

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-19 12:22:07 +02:00
js029
c97731e4a6
MM-24743 Migrate DataRowGrid to functional component (#24795)
* Migrate DataRowGrid to functional component

* Change renderCell to a functional component dataGridCell and memoize DataGridRow

* Adjust test snapshot to include memoised DataGridRow

* use component notation when using DataGridCell

---------

Co-authored-by: js029 <js029@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-19 12:11:53 +02:00
Artur Bauer
ec394c1162
refactor: convert DataGridHeader into function component (#24747)
* refactor: convert DataGridHeader into function component

* fix: core review

* split into 2 components

* add key for maped items

* lint firx

* fix missing parentheses

* fix bracket

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-19 11:00:24 +02:00
Tanmay Vardhaman Thole
4eb30f517c
migrate notify counts component from class based to function based comp (#24794)
* migrate notify counts component to function comp

* comment resolved

* Update webapp/channels/src/components/notify_counts/notify_counts.tsx

* Fixing tests

* Removing unnecessary call

---------

Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-19 10:45:14 +02:00
Hosted Weblate
98b72ffbf5 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Mattermost/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/
2023-10-19 09:52:22 +03:00
Asaad Mahmood
de42776e35
MM-54931 - Updating settings modals UI (#24934)
* Updating modals

* Updating tests

* Updating css

* Updating edit button

* Updating collapse icon in sidebar
2023-10-19 11:14:12 +05:00
Danial Keimasi
76337aed24
Use getFileDownloadUrl for file_search_result_item (#24654)
Fixes #24653

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-18 19:01:19 -04:00
Jesse Hallam
c0afe57ae1
Fix vi merge issues (#25001)
* Translated using Weblate (Vietnamese)

Currently translated at 71.8% (1789 of 2489 strings)

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

Translated using Weblate (Dutch)

Currently translated at 100.0% (5706 of 5706 strings)

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

* Translated using Weblate (Vietnamese)

Currently translated at 68.6% (1708 of 2489 strings)

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

Translated using Weblate (Vietnamese)

Currently translated at 60.6% (1510 of 2489 strings)

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

* Translated using Weblate (Russian)

Currently translated at 98.8% (5640 of 5706 strings)

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

Translated using Weblate (Russian)

Currently translated at 98.7% (5633 of 5706 strings)

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

Translated using Weblate (Russian)

Currently translated at 100.0% (2489 of 2489 strings)

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

* Translated using Weblate (Vietnamese)

Currently translated at 70.6% (1758 of 2489 strings)

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

* Translated using Weblate (Vietnamese)

Currently translated at 70.6% (1758 of 2489 strings)

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

* Translated using Weblate (Vietnamese)

Currently translated at 71.4% (1778 of 2489 strings)

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

* Translated using Weblate (Vietnamese)

Currently translated at 71.7% (1785 of 2489 strings)

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

Translated using Weblate (Vietnamese)

Currently translated at 71.4% (1778 of 2489 strings)

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

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

Update translation files

Updated by "Remove blank strings" hook in Weblate.

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

* Translated using Weblate (Turkish)

Currently translated at 100.0% (5706 of 5706 strings)

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

* Translated using Weblate (Vietnamese)

Currently translated at 73.8% (1837 of 2489 strings)

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

Translated using Weblate (Vietnamese)

Currently translated at 73.2% (1822 of 2489 strings)

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

Translated using Weblate (Vietnamese)

Currently translated at 71.8% (1789 of 2489 strings)

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

* Translated using Weblate (Swedish)

Currently translated at 99.3% (5667 of 5703 strings)

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

Translated using Weblate (Swedish)

Currently translated at 100.0% (2489 of 2489 strings)

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

Translated using Weblate (Swedish)

Currently translated at 99.7% (2484 of 2489 strings)

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

* Translated using Weblate (Hebrew)

Currently translated at 1.8% (46 of 2489 strings)

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

* Translated using Weblate (French)

Currently translated at 81.9% (4676 of 5703 strings)

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

* Translated using Weblate (Vietnamese)

Currently translated at 78.1% (1946 of 2489 strings)

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

Translated using Weblate (Vietnamese)

Currently translated at 75.7% (1885 of 2489 strings)

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

* Translated using Weblate (Croatian)

Currently translated at 5.9% (339 of 5703 strings)

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

Translated using Weblate (Croatian)

Currently translated at 6.8% (171 of 2489 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (5703 of 5703 strings)

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

* Translated using Weblate (Swedish)

Currently translated at 99.9% (5702 of 5703 strings)

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

* Translated using Weblate (Kazakh)

Currently translated at 1.1% (65 of 5703 strings)

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

* Translated using Weblate (Vietnamese)

Currently translated at 81.5% (2029 of 2489 strings)

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

* Translated using Weblate (Vietnamese)

Currently translated at 81.5% (2029 of 2489 strings)

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

---------

Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: linkvn <nguyentunglinh87@gmail.com>
Co-authored-by: Konstantin <eleferen@gmail.com>
Co-authored-by: cescpmantidfly <cescpmantidfly@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
Co-authored-by: Tomer Ben-Rachel <tomerpacific@gmail.com>
Co-authored-by: Nicolas <nicolas.miard@zaclys.net>
Co-authored-by: Milo Ivir <mail@milotype.de>
Co-authored-by: Bartek Szopka <bartek.szopka+github@gmail.com>
Co-authored-by: Akbar Abdrakhmanov <kz.akbar@gmail.com>
2023-10-18 14:20:14 -03:00
Jesús Espino
1d421a3694
MM-52824 Migrate file_upload_settings.jsx to typescript (#24913)
Automatic Merge
2023-10-18 19:22:23 +03:00
js029
4b766c09d5
[MM 24831] Convert LocalizedInput of 'email_to_oauth.tsx' to regular input component (#24973) 2023-10-18 17:58:10 +05:30
Asaad Mahmood
52fe06db4e
MM-54777 - Updating invite modal guest button (#24977)
* MM-54777 - Updating invite modal guest button

* Updating button
2023-10-18 14:14:47 +05:00
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