ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: очистка stale assignees Operational Core

This commit is contained in:
DCCONSTRUCTIONS
2026-05-09 12:33:49 +03:00
parent fa4a533d29
commit 78deab1a23
10 changed files with 110 additions and 10 deletions
@@ -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 =