plane/apps/app/constants/spreadsheet.ts
Anmol Singh Bhatia e08fc59114
feat: spreadsheet view (#1369)
* feat: spreadsheet view

* fix: fix scroll and overflow issues, feat: updated issue properties component, style: ui improvements

* feat: sub-issue toggle and sub-issue hook added, chore: code refactor

* fix: only render parent issue

* feat: sub issue fetching hook updated and nested sub issue added, chore: code refactor

* style: title sticky to left on scroll and column styling

* fix: tooltip , filter and view z-index fix

* feat: spreadsheet view column sorting, fix: sticky scroll issue fix

* feat: updated issue view filter for spreadsheet view

* style: spreadsheet view column

* feat: double click to edit title

* fix: estimate sorting fix

* style: spreadsheet view columns

* fix: spreadsheet view mutation, feat: edit , copy and delete option added

* fix: edit sub issue fix
2023-06-23 17:20:05 +05:30

61 lines
1.2 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",
},
{
propertyName: "assignee",
colName: "Assignees",
colSize: "128px",
icon: UserGroupIcon,
ascendingOrder: "assignees__name",
descendingOrder: "-assignees__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",
},
];