From 0215b697a5c2634ac6307bf7bf44eb8e2c79ff54 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Wed, 28 Feb 2024 19:13:17 +0530 Subject: [PATCH] chore: update issue date icons (#3826) --- web/components/issues/issue-detail/sidebar.tsx | 7 ++++--- .../issue-layouts/properties/all-properties.tsx | 4 +++- .../spreadsheet/columns/due-date-column.tsx | 2 ++ .../spreadsheet/columns/start-date-column.tsx | 2 ++ .../issues/peek-overview/properties.tsx | 16 +++++++++++++--- web/constants/spreadsheet.ts | 6 +++--- 6 files changed, 27 insertions(+), 10 deletions(-) diff --git a/web/components/issues/issue-detail/sidebar.tsx b/web/components/issues/issue-detail/sidebar.tsx index d3ac3c9fd..a65cb7f16 100644 --- a/web/components/issues/issue-detail/sidebar.tsx +++ b/web/components/issues/issue-detail/sidebar.tsx @@ -11,7 +11,8 @@ import { XCircle, CircleDot, CopyPlus, - CalendarDays, + CalendarClock, + CalendarCheck2, } from "lucide-react"; // hooks import { useEstimate, useIssueDetail, useProject, useProjectState, useUser } from "hooks/store"; @@ -236,7 +237,7 @@ export const IssueDetailsSidebar: React.FC = observer((props) => {
- + Start date
= observer((props) => {
- + Due date
= observer((props) => { onChange={handleStartDate} maxDate={maxDate ?? undefined} placeholder="Start date" + icon={} buttonVariant={issue.start_date ? "border-with-text" : "border-without-text"} disabled={isReadOnly} showTooltip @@ -301,6 +302,7 @@ export const IssueProperties: React.FC = observer((props) => { onChange={handleTargetDate} minDate={minDate ?? undefined} placeholder="Due date" + icon={} buttonVariant={issue.target_date ? "border-with-text" : "border-without-text"} buttonClassName={shouldHighlightIssueDueDate(issue.target_date, stateDetails?.group) ? "text-red-500" : ""} clearIconClassName="!text-custom-text-100" diff --git a/web/components/issues/issue-layouts/spreadsheet/columns/due-date-column.tsx b/web/components/issues/issue-layouts/spreadsheet/columns/due-date-column.tsx index ebed73b76..e261797af 100644 --- a/web/components/issues/issue-layouts/spreadsheet/columns/due-date-column.tsx +++ b/web/components/issues/issue-layouts/spreadsheet/columns/due-date-column.tsx @@ -1,5 +1,6 @@ import React from "react"; import { observer } from "mobx-react-lite"; +import { CalendarCheck2 } from "lucide-react"; // hooks import { useProjectState } from "hooks/store"; // components @@ -43,6 +44,7 @@ export const SpreadsheetDueDateColumn: React.FC = observer((props: Props) }} disabled={disabled} placeholder="Due date" + icon={} buttonVariant="transparent-with-text" buttonContainerClassName="w-full" buttonClassName={cn("rounded-none text-left", { diff --git a/web/components/issues/issue-layouts/spreadsheet/columns/start-date-column.tsx b/web/components/issues/issue-layouts/spreadsheet/columns/start-date-column.tsx index 82c00fc12..01f7fe793 100644 --- a/web/components/issues/issue-layouts/spreadsheet/columns/start-date-column.tsx +++ b/web/components/issues/issue-layouts/spreadsheet/columns/start-date-column.tsx @@ -1,5 +1,6 @@ import React from "react"; import { observer } from "mobx-react-lite"; +import { CalendarClock } from "lucide-react"; // components import { DateDropdown } from "components/dropdowns"; // helpers @@ -35,6 +36,7 @@ export const SpreadsheetStartDateColumn: React.FC = observer((props: Prop }} disabled={disabled} placeholder="Start date" + icon={} buttonVariant="transparent-with-text" buttonClassName="rounded-none text-left" buttonContainerClassName="w-full" diff --git a/web/components/issues/peek-overview/properties.tsx b/web/components/issues/peek-overview/properties.tsx index 2588dafec..2f5a02c11 100644 --- a/web/components/issues/peek-overview/properties.tsx +++ b/web/components/issues/peek-overview/properties.tsx @@ -1,6 +1,16 @@ import { FC } from "react"; import { observer } from "mobx-react-lite"; -import { Signal, Tag, Triangle, LayoutPanelTop, CircleDot, CopyPlus, XCircle, CalendarDays } from "lucide-react"; +import { + Signal, + Tag, + Triangle, + LayoutPanelTop, + CircleDot, + CopyPlus, + XCircle, + CalendarClock, + CalendarCheck2, +} from "lucide-react"; // hooks import { useIssueDetail, useProject, useProjectState } from "hooks/store"; // ui icons @@ -118,7 +128,7 @@ export const PeekOverviewProperties: FC = observer((pro {/* start date */}
- + Start date
= observer((pro {/* due date */}
- + Due date