forked from github/plane
7868bfa2b1
* feat: created on and updated on column added in spreadsheet view * fix: build fix * refactor: simplify logic --------- Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
79 lines
1.7 KiB
TypeScript
79 lines
1.7 KiB
TypeScript
import {
|
|
CalendarDaysIcon,
|
|
PlayIcon,
|
|
Squares2X2Icon,
|
|
TagIcon,
|
|
UserGroupIcon,
|
|
} from "@heroicons/react/24/outline";
|
|
|
|
export const SPREADSHEET_COLUMN = [
|
|
{
|
|
propertyName: "title",
|
|
colName: "Title",
|
|
colSize: "440px",
|
|
},
|
|
{
|
|
propertyName: "state",
|
|
colName: "State",
|
|
colSize: "128px",
|
|
icon: Squares2X2Icon,
|
|
ascendingOrder: "state__name",
|
|
descendingOrder: "-state__name",
|
|
},
|
|
{
|
|
propertyName: "priority",
|
|
colName: "Priority",
|
|
colSize: "128px",
|
|
ascendingOrder: "priority",
|
|
descendingOrder: "-priority",
|
|
},
|
|
{
|
|
propertyName: "assignee",
|
|
colName: "Assignees",
|
|
colSize: "128px",
|
|
icon: UserGroupIcon,
|
|
ascendingOrder: "assignees__first_name",
|
|
descendingOrder: "-assignees__first_name",
|
|
},
|
|
{
|
|
propertyName: "labels",
|
|
colName: "Labels",
|
|
colSize: "128px",
|
|
icon: TagIcon,
|
|
ascendingOrder: "labels__name",
|
|
descendingOrder: "-labels__name",
|
|
},
|
|
{
|
|
propertyName: "due_date",
|
|
colName: "Due Date",
|
|
colSize: "128px",
|
|
icon: CalendarDaysIcon,
|
|
ascendingOrder: "-target_date",
|
|
descendingOrder: "target_date",
|
|
},
|
|
{
|
|
propertyName: "estimate",
|
|
colName: "Estimate",
|
|
colSize: "128px",
|
|
icon: PlayIcon,
|
|
ascendingOrder: "estimate_point",
|
|
descendingOrder: "-estimate_point",
|
|
},
|
|
{
|
|
propertyName: "created_on",
|
|
colName: "Created On",
|
|
colSize: "144px",
|
|
icon: CalendarDaysIcon,
|
|
ascendingOrder: "-created_at",
|
|
descendingOrder: "created_at",
|
|
},
|
|
{
|
|
propertyName: "updated_on",
|
|
colName: "Updated On",
|
|
colSize: "144px",
|
|
icon: CalendarDaysIcon,
|
|
ascendingOrder: "-updated_at",
|
|
descendingOrder: "updated_at",
|
|
},
|
|
];
|