Files
plane/web/ee/constants/project/default-root.ts

130 lines
3.8 KiB
TypeScript
Raw Permalink Normal View History

import { GalleryVertical, GanttChartSquare, Kanban, List, LucideIcon } from "lucide-react";
[WEB-1986] Feat: Project Grouping (#715) * feat: project grouping migrations * chore: implemented workspace features * chore: updated worksapce feature import in types * chore: project states endpoint * chore: updated migration file * chore: migration file changes * chore: workspace project states * feat: project states * fix: project states * chore: replaced base modal with project base modal in project attribute * chore: removed 002 migration * chore: project attribute migration * chore: project states feature flagged * chore: project state marking as default * chore: code cleanup * chore: updated the project attributes operations in the project crud endpoints * fix: wip * chore: feature flag validation on project create and update. * fix: sync develope * dev: project state feature flag and removed read only fields from serializer * wip * chore: updated project id and project validation when we toggle the workspace project_grouping feature is true * wip: layouts * chore: updated project filter store * wip: default screens * chore: filters update * chore: filters updates * chore: display filter updates * wip: state dropdown * chore: seperated project components for CE * chore: splitted the code for project creation form * fix: code structure optimization * chore: handled project filters * wip: gallery layout for projects * wip: spreadsheet filters * chore: added state and priority filters * fix: project page root moved * fix: synced with preview * dev: updated sorting * wip: role based permissions * fix: header sorting fixed * fix: project types + state filter * fix: optimizations * fix: optimizations * fix: partial feature flagging * fix: project states * fix: css * fix: css foxes * fix: * chore: handled board layout in project grouping * fix: post ce sync changes * fix: gantt permissions + member bugs * fix: mobile header + layout fixes * fix: workspace sidebar + archives * fix: build errors * fix: dark theme handling * fix: archive fix + miscellaneous * Fix: build errors * fix: kandban drag and drop + miscellaneous * fix: kanban drag and drop * fix: imports * fix: drag & drop + project dropdown * fix: merge changes --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: gakshita <akshitagoyal1516@gmail.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
2024-08-12 21:08:16 +05:30
// plane web types
import {
EProjectLayouts,
EProjectScope,
TProjectGroupBy,
TProjectSortBy,
TProjectSortOrder,
} from "@/plane-web/types/workspace-project-filters";
import { EProjectAccess, EProjectPriority } from "@/plane-web/types/workspace-project-states";
[WEB-1986] Feat: Project Grouping (#715) * feat: project grouping migrations * chore: implemented workspace features * chore: updated worksapce feature import in types * chore: project states endpoint * chore: updated migration file * chore: migration file changes * chore: workspace project states * feat: project states * fix: project states * chore: replaced base modal with project base modal in project attribute * chore: removed 002 migration * chore: project attribute migration * chore: project states feature flagged * chore: project state marking as default * chore: code cleanup * chore: updated the project attributes operations in the project crud endpoints * fix: wip * chore: feature flag validation on project create and update. * fix: sync develope * dev: project state feature flag and removed read only fields from serializer * wip * chore: updated project id and project validation when we toggle the workspace project_grouping feature is true * wip: layouts * chore: updated project filter store * wip: default screens * chore: filters update * chore: filters updates * chore: display filter updates * wip: state dropdown * chore: seperated project components for CE * chore: splitted the code for project creation form * fix: code structure optimization * chore: handled project filters * wip: gallery layout for projects * wip: spreadsheet filters * chore: added state and priority filters * fix: project page root moved * fix: synced with preview * dev: updated sorting * wip: role based permissions * fix: header sorting fixed * fix: project types + state filter * fix: optimizations * fix: optimizations * fix: partial feature flagging * fix: project states * fix: css * fix: css foxes * fix: * chore: handled board layout in project grouping * fix: post ce sync changes * fix: gantt permissions + member bugs * fix: mobile header + layout fixes * fix: workspace sidebar + archives * fix: build errors * fix: dark theme handling * fix: archive fix + miscellaneous * Fix: build errors * fix: kandban drag and drop + miscellaneous * fix: kanban drag and drop * fix: imports * fix: drag & drop + project dropdown * fix: merge changes --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: gakshita <akshitagoyal1516@gmail.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
2024-08-12 21:08:16 +05:30
// scope constants
type TProjectScopeMapObject<T> = { key: T; label: string };
type TProjectScopeMap = {
[key in EProjectScope]: TProjectScopeMapObject<key>;
};
export const PROJECT_SCOPE_MAP: TProjectScopeMap = {
[EProjectScope.MY_PROJECTS]: {
key: EProjectScope.MY_PROJECTS,
label: "Your projects",
[WEB-1986] Feat: Project Grouping (#715) * feat: project grouping migrations * chore: implemented workspace features * chore: updated worksapce feature import in types * chore: project states endpoint * chore: updated migration file * chore: migration file changes * chore: workspace project states * feat: project states * fix: project states * chore: replaced base modal with project base modal in project attribute * chore: removed 002 migration * chore: project attribute migration * chore: project states feature flagged * chore: project state marking as default * chore: code cleanup * chore: updated the project attributes operations in the project crud endpoints * fix: wip * chore: feature flag validation on project create and update. * fix: sync develope * dev: project state feature flag and removed read only fields from serializer * wip * chore: updated project id and project validation when we toggle the workspace project_grouping feature is true * wip: layouts * chore: updated project filter store * wip: default screens * chore: filters update * chore: filters updates * chore: display filter updates * wip: state dropdown * chore: seperated project components for CE * chore: splitted the code for project creation form * fix: code structure optimization * chore: handled project filters * wip: gallery layout for projects * wip: spreadsheet filters * chore: added state and priority filters * fix: project page root moved * fix: synced with preview * dev: updated sorting * wip: role based permissions * fix: header sorting fixed * fix: project types + state filter * fix: optimizations * fix: optimizations * fix: partial feature flagging * fix: project states * fix: css * fix: css foxes * fix: * chore: handled board layout in project grouping * fix: post ce sync changes * fix: gantt permissions + member bugs * fix: mobile header + layout fixes * fix: workspace sidebar + archives * fix: build errors * fix: dark theme handling * fix: archive fix + miscellaneous * Fix: build errors * fix: kandban drag and drop + miscellaneous * fix: kanban drag and drop * fix: imports * fix: drag & drop + project dropdown * fix: merge changes --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: gakshita <akshitagoyal1516@gmail.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
2024-08-12 21:08:16 +05:30
},
2024-08-20 18:54:09 +05:30
[EProjectScope.ALL_PROJECTS]: {
key: EProjectScope.ALL_PROJECTS,
label: "Browse all projects",
},
[WEB-1986] Feat: Project Grouping (#715) * feat: project grouping migrations * chore: implemented workspace features * chore: updated worksapce feature import in types * chore: project states endpoint * chore: updated migration file * chore: migration file changes * chore: workspace project states * feat: project states * fix: project states * chore: replaced base modal with project base modal in project attribute * chore: removed 002 migration * chore: project attribute migration * chore: project states feature flagged * chore: project state marking as default * chore: code cleanup * chore: updated the project attributes operations in the project crud endpoints * fix: wip * chore: feature flag validation on project create and update. * fix: sync develope * dev: project state feature flag and removed read only fields from serializer * wip * chore: updated project id and project validation when we toggle the workspace project_grouping feature is true * wip: layouts * chore: updated project filter store * wip: default screens * chore: filters update * chore: filters updates * chore: display filter updates * wip: state dropdown * chore: seperated project components for CE * chore: splitted the code for project creation form * fix: code structure optimization * chore: handled project filters * wip: gallery layout for projects * wip: spreadsheet filters * chore: added state and priority filters * fix: project page root moved * fix: synced with preview * dev: updated sorting * wip: role based permissions * fix: header sorting fixed * fix: project types + state filter * fix: optimizations * fix: optimizations * fix: partial feature flagging * fix: project states * fix: css * fix: css foxes * fix: * chore: handled board layout in project grouping * fix: post ce sync changes * fix: gantt permissions + member bugs * fix: mobile header + layout fixes * fix: workspace sidebar + archives * fix: build errors * fix: dark theme handling * fix: archive fix + miscellaneous * Fix: build errors * fix: kandban drag and drop + miscellaneous * fix: kanban drag and drop * fix: imports * fix: drag & drop + project dropdown * fix: merge changes --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: gakshita <akshitagoyal1516@gmail.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
2024-08-12 21:08:16 +05:30
};
export const PROJECT_SCOPES = Object.values(PROJECT_SCOPE_MAP);
// layout constants
type TProjectLayoutMapObject<T> = { key: T; title: string; label: string; icon: LucideIcon; selectivelyHide: boolean };
[WEB-1986] Feat: Project Grouping (#715) * feat: project grouping migrations * chore: implemented workspace features * chore: updated worksapce feature import in types * chore: project states endpoint * chore: updated migration file * chore: migration file changes * chore: workspace project states * feat: project states * fix: project states * chore: replaced base modal with project base modal in project attribute * chore: removed 002 migration * chore: project attribute migration * chore: project states feature flagged * chore: project state marking as default * chore: code cleanup * chore: updated the project attributes operations in the project crud endpoints * fix: wip * chore: feature flag validation on project create and update. * fix: sync develope * dev: project state feature flag and removed read only fields from serializer * wip * chore: updated project id and project validation when we toggle the workspace project_grouping feature is true * wip: layouts * chore: updated project filter store * wip: default screens * chore: filters update * chore: filters updates * chore: display filter updates * wip: state dropdown * chore: seperated project components for CE * chore: splitted the code for project creation form * fix: code structure optimization * chore: handled project filters * wip: gallery layout for projects * wip: spreadsheet filters * chore: added state and priority filters * fix: project page root moved * fix: synced with preview * dev: updated sorting * wip: role based permissions * fix: header sorting fixed * fix: project types + state filter * fix: optimizations * fix: optimizations * fix: partial feature flagging * fix: project states * fix: css * fix: css foxes * fix: * chore: handled board layout in project grouping * fix: post ce sync changes * fix: gantt permissions + member bugs * fix: mobile header + layout fixes * fix: workspace sidebar + archives * fix: build errors * fix: dark theme handling * fix: archive fix + miscellaneous * Fix: build errors * fix: kandban drag and drop + miscellaneous * fix: kanban drag and drop * fix: imports * fix: drag & drop + project dropdown * fix: merge changes --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: gakshita <akshitagoyal1516@gmail.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
2024-08-12 21:08:16 +05:30
type TProjectLayoutMap = {
[key in EProjectLayouts]: TProjectLayoutMapObject<key>;
};
export const PROJECT_LAYOUT_MAP: TProjectLayoutMap = {
[EProjectLayouts.GALLERY]: {
key: EProjectLayouts.GALLERY,
title: "Gallery Layout",
label: "Gallery",
icon: GalleryVertical,
selectivelyHide: false,
},
[EProjectLayouts.BOARD]: {
key: EProjectLayouts.BOARD,
title: "Board Layout",
label: "Board",
icon: Kanban,
selectivelyHide: true,
},
[EProjectLayouts.TABLE]: {
key: EProjectLayouts.TABLE,
title: "List Layout",
label: "Table",
icon: List,
selectivelyHide: false,
[WEB-1986] Feat: Project Grouping (#715) * feat: project grouping migrations * chore: implemented workspace features * chore: updated worksapce feature import in types * chore: project states endpoint * chore: updated migration file * chore: migration file changes * chore: workspace project states * feat: project states * fix: project states * chore: replaced base modal with project base modal in project attribute * chore: removed 002 migration * chore: project attribute migration * chore: project states feature flagged * chore: project state marking as default * chore: code cleanup * chore: updated the project attributes operations in the project crud endpoints * fix: wip * chore: feature flag validation on project create and update. * fix: sync develope * dev: project state feature flag and removed read only fields from serializer * wip * chore: updated project id and project validation when we toggle the workspace project_grouping feature is true * wip: layouts * chore: updated project filter store * wip: default screens * chore: filters update * chore: filters updates * chore: display filter updates * wip: state dropdown * chore: seperated project components for CE * chore: splitted the code for project creation form * fix: code structure optimization * chore: handled project filters * wip: gallery layout for projects * wip: spreadsheet filters * chore: added state and priority filters * fix: project page root moved * fix: synced with preview * dev: updated sorting * wip: role based permissions * fix: header sorting fixed * fix: project types + state filter * fix: optimizations * fix: optimizations * fix: partial feature flagging * fix: project states * fix: css * fix: css foxes * fix: * chore: handled board layout in project grouping * fix: post ce sync changes * fix: gantt permissions + member bugs * fix: mobile header + layout fixes * fix: workspace sidebar + archives * fix: build errors * fix: dark theme handling * fix: archive fix + miscellaneous * Fix: build errors * fix: kandban drag and drop + miscellaneous * fix: kanban drag and drop * fix: imports * fix: drag & drop + project dropdown * fix: merge changes --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: gakshita <akshitagoyal1516@gmail.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
2024-08-12 21:08:16 +05:30
},
[EProjectLayouts.TIMELINE]: {
key: EProjectLayouts.TIMELINE,
title: "Timeline Layout",
label: "Timeline",
icon: GanttChartSquare,
selectivelyHide: true,
[WEB-1986] Feat: Project Grouping (#715) * feat: project grouping migrations * chore: implemented workspace features * chore: updated worksapce feature import in types * chore: project states endpoint * chore: updated migration file * chore: migration file changes * chore: workspace project states * feat: project states * fix: project states * chore: replaced base modal with project base modal in project attribute * chore: removed 002 migration * chore: project attribute migration * chore: project states feature flagged * chore: project state marking as default * chore: code cleanup * chore: updated the project attributes operations in the project crud endpoints * fix: wip * chore: feature flag validation on project create and update. * fix: sync develope * dev: project state feature flag and removed read only fields from serializer * wip * chore: updated project id and project validation when we toggle the workspace project_grouping feature is true * wip: layouts * chore: updated project filter store * wip: default screens * chore: filters update * chore: filters updates * chore: display filter updates * wip: state dropdown * chore: seperated project components for CE * chore: splitted the code for project creation form * fix: code structure optimization * chore: handled project filters * wip: gallery layout for projects * wip: spreadsheet filters * chore: added state and priority filters * fix: project page root moved * fix: synced with preview * dev: updated sorting * wip: role based permissions * fix: header sorting fixed * fix: project types + state filter * fix: optimizations * fix: optimizations * fix: partial feature flagging * fix: project states * fix: css * fix: css foxes * fix: * chore: handled board layout in project grouping * fix: post ce sync changes * fix: gantt permissions + member bugs * fix: mobile header + layout fixes * fix: workspace sidebar + archives * fix: build errors * fix: dark theme handling * fix: archive fix + miscellaneous * Fix: build errors * fix: kandban drag and drop + miscellaneous * fix: kanban drag and drop * fix: imports * fix: drag & drop + project dropdown * fix: merge changes --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: gakshita <akshitagoyal1516@gmail.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
2024-08-12 21:08:16 +05:30
},
};
export const PROJECT_LAYOUTS = Object.values(PROJECT_LAYOUT_MAP);
// attribute constants
type TProjectPriorityMapObject<T> = { key: T; label: string };
type TProjectPriorityMap = {
[key in EProjectPriority]: TProjectPriorityMapObject<key>;
};
type TProjectAccessMapObject<T> = { key: T; label: string };
type TProjectAccessMap = {
[key in EProjectAccess]: TProjectAccessMapObject<key>;
};
[WEB-1986] Feat: Project Grouping (#715) * feat: project grouping migrations * chore: implemented workspace features * chore: updated worksapce feature import in types * chore: project states endpoint * chore: updated migration file * chore: migration file changes * chore: workspace project states * feat: project states * fix: project states * chore: replaced base modal with project base modal in project attribute * chore: removed 002 migration * chore: project attribute migration * chore: project states feature flagged * chore: project state marking as default * chore: code cleanup * chore: updated the project attributes operations in the project crud endpoints * fix: wip * chore: feature flag validation on project create and update. * fix: sync develope * dev: project state feature flag and removed read only fields from serializer * wip * chore: updated project id and project validation when we toggle the workspace project_grouping feature is true * wip: layouts * chore: updated project filter store * wip: default screens * chore: filters update * chore: filters updates * chore: display filter updates * wip: state dropdown * chore: seperated project components for CE * chore: splitted the code for project creation form * fix: code structure optimization * chore: handled project filters * wip: gallery layout for projects * wip: spreadsheet filters * chore: added state and priority filters * fix: project page root moved * fix: synced with preview * dev: updated sorting * wip: role based permissions * fix: header sorting fixed * fix: project types + state filter * fix: optimizations * fix: optimizations * fix: partial feature flagging * fix: project states * fix: css * fix: css foxes * fix: * chore: handled board layout in project grouping * fix: post ce sync changes * fix: gantt permissions + member bugs * fix: mobile header + layout fixes * fix: workspace sidebar + archives * fix: build errors * fix: dark theme handling * fix: archive fix + miscellaneous * Fix: build errors * fix: kandban drag and drop + miscellaneous * fix: kanban drag and drop * fix: imports * fix: drag & drop + project dropdown * fix: merge changes --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: gakshita <akshitagoyal1516@gmail.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
2024-08-12 21:08:16 +05:30
export const PROJECT_PRIORITY_MAP: TProjectPriorityMap = {
[EProjectPriority.NONE]: {
key: EProjectPriority.NONE,
label: "None",
},
[EProjectPriority.LOW]: { key: EProjectPriority.LOW, label: "Low" },
[EProjectPriority.MEDIUM]: { key: EProjectPriority.MEDIUM, label: "Medium" },
[EProjectPriority.HIGH]: { key: EProjectPriority.HIGH, label: "High" },
[EProjectPriority.URGENT]: {
key: EProjectPriority.URGENT,
label: "Urgent",
},
};
export const PROJECT_ACCESS_MAP: TProjectAccessMap = {
[EProjectAccess.PUBLIC]: {
key: EProjectAccess.PUBLIC,
label: "Public",
[WEB-1986] Feat: Project Grouping (#715) * feat: project grouping migrations * chore: implemented workspace features * chore: updated worksapce feature import in types * chore: project states endpoint * chore: updated migration file * chore: migration file changes * chore: workspace project states * feat: project states * fix: project states * chore: replaced base modal with project base modal in project attribute * chore: removed 002 migration * chore: project attribute migration * chore: project states feature flagged * chore: project state marking as default * chore: code cleanup * chore: updated the project attributes operations in the project crud endpoints * fix: wip * chore: feature flag validation on project create and update. * fix: sync develope * dev: project state feature flag and removed read only fields from serializer * wip * chore: updated project id and project validation when we toggle the workspace project_grouping feature is true * wip: layouts * chore: updated project filter store * wip: default screens * chore: filters update * chore: filters updates * chore: display filter updates * wip: state dropdown * chore: seperated project components for CE * chore: splitted the code for project creation form * fix: code structure optimization * chore: handled project filters * wip: gallery layout for projects * wip: spreadsheet filters * chore: added state and priority filters * fix: project page root moved * fix: synced with preview * dev: updated sorting * wip: role based permissions * fix: header sorting fixed * fix: project types + state filter * fix: optimizations * fix: optimizations * fix: partial feature flagging * fix: project states * fix: css * fix: css foxes * fix: * chore: handled board layout in project grouping * fix: post ce sync changes * fix: gantt permissions + member bugs * fix: mobile header + layout fixes * fix: workspace sidebar + archives * fix: build errors * fix: dark theme handling * fix: archive fix + miscellaneous * Fix: build errors * fix: kandban drag and drop + miscellaneous * fix: kanban drag and drop * fix: imports * fix: drag & drop + project dropdown * fix: merge changes --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: gakshita <akshitagoyal1516@gmail.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
2024-08-12 21:08:16 +05:30
},
[EProjectAccess.PRIVATE]: { key: EProjectAccess.PRIVATE, label: "Private" },
[WEB-1986] Feat: Project Grouping (#715) * feat: project grouping migrations * chore: implemented workspace features * chore: updated worksapce feature import in types * chore: project states endpoint * chore: updated migration file * chore: migration file changes * chore: workspace project states * feat: project states * fix: project states * chore: replaced base modal with project base modal in project attribute * chore: removed 002 migration * chore: project attribute migration * chore: project states feature flagged * chore: project state marking as default * chore: code cleanup * chore: updated the project attributes operations in the project crud endpoints * fix: wip * chore: feature flag validation on project create and update. * fix: sync develope * dev: project state feature flag and removed read only fields from serializer * wip * chore: updated project id and project validation when we toggle the workspace project_grouping feature is true * wip: layouts * chore: updated project filter store * wip: default screens * chore: filters update * chore: filters updates * chore: display filter updates * wip: state dropdown * chore: seperated project components for CE * chore: splitted the code for project creation form * fix: code structure optimization * chore: handled project filters * wip: gallery layout for projects * wip: spreadsheet filters * chore: added state and priority filters * fix: project page root moved * fix: synced with preview * dev: updated sorting * wip: role based permissions * fix: header sorting fixed * fix: project types + state filter * fix: optimizations * fix: optimizations * fix: partial feature flagging * fix: project states * fix: css * fix: css foxes * fix: * chore: handled board layout in project grouping * fix: post ce sync changes * fix: gantt permissions + member bugs * fix: mobile header + layout fixes * fix: workspace sidebar + archives * fix: build errors * fix: dark theme handling * fix: archive fix + miscellaneous * Fix: build errors * fix: kandban drag and drop + miscellaneous * fix: kanban drag and drop * fix: imports * fix: drag & drop + project dropdown * fix: merge changes --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: gakshita <akshitagoyal1516@gmail.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
2024-08-12 21:08:16 +05:30
};
export const PROJECT_PRIORITIES = Object.values(PROJECT_PRIORITY_MAP);
export const PROJECT_ACCESS = Object.values(PROJECT_ACCESS_MAP);
[WEB-1986] Feat: Project Grouping (#715) * feat: project grouping migrations * chore: implemented workspace features * chore: updated worksapce feature import in types * chore: project states endpoint * chore: updated migration file * chore: migration file changes * chore: workspace project states * feat: project states * fix: project states * chore: replaced base modal with project base modal in project attribute * chore: removed 002 migration * chore: project attribute migration * chore: project states feature flagged * chore: project state marking as default * chore: code cleanup * chore: updated the project attributes operations in the project crud endpoints * fix: wip * chore: feature flag validation on project create and update. * fix: sync develope * dev: project state feature flag and removed read only fields from serializer * wip * chore: updated project id and project validation when we toggle the workspace project_grouping feature is true * wip: layouts * chore: updated project filter store * wip: default screens * chore: filters update * chore: filters updates * chore: display filter updates * wip: state dropdown * chore: seperated project components for CE * chore: splitted the code for project creation form * fix: code structure optimization * chore: handled project filters * wip: gallery layout for projects * wip: spreadsheet filters * chore: added state and priority filters * fix: project page root moved * fix: synced with preview * dev: updated sorting * wip: role based permissions * fix: header sorting fixed * fix: project types + state filter * fix: optimizations * fix: optimizations * fix: partial feature flagging * fix: project states * fix: css * fix: css foxes * fix: * chore: handled board layout in project grouping * fix: post ce sync changes * fix: gantt permissions + member bugs * fix: mobile header + layout fixes * fix: workspace sidebar + archives * fix: build errors * fix: dark theme handling * fix: archive fix + miscellaneous * Fix: build errors * fix: kandban drag and drop + miscellaneous * fix: kanban drag and drop * fix: imports * fix: drag & drop + project dropdown * fix: merge changes --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: gakshita <akshitagoyal1516@gmail.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
2024-08-12 21:08:16 +05:30
// display filter constants
export const PROJECT_GROUP_BY_OPTIONS: {
key: TProjectGroupBy;
title: string;
}[] = [
{ key: "states", title: "States" },
{ key: "state_groups", title: "State Groups" },
{ key: "priority", title: "Priority" },
{ key: "created_by", title: "Created By" },
];
export const PROJECT_SORT_BY_OPTIONS: {
key: TProjectSortBy;
title: string;
}[] = [
{ key: "manual", title: "Manual" },
{ key: "name", title: "Name" },
{ key: "state", title: "State" },
{ key: "priority", title: "Priority" },
{ key: "created_date", title: "Created date" },
{ key: "start_date", title: "Start Date" },
{ key: "end_date", title: "End Date" },
{ key: "members_count", title: "Member Count" },
];
export const PROJECT_SORT_ORDER_OPTIONS: {
key: TProjectSortOrder;
title: string;
}[] = [
{ key: "asc", title: "Ascending" },
{ key: "desc", title: "Descending" },
];