ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: унификация фильтров внешнего контура с внутренним rich-filters слоем
This commit is contained in:
@@ -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[];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user