Files
plane/web/core/constants/views.ts
rahulramesha 82661589fb [WEB-1255] feat: filters for project views and changes required for advanced views (#4949)
* View with filters and changes required for advanced views

* minor refactoring of views

* minor name change
2024-06-27 14:40:14 +05:30

34 lines
811 B
TypeScript

import { Globe2, Lock, LucideIcon } from "lucide-react";
import { TViewFiltersSortBy, TViewFiltersSortKey } from "@plane/types";
export enum EViewAccess {
PRIVATE,
PUBLIC,
}
export const VIEW_ACCESS_SPECIFIERS: {
key: EViewAccess;
label: string;
icon: LucideIcon;
}[] = [
{ key: EViewAccess.PUBLIC, label: "Public", icon: Globe2 },
{ key: EViewAccess.PRIVATE, label: "Private", icon: Lock },
];
export const VIEW_SORTING_KEY_OPTIONS: {
key: TViewFiltersSortKey;
label: string;
}[] = [
{ key: "name", label: "Name" },
{ key: "created_at", label: "Date created" },
{ key: "updated_at", label: "Date modified" },
];
export const VIEW_SORT_BY_OPTIONS: {
key: TViewFiltersSortBy;
label: string;
}[] = [
{ key: "asc", label: "Ascending" },
{ key: "desc", label: "Descending" },
];