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

841 Коммитов

Автор SHA1 Сообщение Дата
Asaad Mahmood
6028cbe4e2 MM-57841 - Updating post delete modal (#26907) 2024-05-01 23:23:23 +05:00
Harrison Healey
3bd6c44413 MM-53148 Fix an incorrect type (#26920) 2024-04-30 17:40:37 -04:00
Harrison Healey
43a5e61d85 MM-57320 Fix autocomplete occasionally erasing all text after caret (#26857)
* MM-57320 Fix autocomplete occasionally erasing all text after caret

* Change makeHandleReceivedSuggestionsAndComplete to only allow complete word to be called once

* Actually do what the last commit said
2024-04-30 17:22:54 -04:00
Matthew Birtch
5c11de1373 fixed checkbox style on browse channels modal (#26927) 2024-04-30 09:11:55 -04:00
Matthew Birtch
4ba736f018 MM-56324 Channel Header UI Update (#26383) 2024-04-26 21:21:28 +08:00
Harrison Healey
80e67ace86 Migrate tests for Login to Testing Library and convert showNotification to a thunk (#26848)
* Migrate tests for Login to Testing Library

* Convert showNotification to a thunk
2024-04-25 17:24:03 -04:00
Devin Binnie
60c15c821f More notification metrics fixes (#26889)
* Explicitly have the client tell the server when it should expect an ACK

* Don't count missing profile errors for your own posts, added comment

* Fix test

* Make postedAck a parameter in WebSocketClient

* Snapshot fixes

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-04-25 15:07:12 -04:00
M-ZubairAhmed
0948ce1776 [MM-57745] Fetch threads of the current channel only when root post is missing from the store in new posted event
Statuses and user profiles on each new messages have to be fetched for the post users and its mentions (Blue bar), to solve that polling of these can be done. However after we did that we saw the polling of statuses and user profiles requests got considerably down but the requests to threads was relatively still higher (Pink bar).
So this improvement doesn't not fetch the root post along with the complete threads of the incoming new post from another channel.
This improved the calls to threads from 120 to just 8 calls per 2 mins an improvement of 93%.
2024-04-25 14:02:34 +00:00
Devin Binnie
e532807454 [MM-57962] Remove outdated Copy Link menu in favour of native Electron dropdown (#26856) 2024-04-24 16:39:47 -04:00
Antonin Delpeuch
542e84b140 [GH-26702] Clicking on "remember my preference" in landing page does not tick the associated checkbox (#26703) 2024-04-24 20:30:34 +00:00
Anna Os
d9aed02f57 [GH-26831] fix modal suggestion list position (#26832) 2024-04-24 14:48:17 -04:00
Syed Ali Abbas Zaidi
1fd09d0a0b [MM-57718] Convert ./components/post_view/message_attachments/action_button/action_button.tsx from Class Component to Function Component (#26728)
* [MM-57718] Convert `./components/post_view/message_attachments/action_button/action_button.tsx` from Class Component to Function Component

* :refactor: improve code structure
2024-04-24 14:43:25 -04:00
Syed Ali Abbas Zaidi
8ba157f284 [MM-57722] Convert ./components/admin_console/team_channel_settings/group/group_list.tsx from Class Component to Function Component (#26721)
* [MM-57722] Convert `./components/admin_console/team_channel_settings/group/group_list.tsx` from Class Component to Function Component

* :refactor: improve code structure
2024-04-24 10:11:40 +02:00
Jesús Espino
29fbcdfc2a Improve the true/false selector style in the admin console (#26770)
* Improve the true/false selector style in the admin console

* Updating snapshots
2024-04-23 17:12:34 -04:00
Nick Misasi
437f90e184 [CLD-7421][CLD-7420] Deprecate Self Serve: First Pass (#26668)
* Deprecate Self Serve: First Pass

* Fix ci

* Fix more ci

* Remmove outdated server tests

* Fix a missed spot opening purchase modal in Self Hosted

* Fix i18n

* Clean up some more server code, fix webapp test

* Fix alignment of button

* Fix linter

* Fix i18n server side

* Add back translation

* Remove client functions

* Put back client functions

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-04-23 14:25:37 -04:00
Syed Ali Abbas Zaidi
6886f389dd [MM-57715] Convert ./components/common/comment_icon.tsx from Class Component to Function Component (#26727)
* [MM-57715] Convert `./components/common/comment_icon.tsx` from Class Component to Function Component

* :fix: failing types issue
2024-04-23 12:08:35 +02:00
Syed Ali Abbas Zaidi
9b227aaa28 [MM-57725] Convert ./components/common/chip/chip.tsx from Class Component to Function Component (#26729)
* [MM-57725] Convert `./components/common/chip/chip.tsx` from Class Component to Function Component

* :refactor: improve code structure
2024-04-23 10:28:54 +05:30
Syed Ali Abbas Zaidi
4ee5763e9d [MM-57713] Convert ./components/sidebar_right_menu/sidebar_right_menu.tsx from Class Component to Function Component (#26725)
* [MM-57713] Convert `./components/sidebar_right_menu/sidebar_right_menu.tsx` from Class Component to Function Component

* 🎨 Improve code quality

* :refactor: Improve constants and remove unused code
2024-04-23 10:28:25 +05:30
Agniva De Sarker
acfbcb92f6 MM-57885: Do not mark channel as read on tab unload (#26811)
This was spurious code left from old times. It's not
needed now, and it was causing a race condition with the server
side where we were setting the status to offline on
websocket disconnect. So if this request reached the server
after the status was set to offline, the status would
reset to online.

https://mattermost.atlassian.net/browse/MM-57885

```release-note
Fixed a bug where status would incorrectly get stuck to online
after user closes the tab.
```
2024-04-23 08:16:49 +05:30
Harrison Healey
22d72b6df8 Remove access to global state from some files (#26752)
* admin_console/license_settings/trial_banner

* invitation_modal and associated utils

* overlay trigger

* Change TrialBanner to not use makeGetCategory

* Address feedback

* Fixing unit tests D:

* Address further feedback

* Fix one last test
2024-04-22 14:53:42 -04:00
Matthew Birtch
7429ddaf04 MM-37809 Theming tweaks (#26289)
* tweaked dark themes and quartz theme

* refinements to themes

* tweaked denim global header color

* updates to quartz and sapphire themes

* tweaked quartz theme

* tweaks to indigo theme

* minor tweaks to themes

* update snapshots

* updated hex colors to consistent casing and updated snapshots
2024-04-22 14:07:59 -04:00
Harrison Healey
b091ef5686 Remove access to global state from i18n/i18n (#26750) 2024-04-22 13:32:55 -04:00
Harrison Healey
f3b80f77a6 Remove global state access from components/root (#26751)
* root part 1 - rudder

* root part 2 - luxon

* root part 3 - recent emojis

* root part 4 - redirect to onboarding

* root part 5 - login logout handler

* Fix indentation
2024-04-22 13:31:27 -04:00
Syed Ali Abbas Zaidi
603c26a5bc [MM-57723] Convert ./components/admin_console/system_user_detail/team_list/team_list_dropdown.tsx from Class Component to Function Component (#26720)
* [MM-57723] Convert `./components/admin_console/system_user_detail/team_list/team_list_dropdown.tsx` from Class Component to Function Component

* 🎨 Improve code quality
2024-04-22 12:45:27 +02:00
Aaron Hopkins
632b231283 [MM-52675] Use message_source in copy text action (#26674) (#26789) 2024-04-22 12:45:06 +02:00
Daniel Espino García
4b934d2a62 Make sure the RHS does not get focused when coming back from suppressed (#26816)
* Make sure the RHS does not get focused when coming back from suppressed

* Fix missing line break

* fix tests
2024-04-22 12:42:54 +02:00
Daniel Espino García
d0a67cd84a Fix types so the store can return undefined teams (#26386)
* Fix types so the store can return undefined teams

* Fix post test

* fix snapshots

* Address feedback
2024-04-22 12:42:13 +02:00
Syed Ali Abbas Zaidi
7b90b7c2e0 [MM-57708] Convert ./components/copy_url_context_menu/copy_url_context_menu.tsx from Class Component to Function Component (#26716)
* Convert `./components/copy_url_context_menu/copy_url_context_menu.tsx` from Class Component to Function Component

* 🎨 Improve code quality
2024-04-22 12:39:33 +02:00
Harshil Sharma
b4a1b33d39 Added post limit warning (#26793)
* Renamed user limit API to app limit API

* Added post warning limit

* Added tests

* Fixed types

* Renamed AppLimits to ServerLimits

* Fixed tests and review fixes

* Updated generated code

* Updated server i18n

* Fixed TestCreateUserOrGuest test

* Exclude deleted posts from post count for liims

* Reduced limits for ease of testing

* Restored original limts
2024-04-18 11:50:30 +05:30
Colton Shaw
1530228308 MM-54569 : Update maximum password length on UI to 72 characters (#26699) 2024-04-17 11:33:55 +00:00
Nick Misasi
9e8f9a3715 Fix z index in stat trial form modal (#26798) 2024-04-15 15:42:37 -04:00
Asaad Mahmood
b59280e7d7 MM-57292 - Adding root post divider component (#26614) 2024-04-15 12:46:26 -04:00
Syed Ali Abbas Zaidi
52ad3bd7b7 [MM-57724] Convert ./components/channel_header_dropdown/mobile_channel_header_dropdown.tsx from Class Component to Function Component (#26719)
* [MM-57724] Convert `./components/channel_header_dropdown/mobile_channel_header_dropdown.tsx` from Class Component to Function Component

* 🎨 Improve code quality

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-04-15 09:47:29 +02:00
Syed Ali Abbas Zaidi
ede18a7c17 [MM-57721] Convert ./components/channel_header_dropdown/menu_items/leave_channel/leave_channel.tsx from Class Component to Function Component (#26722)
* [MM-57721] Convert `./components/channel_header_dropdown/menu_items/leave_channel/leave_channel.tsx` from Class Component to Function Component

* fix failing tests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-04-15 09:47:00 +02:00
Syed Ali Abbas Zaidi
bca4535150 [MM-57712] Convert ./components/post_deleted_modal.tsx from Class Component to Function Component (#26731)
* [MM-57712] Convert `./components/post_deleted_modal.tsx` from Class Component to Function Component

* 🎨 Improve code quality

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-04-15 09:46:32 +02:00
Karim Aljandali
96ab35ba34 [MM-55283] Add channel name to aria label for sidebar options (#26652)
* Add channel name to aria label for sidebar options

* Revert text message for menuButtonTooltip

* Update formatMessage

* Follow linting

* Add aria label definition for sidebar button

* cleanup

* Fix linting

* Update snapshot sidebar_channel_menu
2024-04-12 16:45:57 -04:00
Asaad Mahmood
460b228837 Fixing modal styles for some modals (#26635)
* Updating modal styles

* Updating modal header for notices

* Updating dispatch

* Updating padding

* Fixing css

* Updating modal

* Updating css

* Updating modal scss
2024-04-12 22:23:25 +05:00
Ben Schumacher
b336fb9a45 Fix MM-57090 (#26589) 2024-04-12 17:15:01 +02:00
Karim Aljandali
c76a58b4b8 MM-55280: When closing/dismissing the find channels modal via keyboard, set focus on originating button (#26641)
* Restore focus to sidebar button when channel navigator closes

* Add new onHide function to use on exit of modal

* Move import back to original spot

* Remove duplicate blank line

* Fix spacing and semicolon

* Address PR feedback

* Add test id for targeting in unit test

* Add unit test for accessibility

* Fix linting

* Fix imports
2024-04-12 13:15:30 +02:00
Tanmay Thole
bb26e8685f [MM-55497] Add tooltips with enlarged emojis when hovering over emojis within message content (#26709)
* feat: add tooltip to emojis in post messages

* ci: eslint fix
2024-04-12 13:10:03 +02:00
MeHow25
1dd7046eff [MM-57727] Convert SearchDateSuggestion to functional component (#26708)
* Convert SearchDateSuggestion to functional component

* Review fixes

* Review fix

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

* Another review fix

---------

Co-authored-by: Daniel Espino García <larkox@gmail.com>
2024-04-12 13:09:12 +02:00
Ibrahim Serdar Acikgoz
92f11f8971 Make support packet composable with plugins (#26403)
---------

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-04-12 10:05:58 +02:00
Syed Ali Abbas Zaidi
165b5ea821 [MM-57709] Convert ./components/channel_select/channel_select.tsx from Class Component to Function Component (#26718) 2024-04-11 17:54:35 -04:00
Devin Binnie
8589476229 [MM-57067][MM-57006][MM-57328] Acknowledge websocket POSTED events that may result in a notification on the web client (#26604)
* Acknowledge POSTED events that may result in a notification

* Remove temporary metrics

* Add Desktop App support

* Merge'd

* Add some tests

* PR feedback

* Rework window is focused check

* Oops

* Move mentions/followers ACK to posted ACK broadcast hook

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-04-11 20:18:14 +00:00
Devin Binnie
65c6717e6b Add login/logout signal to Desktop App API (#26701) 2024-04-09 09:16:07 -04:00
M-ZubairAhmed
9698cfcc19 [MM-56695] Consolidate desktop and mobile Notifications to one and a new desktop notification sound settings (#26198) 2024-04-08 18:59:05 +00:00
Devin Binnie
a81ee87832 [MM-57519] Fill the {time} parameter with a blank string in places where it isn't used (#26666)
* [MM-57519] Fill the {time} parameter with a blank string in places where it isn't used

* Add placeholder in default message

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-04-08 08:56:06 -04:00
Amir Helali
733fe8b902 [MM-56008] Convert ./components/widgets/settings/bool_setting.tsx to functional component (#25614)
* Updated bool_setting

Converted bool_setting.tsx to a function component. and Updated the test file.

* Delete package-lock.json

* Update bool_setting.tsx

Updated the code to reflect the requested changes

* Fix lint and types

---------

Co-authored-by: Daniel Espino García <larkox@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-04-08 13:54:32 +02:00
Daniel Espino García
4783950e72 Fix default text setting on admin console not getting cleared (#26653) 2024-04-08 09:54:33 +02:00
Matthew Birtch
c7cb1bc400 MM-55252 Update RHS Thread View to Use Relative Timestamps (#26605)
* switch RHS thread to relative time

* update snapshot
2024-04-02 16:16:18 -04:00