* Migrate feature/wrangler to mono-repo

* Add wrangler files

* Fix linters, types, etc

* Fix snapshots

* Fix playwright

* Fix pipelines

* Fix more pipeline

* Fixes for pipelines

* More changes for pipeline

* Fix types

* Add support for a feature flag, but leave it defaulted on for spinwick usage for now

* Update snapshot

* fix js error when removing last value of multiselect, support CSV marshaling to string array for textsetting

* Fix linter

* Remove TODO

* Remove another TODO

* fix tests

* Fix i18n

* Add server tests

* Fix linter

* Fix linter

* Use proper icon for dot menu

* Update snapshot

* Add Cypress UI tests for various entrypoints to move thread modal, split SCSS out from forward post into its own thing

* clean up

* fix linter

* More cleanup

* Revert files to master

* Fix linter for e2e tests

* Make ForwardPostChannelSelect channel types configurable with a prop

* Add missing return

* Fixes from PR feedback

* First batch of PR Feedback

* Another batch of PR changes

* Fix linter

* Update snapshots

* Wrangler system messages are translated to each user's locale

* Initially translate Wrangler into system locale rather than initiating user

* More fixes for PR Feedback

* Fix some server tests

* More updates with master. Fixes around pipelines. Enforce Enterprise license on front/back end

* Add tests for dot_menu

* More pipeline fixes

* Fix e2etests prettier

* Update cypress tests, change occurrences of 'Wrangler' with 'Move Thread'

* Fix linter

* Remove enterprise lock

* A couple more occurrences of wrangler strings, and one more enterprise lock

* Fix server tests

* Fix i18n

* Fix e2e linter

* Feature flag shouldn't be on by default

* Enable move threads feature in smoke tests (#25657)

* enable move threads feature
* add @prod tag

* Fix move_thread_from_public_channel e2e test

* Fix e2e style

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
Этот коммит содержится в:
Nick Misasi
2023-12-11 15:27:34 -05:00
коммит произвёл GitHub
родитель bfb8320afd
Коммит f0a336ba07
56 изменённых файлов: 3107 добавлений и 16 удалений

Просмотреть файл

@@ -1059,6 +1059,14 @@ export default class Client4 {
);
}
moveThread = (postId: string, channelId: string) => {
const url = this.getPostRoute(postId) + '/move';
return this.doFetch<StatusOK>(
url,
{method: 'post', body: JSON.stringify({channel_id: channelId})},
);
}
switchEmailToOAuth = (service: string, email: string, password: string, mfaCode = '') => {
this.trackEvent('api', 'api_users_email_to_oauth');

Просмотреть файл

@@ -199,6 +199,12 @@ export type ClientConfig = {
PersistentNotificationIntervalMinutes: string;
AllowPersistentNotificationsForGuests: string;
DelayChannelAutocomplete: 'true' | 'false';
WranglerPermittedWranglerRoles: string;
WranglerAllowedEmailDomain: string;
WranglerMoveThreadMaxCount: string;
WranglerMoveThreadFromPrivateChannelEnable: string;
WranglerMoveThreadFromDirectMessageChannelEnable: string;
WranglerMoveThreadFromGroupMessageChannelEnable: string;
ServiceEnvironment: string;
UniqueEmojiReactionLimitPerPost: string;
};
@@ -485,6 +491,16 @@ export type PasswordSettings = {
EnableForgotLink: boolean;
};
export type WranglerSettings = {
PermittedWranglerRoles: string[];
AllowedEmailDomain: string[];
MoveThreadMaxCount: number;
MoveThreadToAnotherTeamEnable: boolean;
MoveThreadFromPrivateChannelEnable: boolean;
MoveThreadFromDirectMessageChannelEnable: boolean;
MoveThreadFromGroupMessageChannelEnable: boolean;
};
export type FileSettings = {
EnableFileAttachments: boolean;
EnableMobileUpload: boolean;
@@ -947,6 +963,7 @@ export type AdminConfig = {
FeatureFlags: FeatureFlags;
ImportSettings: ImportSettings;
ExportSettings: ExportSettings;
WranglerSettings: WranglerSettings;
};
export type ReplicaLagSetting = {

Просмотреть файл

@@ -31,6 +31,7 @@ export type PostType = 'system_add_remove' |
'system_fake_parent_deleted' |
'system_generic' |
'reminder' |
'system_wrangler' |
'';
export type PostEmbedType = 'image' | 'link' | 'message_attachment' | 'opengraph' | 'permalink';