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

2856 Коммитов

Автор SHA1 Сообщение Дата
Amy Blais
6c18ac49f3 Update NOTICE.txt (#24119)
Automatic Merge
2023-08-11 01:57:32 +03:00
Harrison Healey
1f95a8f52b MM-50953 Post textbox cleanup (#23971)
* Remove unused code around scrollbarWidth

* MM-50953 Remove unused code for popover at mentions

* Add tests for messageHtmlToComponent wrapper
2023-08-10 15:22:48 -04:00
Jesse Hallam
c4949a664d .npmrc: engine-strict (#24217)
Enforce the existing `engine` directives requiring node at `16.x` and npm at `7.x`, failing with a clear error message if a mismatch exists:

```
npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: undefined
npm ERR! notsup Not compatible with your version of node/npm: undefined
npm ERR! notsup Required: {"node":"^16.10.0","npm":"^7.24.0"}
npm ERR! notsup Actual:   {"npm":"8.5.0","node":"v16.14.2"}

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jesse/.npm/_logs/2023-08-08T15_09_40_758Z-debug-0.log
```

This change makes the version mismatch exceedingly and immediately clear instead of the developer having to infer from an obscure error much later on in the installation process.
2023-08-10 15:23:54 -03:00
Saturnino Abril
ecf7cdbdea fix(accessibility): tab support at login, reset and signup pages, buttons at ATE and app bar (#24214) 2023-08-10 08:53:13 -04:00
Agniva De Sarker
45a14e23a9 MM-53228: Adding schema version to cluster info (#24209)
With the schema version available, a job can query for
the cluster info to confirm whether or not all nodes
in a cluster are upgraded to the same version or not.

This will help it in determining whether to start
the job or not.

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

```release-note
NONE
```
2023-08-10 09:40:49 +05:30
Jesús Espino
e1c6ae7d85 Adding PostAction plugin hook (#24102)
* Adding PostAction plugin hook

* Adding missing doc string

* WIP

* Simplifying it

* Adding support for selected text

* fixing linter errors

* Adding support for the plugin editor action in the thread view

* Fixing ci check-types

* Addressing PR review comments

* Fix linter error in CI

* Fixing tests
2023-08-08 11:36:37 -07:00
Alejandro García Montoro
72b648cf81 Remove unused functions getPing and resetPing (#24065)
* Remove unused functions getPing and resetPing

* Remove PING_RESET

* Remove unused import lines

* One more to go

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-02 21:19:02 +02:00
Nick Misasi
0b3457c672 Add '(Only visible to admins) to license overature banners (#24166)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-02 08:53:43 -04:00
Pablo Andrés Vélez Vidal
ef3aec40ac MM-53609 - remove channels from archived teams during search (#24053)
* MM-53609 - remove channels from archived teams during search

* filter channels after the channels from server are fetched

* filter only channels, not DM or GM

* add unit tests; prevent blinking when searching for terms
2023-07-31 23:23:47 +02:00
Elias Nahum
aa88f8bf59 Add read_channel_content permission (#24118)
* Add read_channel_content permission

* fix tests

* update system console default permissions per role

* add read_channel_content to e2e defaultRolesPermissions

* Migration to include custom roles

* change deprecated isNotExactRole for isNotRole

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-31 09:12:53 -04:00
Devin Binnie
047583947f [MM-53636] Add channel/team name back for the Saved Posts view (#24117)
* [MM-53636] Add channel/team name back for the Saved Posts view

* E2E test
2023-07-28 15:35:18 -04:00
Saturnino Abril
93a2c3281a MM-53813: Fix(accessibility): on channels page (#24122)
* fix(accessibility): on channels page

* fix lint and update dynamic-virtualized-list

* fix snapshot and update per feedback

* fix e2e tests

* fix test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-28 11:17:11 -04:00
Pablo Andrés Vélez Vidal
525c21a9d3 MM52237 - prevent fetching fileCount from unnecessary places (#23981)
* MM52237 - prevent call file count from unnecesary places

* rename the variable to make more clear function signature
2023-07-27 11:48:36 +02:00
Qrypt
93b7957de3 Mm 52178 Fix "registerMessageWillBeUpdatedHook" not running (#23763)
Automatic Merge
2023-07-26 21:57:32 +03:00
Harrison Healey
f10487c511 MM-50460 : Remove max-width from AdvancedTextEditor (#23970) 2023-07-26 15:01:37 +05:30
Maria A Nunez
12c829032f Fix user is typing font size (#24096)
* Fix user is typing font size

* PR feedback

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-25 21:59:10 -04:00
Ibrahim Serdar Acikgoz
2a4de2eecc Revert "Add read_channel_content permission (#24018)" (#24114)
This reverts commit a19ce047ba.
2023-07-25 13:17:58 +03:00
Harshil Sharma
26617fcbdc Remove insights (#23952)
* removed server side

* Updated store layer

* unused import

* Updated autogenerated code template

* Updated tests

* lint fix

* unused translations

* webapp side

* Updated i18n

* lint fix:

* type fix

* Updated snapshots

* Removed insights from API specs

* updated e2e

* Updated e2e tests

* Updated e2e tests

* Removed insights tests

* Removed Insights as possible channel to load in sidebar from test

* Removed more insights tests

* More e2e fixed

* More cleanup

* Lint

* More cleanup in client4 and boards api

* More cleanup

* Fixes

* lint fix

---------

Co-authored-by: maria.nunez <maria.nunez@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-25 12:34:38 +05:30
M-ZubairAhmed
e37459cd00 MM-53230 : Remove custom polyfilled 'getClosestParent' with browser 'closest' (#24086) 2023-07-25 08:39:46 +05:30
M-ZubairAhmed
065d3c3f6b Lint formatted on "build/emoji/additional_shortnames.json" (#24097) 2023-07-25 08:37:39 +05:30
Sinan Sonmez (Chaush)
e70abd6e0f MM-53776 : Profile pop-over for Bots has funky line breaks (#24095) 2023-07-24 20:07:26 +05:30
Elias Nahum
a19ce047ba Add read_channel_content permission (#24018)
* Add read_channel_content permission

* fix tests

* update system console default permissions per role

* add read_channel_content to e2e defaultRolesPermissions

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-24 09:37:59 -04:00
Devin Binnie
c35777194d [MM-53520] Refresh drafts in comment when the rootId of the draft changes (#24068)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-24 08:59:56 -04:00
Scott Bishel
0c4ac8b201 prepackage boards v7.11.2 (#24085)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-24 11:49:12 +02:00
Sai Deepesh
16606f4420 MM-23523 Migrate "components/markdown_image/*" to typescript (#23524) 2023-07-21 20:30:19 +05:30
Nathan
ab38a8fbd7 MM-50382 Shows an error if post edit history fails to load (#22828) 2023-07-21 20:28:05 +05:30
Austin DeNoble
949a7875cd MM-47091 : Migrate "components/integrations/abstract_outgoing_webhook.jsx" and tests to TypeScript (#23977) 2023-07-20 18:29:57 +05:30
Saturnino Abril
e377d985cd MM-52641 MM-52645 Playwright/Accessibility: Initial setup and accessibility fix on login page (#23254)
* MM-52641 Playwright/Accessibility: initial setup

* upgrade Playwright to 1.36.1

* fix accessibility at login page

* fix lint

* update snapshot
2023-07-19 16:25:17 -04:00
ridker
f3b1f33dff MM-47075 : Migrate "components/suggestion/suggestion_list.jsx" and tests to Typescript (#23837) 2023-07-20 00:18:55 +05:30
LeonardJouve
49dddaa0f0 Fix props of 'react-day-picker' #23591) 2023-07-20 00:06:16 +05:30
Karan Mishra
91efa7bfc8 MM-52845 : Migrate "components/admin_console/elasticsearch_settings.jsx" and tests to Typescript (#23821) 2023-07-19 23:11:58 +05:30
Nick Misasi
0b564005cf [MM-53702] Remove Downgrade Team Selection modal and all accompanying logic (#24059)
* Remove Downgrade Team Selection modal and all accompanying logic

* fix linter

* Fix i18n

* Final pipeline fixes
2023-07-19 09:35:14 -04:00
Hamza
9322f71f94 MM-52793 : Search calendar selects the day before when selected for a date (#23618) 2023-07-19 16:56:19 +05:30
Sinan Sonmez (Chaush)
628273d98d MM42267: Add member count in the browse channel modal (#23800)
* add base for calling the endpoint

* add endpoint and handler

* update store and layers

* call the endpoint

* align types

* update app layers

* generate mocks

* complete handler

* finish store query

* add todos

* add ui for member count

* add selector

* add a todo

* add cache layer

* optimize calls in FE

* handle invalidation of the cache

* fix go style

* fix test

* use existing channel layer count

* fix import error

* delete unnecessary code

* write tests for channel cache layer

* fix testname

* fix mocks

* fix cache layer test

* fix a test

* really fix the test

* write more tests for server

* address PR comments

* remove comment

* rename more_channels to browse_channels

* fix style

* update snapshot

* add translations

* Revert "add translations"

This reverts commit 56476a5dabe357703ef02be9a38b3e88f5c8b1e7.

* add only related translations

* address PR review points

* add test

* fix test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-19 11:45:27 +05:30
Bodhi
b247c6251f fix libz.so.1 missing error when running "npm install" on Linux/ARM64 (on a Macbook M1) (#23935)
* fix libz.so.1 missing error when running "npm install" on Linux/ARM64

* fix typo

* update changes

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-18 10:46:59 -04:00
Elias Nahum
66c2837d2c Fix add command in backstage (#24043) 2023-07-18 09:03:52 -04:00
Miguel de la Cruz
150c6e7aef Remove boards product references (#23855)
Automatic Merge
2023-07-18 15:17:29 +03:00
Devin Binnie
823ef27d6c Revert "[MM-37984] Allow Desktop App to authenticate via external providers outside of the app on supported servers (#23795)" (#24039)
This reverts commit abdf4e58c3.
2023-07-17 10:54:53 -04:00
Veronica Dip
8ee38ee644 MM-53564 : Multi-line channel header preview is narrow on web (#24029) 2023-07-17 15:09:16 +05:30
Daniel Espino García
cb47d4fb7f Fix New Messages toast showing when it should not (#23995) 2023-07-13 13:28:44 +02:00
Sinan Sonmez (Chaush)
e1aa7b21ac MM-52944: Fix profile popover view issue on RHS when searching channel member (#23930) 2023-07-13 16:24:54 +05:30
Pablo Andrés Vélez Vidal
632f629663 MM-51849 - some non latin words were not getting highlighted (#23987)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-13 10:04:17 +02:00
Doug Lauder
a8244e9d10 MM-53147 Support for embedding Mattermost in an MSTeams iframe (#23776)
* add teams to allowed frame-ancestors

* fix unit tests

* set SameSite attribute for session cookie

* further restrict ancestors

* skip landing page if in iframe

* Only set cookie SameSite=None if embedded in iframe

* don't set MMEMBED cookie on landing page (check only)

* fully parse MMEMBED cookie

* add comment

* more comments

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-12 17:55:13 -04:00
M-ZubairAhmed
cc6de45bde Removed unneeded optional prop 'type' from 'admin_console/password_settings' (#24004) 2023-07-12 22:42:53 +05:30
Devin Binnie
abdf4e58c3 [MM-37984] Allow Desktop App to authenticate via external providers outside of the app on supported servers (#23795)
* WIP

* Add rate limiting for desktop token API

* Missing mocks

* Style fixes

* Update snapshots

* Maybe use an actual redirect link :P

* Refactoring for tests

* Add tests for server

* Fix lint issue

* Fix tests

* Fix lint

* Add front-end screen component

* Component logic

* Style changes

* Quick style fix

* Lint fixes

* Initial PR feedback

* Enable logging into the browser as well when completing the login process

* Refactor to push more logic to the other component

* Remove unnecessary helper code

* Fix i18n

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-12 09:25:05 -04:00
M-ZubairAhmed
5e3c03a0a8 Fix component types of 'components/widgets/settings/text_setting.tsx' (#23919) 2023-07-12 16:25:05 +05:30
Christopher Poile
46a659e06d MM-53340 - Create registerDesktopNotificationHook for plugins, e.g. Calls (#23884)
* calls will notify in GM/DM channels for call started posts

* fix types

* add registerDesktopNotificationHook

* remove callsWillNotify

* cleanup unused types

* use an args object to shorten params

* add CUSTOM_CALLS_RECORDING to constants
2023-07-11 22:46:59 -04:00
Scott Bishel
f45f774ece update for guest demotion and sysadmin edits (#23920)
* update for guest demotion and sysadmin edits

* update unit test

* update unit test

* use existing disabled flag

* remove commented line

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-11 16:10:44 -06:00
Harrison Healey
2672af30ea MM-53467 Unrevert changes that update current user object (#23928)
* Revert "Revert "[MM-52547] Include current user profile in every redux action (#23219)""

This reverts commit 8f96888b1a06716d41e27e7f5e76fa193b0ac86d.

* Revert "Revert "[MM-52546] webapp/channels : Update current user and status on WebSocket reconnect (#23071)""

This reverts commit 69ee162a6e3d08f23f14628785b1e4f554259ea4.

* MM-53647 Fix overwriting the current user with sanitized data
2023-07-11 09:51:02 -07:00
Devin Binnie
116728424c [MM-53124] Add optional Forgot Password custom link to override the default flow on the login page (#23831)
* [MM-53124] Add optional Forgot Password custom link to override the default flow on the login page

* Fix i18n

* Fix test

* Added the enable/disable flag

* Fix test

* Fix e2e

* Add blockable link for the Customization navigation
2023-07-11 09:04:39 -04:00