mirror of
https://github.com/makeplane/plane.git
synced 2026-02-15 03:09:29 -06:00
* View with filters and changes required for advanced views * minor refactoring of views * minor name change
34 lines
811 B
TypeScript
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" },
|
|
];
|