Automatic channel category sorting (#30866)

* Automatic channel category sorting

* Fix types

* AIed

* Fix issue where categories are updated for all users

* Move all logic to server, clean up

* PR feedback

* Fix lint

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Devin Binnie
2025-06-11 14:29:36 -04:00
коммит произвёл GitHub
родитель c6a11763a8
Коммит 25a4839a9e
17 изменённых файлов: 289 добавлений и 30 удалений

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

@@ -69,6 +69,7 @@ export type Channel = {
policy_id?: string | null;
banner_info?: ChannelBanner;
policy_enforced?: boolean;
default_category_name?: string;
};
export type ServerChannel = Channel & {

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

@@ -112,6 +112,7 @@ export type ClientConfig = {
EnableUserDeactivation: string;
EnableUserTypingMessages: string;
EnforceMultifactorAuthentication: string;
ExperimentalChannelCategorySorting: string;
ExperimentalClientSideCertCheck: string;
ExperimentalClientSideCertEnable: string;
ExperimentalEnableAuthenticationTransfer: string;
@@ -822,6 +823,7 @@ export type ExperimentalSettings = {
DisableWakeUpReconnectHandler: boolean;
UsersStatusAndProfileFetchingPollIntervalMilliseconds: number;
YoutubeReferrerPolicy: boolean;
ExperimentalChannelCategorySorting: boolean;
};
export type AnalyticsSettings = {