Skip to content

Commit

Permalink
chore: start date option added in spreadsheet view (#1824)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolsinghbhatia authored Aug 11, 2023
1 parent a3d9910 commit 5f5790e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
14 changes: 14 additions & 0 deletions apps/app/components/core/views/spreadsheet-view/single-issue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
ViewEstimateSelect,
ViewIssueLabel,
ViewPrioritySelect,
ViewStartDateSelect,
ViewStateSelect,
} from "components/issues";
import { Popover2 } from "@blueprintjs/popover2";
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/app/components/issues/view-select/start-date.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
8 changes: 8 additions & 0 deletions apps/app/constants/spreadsheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

1 comment on commit 5f5790e

@vercel
Copy link

@vercel vercel bot commented on 5f5790e Aug 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

plane-dev – ./apps/app

plane-dev-git-develop-plane.vercel.app
plane-dev.vercel.app
plane-dev-plane.vercel.app

Please sign in to comment.