chore: start date option added in spreadsheet view (#1824)

This commit is contained in:
Anmol Singh Bhatia 2023-08-11 19:14:54 +05:30 committed by GitHub
parent a3d99100ee
commit 5f5790ebf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import {
ViewEstimateSelect,
ViewIssueLabel,
ViewPrioritySelect,
ViewStartDateSelect,
ViewStateSelect,
} from "components/issues";
import { Popover2 } from "@blueprintjs/popover2";
@ -315,6 +316,19 @@ export const SingleSpreadsheetIssue: React.FC<Props> = ({
</div>
)}
{properties.start_date && (
<div className="flex items-center text-xs text-custom-text-200 text-center p-2 group-hover:bg-custom-background-80 border-custom-border-200">
<ViewStartDateSelect
issue={issue}
partialUpdateIssue={partialUpdateIssue}
tooltipPosition={tooltipPosition}
noBorder
user={user}
isNotAllowed={isNotAllowed}
/>
</div>
)}
{properties.due_date && (
<div className="flex items-center text-xs text-custom-text-200 text-center p-2 group-hover:bg-custom-background-80 border-custom-border-200">
<ViewDueDateSelect

View File

@ -45,7 +45,7 @@ export const ViewStartDateSelect: React.FC<Props> = ({
>
<div className="group flex-shrink-0 relative max-w-[6.5rem]">
<CustomDatePicker
placeholder="Due date"
placeholder="Start date"
value={issue?.start_date}
onChange={(val) => {
partialUpdateIssue(

View File

@ -43,6 +43,14 @@ export const SPREADSHEET_COLUMN = [
ascendingOrder: "labels__name",
descendingOrder: "-labels__name",
},
{
propertyName: "start_date",
colName: "Start Date",
colSize: "128px",
icon: CalendarDaysIcon,
ascendingOrder: "-start_date",
descendingOrder: "start_date",
},
{
propertyName: "due_date",
colName: "Due Date",