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

16455 Коммитов

Автор SHA1 Сообщение Дата
Conor Macpherson
093a17db70 lint. 2023-04-17 15:37:09 -04:00
Conor Macpherson
e32866795d Merge branch 'master' into MM-50966-in-product-expansion 2023-04-17 15:25:05 -04:00
Harrison Healey
3f022e728f MM-49393 Begin splitting up utils.tsx (#22983)
* Add selectors/urls to Channels

* Create utils/notification_sounds in Channels

* Move Utils.isLinux to UserAgent.isLinux

* Remove Utils.isMac in favour of UserAgent.isMac

* Move cmdOrCtrlPressed and isKeyPressed into new utils/keyboard

* Remove eslint-disable for max-lines in utils.tsx
2023-04-17 15:10:15 -04:00
Conor Macpherson
fa01ced588 require a minimum number of seats to be purchased to continue. 2023-04-17 15:00:38 -04:00
Conor Macpherson
5b42689529 Address code review comments (styling, clean-up css, re-org imports, math errors, etc). 2023-04-17 15:00:38 -04:00
codyhall
941ee8509a POST playbook api specification includes public boolean definition (#22986)
Automatic Merge
2023-04-17 19:04:30 +03:00
Doug Lauder
a80e1e21b9 Remove redundant store APIs for Boards: (#22968)
- getBlocksWithParent
- getBlocksWithParentAndType
- getBlocksWithType
- getBlocksForBoard
2023-04-17 12:33:07 +02:00
M-ZubairAhmed
496b1e4e1c Skip flaky "sidebar template close other" Boards test temporarily (#22977) 2023-04-17 15:41:45 +05:30
M-ZubairAhmed
5c8880321f MM-51975 : Standardise Formatjs config for Playbooks & Boards (#22948)
Added Formatjs's built-in formatter called "simple". With this change, the intermediate Formatjs compile step is removed. Additionally, the npm command for Playbooks was standardised by replacing "extract" with "i18n-extract" to ensure consistency across all products.
2023-04-16 13:23:36 +05:30
M-ZubairAhmed
2119bc0901 MM-51974 : Unify "react-intl" related dependencies versions across products (#22894)
Picks out formatjs-eslint-plugin to webapp root. Updates react-intl to 6.3.2 in all products. Executed i18n-extract and checked if any translations got changed. Although it was a major version update, the only breaking change was for a vue peer dependency. Adds "*" to take whatever dependency rule to products and declare the react-intl as the root package. Fixes a few lint and type errors cropped in due to the update No-ID rule removed from playbooks in preparation for unifying practices across products. Lastly, a few missing translations in Playbooks added
2023-04-16 05:19:08 +05:30
Nathaniel Allred
80d0a7f210 fix values (#22944) 2023-04-14 16:31:07 -05:00
Harrison Healey
1f6169fb3f Add README to webapp folder (#22831)
* Add README to webapp folder

* Remove old web app README

* Rewrite a sentence to remove jargon
2023-04-14 15:17:44 -04:00
M-ZubairAhmed
241376b315 MM-52165 : Remove 50% maxWorker on Channels test run (#22962)
* test

* remove boards maxWorkers

---------

Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-14 15:12:00 -04:00
Conor Macpherson
ecbdd91787 Update enterprise_edition_left_panel.tsx
Fix handle click `+Add Seats` button to ensure checks for expansion availability look at service settings OR expansion availability are
2023-04-14 15:01:54 -04:00
Conor Macpherson
183e3c6033 Update index.tsx
Fix success modal not closing.
2023-04-14 15:00:18 -04:00
Colton Shaw
3c5fad563e Workspace dashboard improvements (#22883)
Automatic Merge
2023-04-14 19:34:28 +03:00
Harrison Healey
c99bbd0b15 MM-51662 Add more information to help text for SVGs and Latex (#22956) 2023-04-14 08:46:38 -07:00
Guillermo Vayá
9a46083a95 Merge pull request #22893 from weblate/weblate-mattermost-mattermost-server-monorepo
Translations update from Mattermost Weblate
2023-04-14 14:30:07 +02:00
M-ZubairAhmed
f34a06493d MM-52144 : Remove stub package "@types/react-day-picker" (#22945)
This package was added during the resolution of issues with Boards CI tests. This pull request isolates and tests the package's impact after recent npm changes. It was found that removing the stub package did not result in any issues.
2023-04-14 15:02:42 +05:30
Agniva De Sarker
56bf1b695a MM-49984: Displaying active search backend in system console (#22721)
This will be shown in the system console to let users know
which search backend is active.

Implemented via adding an extra param in the ping response.

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

```release-note
The database section in the system console now has an additional
read-only section which shows the active search backend in use.

This can be helpful to confirm which is the currently active
search engine when there are multiple of them configured.
```
---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-14 14:28:50 +05:30
GitStart
4bf31bd227 MM-50746 : Edits to messages persist after cancelling (#22676) 2023-04-14 14:27:22 +05:30
Agniva De Sarker
470e4c9d66 MM-51786: Sentry crash while installing a blocked plugin (#22804)
We would return "nil, nil" if a plugin was on the blocklist.
This would cause a nil dereference panic while trying to add
struct fields from manifest to the audit logs.

To avoid it, we return an error explicitly and ignore the
error ids to unnecessarily have it log an error.

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

```release-note
NONE
```
2023-04-14 13:32:05 +05:30
Agniva De Sarker
aca9553df1 MM-49675: Update dependencies (#22909)
https://mattermost.atlassian.net/browse/MM-49675

```release-note
NONE
```
2023-04-14 13:23:38 +05:30
Ibrahim Serdar Acikgoz
a2e70eb71c server/channels: remove newWebConn method (#22933) 2023-04-14 09:56:05 +03:00
Allan Guwatudde
5d122e5d7a [MM-51413] - Update Cloud pricing modal to remove mentions of Cloud Free (#22639)
* [MM-51413] - Update Cloud pricing modal to remove mentions of Cloud Free

* cleanup starter from pricing modal

* rm unused import

* enterprise button states

* fix purchase modal

* revert

* revert e2e

* revert

* revert

* revert

* revert

* revert

* revert

* add feature flag

* default FF to false

* revert

* fix feature flag self hosted checks

* add links

* feedback impl

* feedback impl

* fix lint

* feedback impl

* fix translation

* feedback impl

* feedback impl

* fix height

* improve alignment

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-14 00:15:38 +03:00
Harrison Healey
21b72c7607 MM-50577 Replaced makeCreateAriaLabelForPost with better memoized usePostAriaLabel (#22833) 2023-04-13 16:24:20 -04:00
Harrison Healey
024a5472ff MM-51451 Replace all characters in generated values instead of just the first one (#22869) 2023-04-13 16:23:32 -04:00
Nick Misasi
193fa57770 [MM-51922] Enforce minimum 10 seats in seats selector (#22916)
* Enforce minimum 10 seats in seats selector

* Ensure initial value is validated as well

* Fix linter

* fix tests

* Add a test for 10 seat minimum

* Fix linter, merge master
2023-04-13 16:13:34 -04:00
Nick Misasi
25aade0882 [MM-51922] Enforce minimum 10 seats in seats selector (#22916)
* Enforce minimum 10 seats in seats selector

* Ensure initial value is validated as well

* Fix linter

* fix tests

* Add a test for 10 seat minimum

* Fix linter, merge master
2023-04-13 15:27:56 -04:00
Nick Misasi
55063b026b [MM-51922] Enforce minimum 10 seats in seats selector (#22916)
* Enforce minimum 10 seats in seats selector

* Ensure initial value is validated as well

* Fix linter

* fix tests

* Add a test for 10 seat minimum

* Fix linter, merge master
2023-04-13 15:27:44 -04:00
Allan Guwatudde
a7ce08da95 [MM-51236] - Update newsletter opt-in copy (#22849)
* [MM-51236] - Update newsletter opt-in copy

* feedback impl

* fix tests

* fix text color

* fix color

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-13 21:55:00 +03:00
Allan Guwatudde
ea44b6bd38 [MM-51475] - Monthly Subscriptions: Notifications to move to annual (#22842)
* [MM-51475] - Monthly Subscriptions: Notifications to move to annual

* change wording

* change banners impl

* fix translation

* rm env var

* fix tests

* rm unused consts

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-13 18:37:37 +03:00
Conor Macpherson
48cd0f884e Merge pull request #22830 from mattermost/MM-51692-delete-reason-feedback-is-sending-notifications-with-translated-text
Ensure feedback options are not submitting in their translated forms.
2023-04-13 11:19:41 -04:00
Agniva De Sarker
574e61bcc1 MM-52009: Fix hub data race (#22925)
After the monorepo integration, the boards product
was started before we started the hub.

This led to a data race where the GetHubForUserId was actually
called before the hub was initialized.

To fix this we initialize the platform first, and then the products.

https://mattermost.atlassian.net/browse/MM-52009
```release-note
NONE
```
2023-04-13 19:39:16 +05:30
Sinan Sonmez (Chaush)
35d3e3e91e GH21563: Add the request context and logger to all public methods in app/admin.go (#22898)
* migrate mlog

* fix linter issue
2023-04-13 14:21:11 +05:30
Ashish Dhama
24774f51da [MM-52121]: Migrate About build modal unit test to testing library (#22927)
* Migrate About build modal unit test to testing library

* add user-event library

* add user event

* remove snapshot
2023-04-13 13:58:41 +05:30
Konstantinos Pittas
40349cddd4 [MM-51401] Add an extra check for the schema (#22531)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-13 11:00:55 +03:00
M-ZubairAhmed
53ed2ce461 MM-52093 : Revert back the 'global-style' npmrc config (#22901)
"global-styles" was added to hoist fewer dependencies from packages to the root node_modules and was initially intended to fix some issues with mismatched dependency versions in the Boards unit tests. However, it was found to be causing problems when the same version of dependencies was used across the products.
2023-04-13 08:31:35 +05:30
Colton Shaw
abb34c4879 [Webapp] added hour diff to profile (#22669)
Automatic Merge
2023-04-13 04:34:28 +03:00
Christopher Speller
8c73f092e8 Fix public boards setting not applying properly. (#22921) 2023-04-12 15:11:46 -07:00
Julien Tant
2dafc51be2 Work Template: use mattermost-server/playbooks package instead of old playbook repo (#22908) 2023-04-12 13:53:22 -07:00
Nick Misasi
3089b8b06d [MM-51479] Cloud Reverse Trial Banner Updates (#22852)
* License public key to test env for mono-repo

* Fix error modal showing on a successful trial request

* Adjustments for new banners

* stashing

* Undo accidental merge

* fixes

* clean up dev stuff, fix style

* Adjust padding on announcement bar button

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-12 15:41:53 -04:00
Christopher Poile
4aa2648888 Prepackage calls v0.15.1 (#22936) 2023-04-12 15:15:24 -04:00
Conor Macpherson
34eece7462 revert changes to overage users banner in favor of getting self hoste expansion modal pushed through faster. 2023-04-12 13:44:56 -04:00
Ashish Dhama
c3e69e97e4 [MM-51445] Replace compass-components icon component with compass icons (#22527)
* Replace compass-components icon component with compass-icons
2023-04-12 21:39:49 +05:30
Allan Guwatudde
155e896dcf [MM-51412] - In-product banner to communicate Cloud Free deprecation (#22622)
* [MM-51412] - In-product banner to communicate Cloud Free deprecation

* fix lint

* make improvements

* make improvements

* put banners behind feature flag

* cloud free overage case

* add unit tests

* feedback impl

* fix test

* rename and enable feature flag by default

* fix alert banner mode

* read end date from env var

* disable ff by default

* enter cloud free deprecation date

* remove env var

* fix text

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-12 18:08:37 +03:00
Conor Macpherson
d5d1b03176 fix type checks (missed two). 2023-04-12 10:44:12 -04:00
Conor Macpherson
02947aa009 fix type checks. 2023-04-12 10:43:36 -04:00
Mattermost Build
56d76dbe28 Merge branch 'master' into MM-51692-delete-reason-feedback-is-sending-notifications-with-translated-text 2023-04-12 17:33:47 +03:00
Claudio Costa
b00ca20abe [MM-50827] Detect content-type if missing in response during link metadata generation (#22885)
* Detect content-type if missing in response during link metadata generation

* Initialize buffer only when necessary
2023-04-12 07:53:03 -06:00