ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: очистка stale assignees Operational Core
This commit is contained in:
+9
-2
@@ -46,7 +46,10 @@ export const InternalContourKanbanCard = observer(function InternalContourKanban
|
||||
const { t } = useTranslation();
|
||||
const { isMobile } = usePlatformOS();
|
||||
const { workspaceSlug: routerWorkspaceSlug } = useParams();
|
||||
const { getUserDetails } = useMember();
|
||||
const {
|
||||
getUserDetails,
|
||||
project: { getProjectMemberIds },
|
||||
} = useMember();
|
||||
const { getProjectById } = useProject();
|
||||
const { getStateById, getProjectStateIds } = useProjectState();
|
||||
|
||||
@@ -86,7 +89,11 @@ export const InternalContourKanbanCard = observer(function InternalContourKanban
|
||||
const checkerItemsTotal = issue.checker_items_count ?? 0;
|
||||
const checkerItemsCompleted = issue.checker_items_completed_count ?? 0;
|
||||
const hasCheckerProgress = checkerBlocksTotal > 0;
|
||||
const assigneeIds = issue.assignee_ids ?? [];
|
||||
const rawAssigneeIds = issue.assignee_ids ?? [];
|
||||
const projectMemberIds = issue.project_id ? getProjectMemberIds(issue.project_id, true) : null;
|
||||
const assigneeIds = projectMemberIds
|
||||
? rawAssigneeIds.filter((assigneeId) => projectMemberIds.includes(assigneeId))
|
||||
: rawAssigneeIds;
|
||||
const visibleAssigneeIds = assigneeIds.slice(0, 3);
|
||||
const assigneeCount = assigneeIds.length;
|
||||
const assigneeStackWidthClass =
|
||||
|
||||
Reference in New Issue
Block a user