Граф коммитов

3794 Коммитов

Автор SHA1 Сообщение Дата
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
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
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
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
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
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
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
Matthew Birtch
485dc64c5f add hover state to accordions and tweaks styles (#27577) 2024-07-09 16:20:34 +02:00
Takuya N
6010ff5521 Remove dup stylelint depdendencies in webapp/channels (#27499) 2024-07-09 13:14:53 +00:00
Ningthoujam Swamikumar Singh
d939c1bd46 [MM-58856] Migrate tooltips of "components/copy_button.tsx" to WithTooltip (#27433) 2024-07-08 16:50:55 +00:00
Weblate (bot)
e0688e237b Translations update from Mattermost Weblate (#27586)
Automatic Merge
2024-07-08 17:57:50 +03:00
suraj-anthwal
9f396c9294 [MM-58443] Migrate tooltips of 'components/global_header/right_controls/saved_posts_button/saved_posts_button.tsx' to WithTooltip (#27185)
* add withtooltip handling

* add withtooltip handling

* placed icon inside tooltip

* Update saved_posts_button.tsx

* Update saved_posts_button.tsx

* Update saved_posts_button.test.tsx.snap

* Update saved_posts_button.tsx

---------

Co-authored-by: surajanthwal <surajanthwal2010@gmail.com>
Co-authored-by: M-ZubairAhmed <m-zubairahmed@protonmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-04 23:38:08 +05:30
Weblate (bot)
35dda81e32 Translations update from Mattermost Weblate (#27507)
* Translated using Weblate (German)

Currently translated at 100.0% (2510 of 2510 strings)

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

* Translated using Weblate (German)

Currently translated at 100.0% (5775 of 5775 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (2510 of 2510 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (5775 of 5775 strings)

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

* Translated using Weblate (Dutch)

Currently translated at 99.9% (5771 of 5775 strings)

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

* Translated using Weblate (Serbian)

Currently translated at 10.5% (611 of 5775 strings)

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

* Translated using Weblate (Norwegian Bokmål)

Currently translated at 6.3% (369 of 5775 strings)

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

* Translated using Weblate (German)

Currently translated at 100.0% (5801 of 5801 strings)

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

---------

Co-authored-by: jprusch <rs@schaeferbarthold.de>
Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: homerCOD <anicin.goran@gmail.com>
Co-authored-by: Frank Paul Silye <frankps@uio.no>
2024-07-03 15:26:35 -03:00
Ivy Gesare
0e6ed3d490 [MM-58686] Adjust text alignment on custom status tooltip (#27353)
* Change: Adjust text alignment on custom status tooltip
Change: Update 'Today' expiry time calculation on custom_status_modal

* Change: Use display inline-block instead of flex for custom-status class

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-03 11:54:14 -04:00
Julien Tant
d0c4e820a4 [MM-58840] Add routing restrictions (#27482) 2024-07-01 11:05:38 -07:00
Arya Khochare
8b52ac3b8b [MM-58509] Migrate tooltips of "components/admin_console/user_grid/user_grid_role_dropdown.tsx" to WithTooltip (#27242) 2024-07-01 08:48:42 +00:00
MeHow25
f36eb59f21 [MM-58405] Migrate tooltips of 'components/announcement_bar/default_announcement_bar/announcement_bar' to WithTooltip (#27244)
* Migrate tooltips of 'components/announcement_bar/default_announcement_bar/announcement_bar' to WithTooltip

* Review fixes

* Review fix

* Fix imports

* Update snapshots

* Test fix

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-01 09:33:52 +02:00
Caleb Roseland
f12eb75d25 MM-54416: Channel Bookmarks Web UI (#25889)
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2024-06-28 15:58:14 -05:00
Asaad Mahmood
a5d263f26c MM-58496 - Updating channel font size (#27445)
* MM-58496 - Updating channel font size

* Updating lineheight
2024-06-28 21:57:43 +05:00
Harrison Healey
70b218839f MM-58854 Update how Compass icons are referenced by AnnouncementBar (#27461)
Automatic Merge
2024-06-28 15:57:50 +03:00
Harrison Healey
b9e501e285 MM-59254 Fix EnableClientMetrics setting being hidden (#27483)
Automatic Merge
2024-06-28 14:57:50 +03:00
Matthew Birtch
2a37aeac79 removed offending line that hid threads view on mobile (#27428)
Automatic Merge
2024-06-28 01:57:50 +03:00
M-ZubairAhmed
8919a9c959 [MM-59064] Close Icon is not in line with toast text of "search this channel" when RHS threads panel is open (#27464) 2024-06-27 06:53:44 +00:00
Matthew Birtch
338434a098 [MM-59047] Keyboard Shortcuts Modal Improvements (#27443) 2024-06-27 06:52:20 +00:00
M-ZubairAhmed
47dcb02ae0 [MM-59061] Remove redundant index route for Root.tsx (#27441) 2024-06-27 06:51:27 +00:00
Asaad Mahmood
86a98ea030 MM-58755 - Fixing inproduct notices spacing (#27442)
* MM-58755 - Fixing inproduct notices spacing

* Updating compass modal

* Updating test
2024-06-26 16:22:56 +02:00
Rita Anene
60028d63c0 [MM-58409] Migrate tooltips of 'components/file_preview_modal/popover_bar/popover_bar' to WithTooltip (#27447) 2024-06-26 11:07:22 +00:00
Harrison Healey
c39a4b2a7c Change PerformanceReporter tests to not check exact values for timestamps (#27459) 2024-06-26 07:00:05 +00:00
Rita Anene
273c7df69b [MM-58408] Migrate tooltips of 'components/file_preview_modal/file_preview_modal_main_nav/file_preview_modal_main_nav' to WithTooltip (#27422) 2024-06-26 06:31:03 +00:00
Ezekiel
cd7c930172 MM-58411 Migrate tooltips of 'components/actions_menu/actions_menu' to WithTooltip (#27238)
* Added  console log for draft PR

* Replaced  tooltip  component with changes

* Updated snapshot  for  tests

* Updated  title  to use FormattedMessage

* Remove defineMessages

* Fix style

* Removed unused tooltip

---------

Co-authored-by: ezekiel <ezekiel@itsmart.my>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-06-26 08:13:41 +02:00
Ivy Gesare
9f1686b2c4 Change: Use WithTooltip instead of OverlayTrigger on filename_overlay (#27439) 2024-06-26 08:13:17 +02:00
Arya Khochare
633b565192 migrate tooltips of file_preview_modal_main_actions.tsx to WithTooltip (#27243) 2024-06-26 08:12:55 +02:00
Harrison Healey
1505c37977 MM-58777 Confirm that sendBeacon exists before trying to use it (#27458) 2024-06-26 10:43:53 +05:30
Scott Bishel
6fd894953c update for adding multiple members (#25128)
* update for adding multiple members

* fix unit test

* more test fixes

* add another unit test

* fix object passed by client4

* revert package-lock.json

* revert package-lock.json

* add length check

* limit size of lists in API requests

* revert package-lock

* add batching to front end

* add batching to front end

* fix bad merge

* update return type

* remove unnecessary permisssion check, add unit test

* fixes and add tests from review

* revert changes adding limits to other apis

* fixes

* clean-up from code review

* fix unit test call

* revert back to interface{}, fix unit test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-06-25 12:25:28 -06:00
Matthew Birtch
78497924ef MM-58802 Fix overlapping back button (#27394)
* fix overlapping back button

* css tweak

* use classNames utility

* fixed import order
2024-06-25 15:35:21 +02:00
M-ZubairAhmed
12ad9f3fe2 [MM-59059] Re enable markdown preview for channel header in user advanced settings (#27440) 2024-06-25 11:19:14 +00:00
Arya Khochare
926c7aeac8 [MM-58512] Migrate tooltips of "components/status_dropdown/status_dropdown.tsx" to WithTooltip (#27246) 2024-06-25 07:02:03 +00:00
Arya Khochare
a768df7e7c [MM-58516] Migrate tooltips of "components/search/user_guide_dropdown/user_guide_dropdown.tsx" to WithTooltip (#27248) 2024-06-25 06:48:59 +00:00
Hosted Weblate
18e81bd623 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/
2024-06-24 23:02:23 +03:00
ThrRip
80bb11823d 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/
2024-06-24 23:02:23 +03:00