diff --git a/plane-src/apps/web/ce/components/projects/external-contours/board-item.tsx b/plane-src/apps/web/ce/components/projects/external-contours/board-item.tsx index 14193b3..35eb3fe 100644 --- a/plane-src/apps/web/ce/components/projects/external-contours/board-item.tsx +++ b/plane-src/apps/web/ce/components/projects/external-contours/board-item.tsx @@ -40,7 +40,7 @@ const issueService = new IssueService(); const issueArchiveService = new IssueArchiveService(); const basePillClasses = - "inline-flex min-h-9 items-center gap-1.5 rounded-full border-0 px-2.5 py-1 text-[11px] font-medium shadow-none outline-none transition-colors"; + "inline-flex min-h-8 items-center gap-1.5 rounded-full border-0 px-2.5 py-1 text-[10px] font-medium shadow-none outline-none transition-colors"; const buildSourceStateMap = ( states: { id: string; name: string; color: string; group: IState["group"] }[] | undefined, @@ -130,7 +130,16 @@ export const ExternalContoursBoardItem = observer(function ExternalContoursBoard const pillBackgroundClasses = isActive ? "bg-black/10 text-[rgb(var(--nodedc-on-card-active-rgb))]" : "bg-[rgb(var(--nodedc-card-passive-rgb))] text-white"; - const iconBubbleClasses = isActive ? "bg-black text-[rgb(var(--nodedc-card-active-rgb))]" : "bg-[#111214] text-white"; + const cornerActionButtonClasses = cn( + "flex h-12 w-12 -translate-x-0.5 -translate-y-0.5 items-center justify-center rounded-full border bg-transparent shadow-none ring-0 transition-colors outline-none", + isActive + ? "border-black/25 text-black hover:bg-black/5" + : "border-white/20 text-white hover:border-white/35 hover:bg-white/5" + ); + const assigneeButtonClasses = cn( + "flex h-7 min-w-7 items-center justify-center rounded-full border-0 bg-transparent p-0 shadow-none outline-none transition-colors", + isActive ? "text-[rgb(var(--nodedc-on-card-active-rgb))]" : "text-white" + ); const dueDateLabel = issue.target_date ? renderFormattedDate(issue.target_date, "d MMM, yyyy") : t("common.none"); const canArchive = canEditTargetIssue && !!selectedState && ARCHIVABLE_STATE_GROUPS.includes(selectedState.group); @@ -279,162 +288,207 @@ export const ExternalContoursBoardItem = observer(function ExternalContoursBoard onSubmit={handleDeleteRequest} />
-
{ - if (event.key === "Enter" || event.key === " ") { - event.preventDefault(); - openDetail(); - } - }} - > -
-
-
-
-
- -
-
{requester}
-
+
{ + if (event.key === "Enter" || event.key === " ") { + event.preventDefault(); + openDetail(); + } + }} + > +
+
+ +
-
- {request.has_unread_updates && ( - - )} +
+ + +
+ } + buttonClassName="h-12 w-12" + menuClassName="min-w-[18rem]" + onOpenChange={(isOpen) => { + if (isOpen) void ensureSourceOptions(); + }} + items={[]} + menuContent={({ closeDropdown }) => ( +
+
+
+ Приоритет +
+ {priorityOptions.map((priority) => ( + + ))} +
-
} - buttonClassName="h-8 w-8" - menuClassName="min-w-[18rem]" - onOpenChange={(isOpen) => { - if (isOpen) void ensureSourceOptions(); - }} - items={[]} - menuContent={({ closeDropdown }) => ( -
-
-
Приоритет
- {priorityOptions.map((priority) => ( +
+
+ Статус +
+ {isSourceOptionsLoading && stateOptions.length === 0 ? ( +
Загрузка статусов...
+ ) : ( + stateOptions.map((state) => ( - ))} -
- -
-
Статус
- {isSourceOptionsLoading && stateOptions.length === 0 ? ( -
Загрузка статусов...
- ) : ( - stateOptions.map((state) => ( - - )) - )} -
- -
-
Быстрые действия
- - - - -
+ )) + )}
- )} - /> + +
+
+ Быстрые действия +
+ + + + +
+
+ )} + /> +
+ +
+
+
{requester}
+ {request.has_unread_updates && ( + + )} +
+
+ {counterpartContourName || t("common.none")}
-
- {counterpartContourName || t("common.none")} +
+
{issue.name}
-
-
-
{issue.name}
-
+
+ {canEditTargetIssue ? ( + void handleCardUpdate({ assignee_ids: assigneeIds })} + disabled={!canEditCard || isUpdating} + buttonVariant="transparent-without-text" + button={ +
+ +
+ } + /> + ) : ( + void handleCardUpdate({ assignee_ids: assigneeIds })} + disabled={!canEditCard || isUpdating || !targetProjectId} + onDropdownOpen={() => { + void ensureSourceOptions(); + }} + buttonVariant="transparent-without-text" + button={ +
+ +
+ } + /> + )} -
- {direction === "outgoing" && ( - + {dueDateLabel}
} /> - )} - - {canEditTargetIssue ? ( - void handleCardUpdate({ assignee_ids: assigneeIds })} - disabled={!canEditCard || isUpdating} - buttonVariant="transparent-without-text" - button={ -
- -
- } - /> - ) : ( - void handleCardUpdate({ assignee_ids: assigneeIds })} - disabled={!canEditCard || isUpdating || !targetProjectId} - onDropdownOpen={() => { - void ensureSourceOptions(); - }} - buttonVariant="transparent-without-text" - button={ -
- -
- } - /> - )} - - {direction !== "outgoing" && ( - - void handleCardUpdate({ - target_date: targetDate ? renderFormattedPayloadDate(targetDate) : null, - }) - } - disabled={!canEditCard || isUpdating} - buttonVariant="transparent-without-text" - button={ -
- - {dueDateLabel} -
- } - /> - )} +
-
); });