ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: унификация фильтров внешнего контура с внутренним rich-filters слоем

This commit is contained in:
DCCONSTRUCTIONS
2026-04-21 12:29:32 +03:00
parent 2c54a8f274
commit 0a85ea3cb2
16 changed files with 588 additions and 564 deletions
@@ -105,6 +105,7 @@ export type TExternalContourRequestResponse = TPaginationInfo & {
export type TExternalContourBoardFilter = {
direction?: TExternalContourBoardDirection[];
status?: TExternalContourRequest["status"] | TExternalContourRequest["status"][];
state_groups?: string[];
state_ids?: string[];
priority?: string[];
assignee_ids?: string[];
@@ -114,6 +115,9 @@ export type TExternalContourBoardFilter = {
source_project_ids?: string[];
target_project_ids?: string[];
label_ids?: string[];
target_date_exact?: string;
target_date_from?: string;
target_date_to?: string;
has_unread_updates?: boolean;
search?: string;
};
@@ -24,7 +24,7 @@ export const getProjectFilterConfig =
(params: TCreateProjectFilterParams) =>
createFilterConfig<P>({
id: key,
label: "Projects",
label: params.filterLabel ?? "Projects",
...params,
icon: params.filterIcon,
supportedOperatorConfigsMap: new Map([
@@ -33,6 +33,7 @@ export const getSupportedDateOperators = (params: TCreateDateFilterParams): TOpe
*/
export type TCreateProjectFilterParams = TCreateFilterConfigParams &
IFilterIconConfig<IProject> & {
filterLabel?: string;
projects: IProject[];
};