From 505b14e3a6fa76bba328bf41b7f4b7fb562ce275 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Tue, 21 Mar 2023 12:47:10 +0530 Subject: [PATCH] fix: ui fixes and improvement (#479) * fix: list view longer title tooltip fix * fix: module and cycle sidebar ui improvement --- .../components/core/list-view/single-issue.tsx | 2 +- apps/app/components/cycles/sidebar.tsx | 13 ++++++++----- apps/app/components/icons/exclamation-icon.tsx | 16 ++++++++++++++++ apps/app/components/icons/index.ts | 1 + .../components/issues/my-issues-list-item.tsx | 2 +- apps/app/components/modules/sidebar.tsx | 16 ++++++++-------- 6 files changed, 35 insertions(+), 15 deletions(-) create mode 100644 apps/app/components/icons/exclamation-icon.tsx diff --git a/apps/app/components/core/list-view/single-issue.tsx b/apps/app/components/core/list-view/single-issue.tsx index e1b5fa9ed..c9ff6626d 100644 --- a/apps/app/components/core/list-view/single-issue.tsx +++ b/apps/app/components/core/list-view/single-issue.tsx @@ -189,7 +189,7 @@ export const SingleListIssue: React.FC = ({ )} - + {truncateText(issue.name, 50)} diff --git a/apps/app/components/cycles/sidebar.tsx b/apps/app/components/cycles/sidebar.tsx index 44e89604d..d3c7a2306 100644 --- a/apps/app/components/cycles/sidebar.tsx +++ b/apps/app/components/cycles/sidebar.tsx @@ -19,7 +19,6 @@ import { UserCircleIcon, ChevronDownIcon, DocumentIcon, - ExclamationCircleIcon, } from "@heroicons/react/24/outline"; // ui import { CustomMenu, Loader, ProgressBar } from "components/ui"; @@ -31,6 +30,8 @@ import cyclesService from "services/cycles.service"; import { SidebarProgressStats } from "components/core"; import ProgressChart from "components/core/sidebar/progress-chart"; import { DeleteCycleModal } from "components/cycles"; +// icons +import { ExclamationIcon } from "components/icons"; // helpers import { capitalizeFirstLetter, copyTextToClipboard } from "helpers/string.helper"; import { groupBy } from "helpers/array.helper"; @@ -346,8 +347,8 @@ export const CycleDetailsSidebar: React.FC = ({ cycle, isOpen, cycleStatu ) : (
- - + + Invalid date. Please enter valid date.
@@ -417,8 +418,10 @@ export const CycleDetailsSidebar: React.FC = ({ cycle, isOpen, cycleStatu ) : (
- - No issues found. Please add issue. + + + No issues found. Please add issue. +
)} diff --git a/apps/app/components/icons/exclamation-icon.tsx b/apps/app/components/icons/exclamation-icon.tsx new file mode 100644 index 000000000..d904263f5 --- /dev/null +++ b/apps/app/components/icons/exclamation-icon.tsx @@ -0,0 +1,16 @@ +import React from "react"; + +import type { Props } from "./types"; + +export const ExclamationIcon: React.FC = ({ width, height, className }) => ( + + + + ); diff --git a/apps/app/components/icons/index.ts b/apps/app/components/icons/index.ts index 4adfbac5e..f9f395880 100644 --- a/apps/app/components/icons/index.ts +++ b/apps/app/components/icons/index.ts @@ -43,3 +43,4 @@ export * from "./contrast-icon"; export * from "./people-group-icon"; export * from "./cmd-icon"; export * from "./view-list-icon"; +export * from "./exclamation-icon"; diff --git a/apps/app/components/issues/my-issues-list-item.tsx b/apps/app/components/issues/my-issues-list-item.tsx index f2b051c76..f933e95f9 100644 --- a/apps/app/components/issues/my-issues-list-item.tsx +++ b/apps/app/components/issues/my-issues-list-item.tsx @@ -92,7 +92,7 @@ export const MyIssuesListItem: React.FC = ({ issue, properties, projectId
)} - + {truncateText(issue.name, 50)} diff --git a/apps/app/components/modules/sidebar.tsx b/apps/app/components/modules/sidebar.tsx index 5e4407841..7f360a419 100644 --- a/apps/app/components/modules/sidebar.tsx +++ b/apps/app/components/modules/sidebar.tsx @@ -14,7 +14,6 @@ import { ChevronDownIcon, DocumentDuplicateIcon, DocumentIcon, - ExclamationCircleIcon, TrashIcon, } from "@heroicons/react/24/outline"; @@ -28,10 +27,9 @@ import useToast from "hooks/use-toast"; import { LinkModal, SidebarProgressStats } from "components/core"; import { DeleteModuleModal, SidebarLeadSelect, SidebarMembersSelect } from "components/modules"; import ProgressChart from "components/core/sidebar/progress-chart"; - -// components -// ui import { CustomMenu, CustomSelect, Loader, ProgressBar } from "components/ui"; +// icon +import { ExclamationIcon } from "components/icons"; // helpers import { renderDateFormat, renderShortDate } from "helpers/date-time.helper"; import { capitalizeFirstLetter, copyTextToClipboard } from "helpers/string.helper"; @@ -424,8 +422,8 @@ export const ModuleDetailsSidebar: React.FC = ({ ) : (
- - + + Invalid date. Please enter valid date.
@@ -495,8 +493,10 @@ export const ModuleDetailsSidebar: React.FC = ({ ) : (
- - No issues found. Please add issue. + + + No issues found. Please add issue. +
)}