diff --git a/apps/app/components/core/board-view/single-issue.tsx b/apps/app/components/core/board-view/single-issue.tsx index b36008c77..e0ad96d1f 100644 --- a/apps/app/components/core/board-view/single-issue.tsx +++ b/apps/app/components/core/board-view/single-issue.tsx @@ -349,7 +349,7 @@ export const SingleBoardIssue: React.FC = ({ /> )} {properties.sub_issue_count && ( -
+
{issue.sub_issues_count} {issue.sub_issues_count === 1 ? "sub-issue" : "sub-issues"}
)} diff --git a/apps/app/components/core/list-view/single-issue.tsx b/apps/app/components/core/list-view/single-issue.tsx index 0d34adf9e..71ccc9db4 100644 --- a/apps/app/components/core/list-view/single-issue.tsx +++ b/apps/app/components/core/list-view/single-issue.tsx @@ -268,7 +268,7 @@ export const SingleListIssue: React.FC = ({ /> )} {properties.sub_issue_count && ( -
+
{issue.sub_issues_count} {issue.sub_issues_count === 1 ? "sub-issue" : "sub-issues"}
)} diff --git a/apps/app/components/cycles/sidebar.tsx b/apps/app/components/cycles/sidebar.tsx index f896d232e..863da7934 100644 --- a/apps/app/components/cycles/sidebar.tsx +++ b/apps/app/components/cycles/sidebar.tsx @@ -141,25 +141,25 @@ export const CycleDetailsSidebar: React.FC = ({ <>
-
- +
+ {capitalizeFirstLetter(cycleStatus)}
-
- +
+ {({ open }) => ( <> - {renderShortDate(new Date(`${cycle?.start_date}`))} + + {renderShortDate(new Date(`${cycle?.start_date}`), "Start date")} + = ({ )} - + - + {({ open }) => ( <> - + - {renderShortDate(new Date(`${cycle?.end_date}`))} + {renderShortDate(new Date(`${cycle?.end_date}`), "End date")} = ({ leaveFrom="opacity-100 translate-y-0" leaveTo="opacity-0 translate-y-1" > - + = ({
-
-
-
+
+
+

{cycle.name}

{!isCompleted && ( diff --git a/apps/app/components/issues/sidebar-select/parent.tsx b/apps/app/components/issues/sidebar-select/parent.tsx index 36c4a57cc..92a51269f 100644 --- a/apps/app/components/issues/sidebar-select/parent.tsx +++ b/apps/app/components/issues/sidebar-select/parent.tsx @@ -83,11 +83,13 @@ export const SidebarParentSelect: React.FC = ({ onClick={() => setIsParentModalOpen(true)} disabled={isNotAllowed} > - {watch("parent") && watch("parent") !== "" - ? `${issues?.find((i) => i.id === watch("parent"))?.project_detail?.identifier}-${ - issues?.find((i) => i.id === watch("parent"))?.sequence_id - }` - : "Select issue"} + {watch("parent") && watch("parent") !== "" ? ( + `${issues?.find((i) => i.id === watch("parent"))?.project_detail?.identifier}-${ + issues?.find((i) => i.id === watch("parent"))?.sequence_id + }` + ) : ( + Select issue + )}
diff --git a/apps/app/components/issues/sidebar.tsx b/apps/app/components/issues/sidebar.tsx index fbdcd7714..54cf69e1d 100644 --- a/apps/app/components/issues/sidebar.tsx +++ b/apps/app/components/issues/sidebar.tsx @@ -354,6 +354,7 @@ export const IssueDetailsSidebar: React.FC = ({ name="target_date" render={({ field: { value } }) => ( submitChanges({ diff --git a/apps/app/components/issues/view-select/due-date.tsx b/apps/app/components/issues/view-select/due-date.tsx index 61aad5766..d3f16c5b4 100644 --- a/apps/app/components/issues/view-select/due-date.tsx +++ b/apps/app/components/issues/view-select/due-date.tsx @@ -31,7 +31,7 @@ export const ViewDueDateSelect: React.FC = ({ issue, partialUpdateIssue, }`} > { partialUpdateIssue({ @@ -51,7 +51,7 @@ export const ViewDueDateSelect: React.FC = ({ issue, partialUpdateIssue, "ISSUE_PROPERTY_UPDATE_DUE_DATE" ); }} - className={issue?.target_date ? "w-[6.5rem]" : "w-[3rem] text-center"} + className={issue?.target_date ? "w-[6.5rem]" : "w-[5rem] text-center"} disabled={isNotAllowed} />
diff --git a/apps/app/components/modules/sidebar-select/select-lead.tsx b/apps/app/components/modules/sidebar-select/select-lead.tsx index b551294fb..cea3627f1 100644 --- a/apps/app/components/modules/sidebar-select/select-lead.tsx +++ b/apps/app/components/modules/sidebar-select/select-lead.tsx @@ -62,25 +62,17 @@ export const SidebarLeadSelect: React.FC = ({ value, onChange }) => { +
+ {selectedOption && } {selectedOption ? ( - + selectedOption?.first_name && selectedOption.first_name !== "" ? ( + selectedOption?.first_name + ) : ( + selectedOption?.email + ) ) : ( -
- No user -
+ No lead )} - {selectedOption - ? selectedOption?.first_name && selectedOption.first_name !== "" - ? selectedOption?.first_name - : selectedOption?.email - : "N/A"}
} options={options} diff --git a/apps/app/components/modules/sidebar.tsx b/apps/app/components/modules/sidebar.tsx index e3d75be45..3b3076e05 100644 --- a/apps/app/components/modules/sidebar.tsx +++ b/apps/app/components/modules/sidebar.tsx @@ -198,9 +198,7 @@ export const ModuleDetailsSidebar: React.FC = ({ issues, module, isOpen, render={({ field: { value } }) => ( + {capitalizeFirstLetter(`${watch("status")}`)} } @@ -218,17 +216,19 @@ export const ModuleDetailsSidebar: React.FC = ({ issues, module, isOpen, )} />
-
- +
+ {({ open }) => ( <> - {renderShortDate(new Date(`${module.start_date}`))} + + {renderShortDate(new Date(`${module.start_date}`), "Start date")} + = ({ issues, module, isOpen, )} - + - + {({ open }) => ( <> - {renderShortDate(new Date(`${module?.target_date}`))} + + {renderShortDate(new Date(`${module?.target_date}`), "End date")} + = ({ issues, module, isOpen,
-
-
-
+
+
+

{module.name}

setModuleDeleteModal(true)}> @@ -522,9 +524,9 @@ export const ModuleDetailsSidebar: React.FC = ({ issues, module, isOpen,
-
-
-

Links

+
+
+

Links