mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
[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
This commit is contained in:
@@ -1,4 +1,33 @@
|
||||
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" },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user