[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:
Vamsi Krishna
2025-04-29 20:03:14 +05:30
committed by GitHub
parent 3fc2df835b
commit 7b9f80628e
2 changed files with 29 additions and 30 deletions

View File

@@ -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

View File

@@ -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"