mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 22:09:12 +02:00
[WEB-3972]fix: epics sub work items order (#3078)
* fix: epics customer activity * fix: updated the order for sub work items properties
This commit is contained in:
@@ -43,6 +43,29 @@ export const SubIssuesListItemProperties: React.FC<Props> = observer((props) =>
|
||||
maxDate?.setDate(maxDate.getDate());
|
||||
return (
|
||||
<div className="relative flex items-center gap-2">
|
||||
<WithDisplayPropertiesHOC displayProperties={displayProperties} displayPropertyKey="state">
|
||||
<div className="h-5 flex-shrink-0">
|
||||
<StateDropdown
|
||||
value={issue.state_id}
|
||||
projectId={issue.project_id ?? undefined}
|
||||
onChange={(val) =>
|
||||
issue.project_id &&
|
||||
updateSubIssue(
|
||||
workspaceSlug,
|
||||
issue.project_id,
|
||||
parentIssueId,
|
||||
issueId,
|
||||
{
|
||||
state_id: val,
|
||||
},
|
||||
{ ...issue }
|
||||
)
|
||||
}
|
||||
disabled={!disabled}
|
||||
buttonVariant="border-with-text"
|
||||
/>
|
||||
</div>
|
||||
</WithDisplayPropertiesHOC>
|
||||
<WithDisplayPropertiesHOC displayProperties={displayProperties} displayPropertyKey="start_date">
|
||||
<div className="h-5 flex-shrink-0" onFocus={handleEventPropagation} onClick={handleEventPropagation}>
|
||||
<DateDropdown
|
||||
@@ -97,30 +120,6 @@ export const SubIssuesListItemProperties: React.FC<Props> = observer((props) =>
|
||||
</div>
|
||||
</WithDisplayPropertiesHOC>
|
||||
|
||||
<WithDisplayPropertiesHOC displayProperties={displayProperties} displayPropertyKey="state">
|
||||
<div className="h-5 flex-shrink-0">
|
||||
<StateDropdown
|
||||
value={issue.state_id}
|
||||
projectId={issue.project_id ?? undefined}
|
||||
onChange={(val) =>
|
||||
issue.project_id &&
|
||||
updateSubIssue(
|
||||
workspaceSlug,
|
||||
issue.project_id,
|
||||
parentIssueId,
|
||||
issueId,
|
||||
{
|
||||
state_id: val,
|
||||
},
|
||||
{ ...issue }
|
||||
)
|
||||
}
|
||||
disabled={!disabled}
|
||||
buttonVariant="border-with-text"
|
||||
/>
|
||||
</div>
|
||||
</WithDisplayPropertiesHOC>
|
||||
|
||||
<WithDisplayPropertiesHOC displayProperties={displayProperties} displayPropertyKey="priority">
|
||||
<div className="h-5 flex-shrink-0">
|
||||
<PriorityDropdown
|
||||
|
||||
@@ -17,7 +17,7 @@ export type TEpicActivityFields =
|
||||
| "name"
|
||||
| "description"
|
||||
| "state"
|
||||
| "assignee"
|
||||
| "assignees"
|
||||
| "priority"
|
||||
| "start_date"
|
||||
| "target_date"
|
||||
@@ -79,7 +79,7 @@ export const EPIC_UPDATES_HELPER_MAP: Partial<TEpicActivityDetailsHelperMap> = {
|
||||
</>
|
||||
),
|
||||
}),
|
||||
assignee_updated: (activity: TIssueActivity) => ({
|
||||
assignees_updated: (activity: TIssueActivity) => ({
|
||||
icon: <Users className={commonIconClassName} />,
|
||||
message: (
|
||||
<>
|
||||
@@ -204,7 +204,7 @@ export const EPIC_UPDATES_HELPER_MAP: Partial<TEpicActivityDetailsHelperMap> = {
|
||||
icon: <CustomersIcon className={commonIconClassName} />,
|
||||
message: (
|
||||
<>
|
||||
added this work item to the customer request{" "}
|
||||
added this epic to the customer request{" "}
|
||||
<a
|
||||
href={`/${activity.workspace_detail?.slug}/customers/${activity.new_identifier}`}
|
||||
target="_blank"
|
||||
@@ -220,7 +220,7 @@ export const EPIC_UPDATES_HELPER_MAP: Partial<TEpicActivityDetailsHelperMap> = {
|
||||
icon: <CustomersIcon className={commonIconClassName} />,
|
||||
message: (
|
||||
<>
|
||||
removed this work item from the customer request{" "}
|
||||
removed this epic from the customer request{" "}
|
||||
<a
|
||||
href={`/${activity.workspace_detail?.slug}/customers/${activity.old_identifier}`}
|
||||
target="_blank"
|
||||
@@ -236,7 +236,7 @@ export const EPIC_UPDATES_HELPER_MAP: Partial<TEpicActivityDetailsHelperMap> = {
|
||||
icon: <CustomersIcon className={commonIconClassName} />,
|
||||
message: (
|
||||
<>
|
||||
added this work item to the customer{" "}
|
||||
added this epic to the customer{" "}
|
||||
<a
|
||||
href={`/${activity.workspace_detail?.slug}/customers/${activity.new_identifier}`}
|
||||
target="_blank"
|
||||
@@ -252,7 +252,7 @@ export const EPIC_UPDATES_HELPER_MAP: Partial<TEpicActivityDetailsHelperMap> = {
|
||||
icon: <CustomersIcon className={commonIconClassName} />,
|
||||
message: (
|
||||
<>
|
||||
removed this work item from the customer{" "}
|
||||
removed this epic from the customer{" "}
|
||||
<a
|
||||
href={`/${activity.workspace_detail?.slug}/customers/${activity.old_identifier}`}
|
||||
target="_blank"
|
||||
|
||||
Reference in New Issue
Block a user