Add activity priority desk filter and keep detail browsing inside the same column after stage changes.
When done/reopen/stage moves leave a column, advance to the next activity there or return to the list if empty. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -210,6 +210,7 @@ export class ActivitiesController {
|
||||
title: query.title,
|
||||
customer: query.customer,
|
||||
due: query.due,
|
||||
priority: query.priority,
|
||||
boardId: query.boardId,
|
||||
},
|
||||
);
|
||||
@@ -246,6 +247,7 @@ export class ActivitiesController {
|
||||
title: query.title,
|
||||
customer: query.customer,
|
||||
due: query.due,
|
||||
priority: query.priority,
|
||||
boardId: query.boardId,
|
||||
},
|
||||
query.stageId ? { stageId: query.stageId } : undefined,
|
||||
@@ -279,6 +281,7 @@ export class ActivitiesController {
|
||||
title: query.title,
|
||||
customer: query.customer,
|
||||
due: query.due,
|
||||
priority: query.priority,
|
||||
boardId: query.boardId,
|
||||
},
|
||||
query.stageId ? { stageId: query.stageId } : undefined,
|
||||
|
||||
@@ -123,6 +123,7 @@ type ListFacets = {
|
||||
customer?: string;
|
||||
/** set = زمان شروع دارد، unset = ندارد */
|
||||
due?: 'set' | 'unset';
|
||||
priority?: ActivityDto['priority'];
|
||||
/** گروه فعالیت؛ خالی = همهٔ گروهها */
|
||||
boardId?: string;
|
||||
};
|
||||
@@ -1369,11 +1370,13 @@ export class ActivitiesService {
|
||||
const facetTypeDef = facets?.typeDefId?.trim();
|
||||
const facetTitle = facets?.title?.trim();
|
||||
const facetCustomer = facets?.customer?.trim();
|
||||
const facetPriority = facets?.priority;
|
||||
const andParts: Prisma.ActivityWhereInput[] = [
|
||||
scope,
|
||||
...(facets?.type ? [{ type: facets.type }] : []),
|
||||
...(facetTypeDef ? [this.types.whereForType(typeRows, facetTypeDef)] : []),
|
||||
...(facets?.status ? [{ status: facets.status }] : []),
|
||||
...(facetPriority ? [{ priority: facetPriority }] : []),
|
||||
...(facetTitle ? [{ title: ci(facetTitle) }] : []),
|
||||
...(facetCustomer ? [this.customerWhere(facetCustomer)] : []),
|
||||
...(facetAssignee
|
||||
|
||||
@@ -93,6 +93,11 @@ export class ListActivitiesQueryDto {
|
||||
@IsString()
|
||||
typeDefId?: string;
|
||||
|
||||
/** اولویت فعالیت (کلید ثابت؛ برچسب در تنظیمات سازمان) */
|
||||
@IsOptional()
|
||||
@IsIn(ACTIVITY_PRIORITIES)
|
||||
priority?: (typeof ACTIVITY_PRIORITIES)[number];
|
||||
|
||||
/** شناسهٔ مرحله یا 'all' — حالت تب/کانبان مراحل */
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
|
||||
Reference in New Issue
Block a user