mirror of
https://github.com/makeplane/plane.git
synced 2026-02-15 11:20:57 -06:00
* chore: updated project settings state * chore: updated sorting on project state * chore: updated grab handler in state item * chore: Updated UI and added garb handler icon * chore: handled top and bottom sequence in middle element swap * chore: handled input state element char limit to 100 * chore: typos and code cleanup in create state * chore: handled typos and comments wherever is required * chore: handled sorting logic
43 lines
777 B
TypeScript
43 lines
777 B
TypeScript
import { TStateGroups } from "@plane/types";
|
|
|
|
export type TDraggableData = {
|
|
groupKey: TStateGroups;
|
|
id: string;
|
|
};
|
|
|
|
export const STATE_GROUPS: {
|
|
[key in TStateGroups]: {
|
|
key: TStateGroups;
|
|
label: string;
|
|
color: string;
|
|
};
|
|
} = {
|
|
backlog: {
|
|
key: "backlog",
|
|
label: "Backlog",
|
|
color: "#d9d9d9",
|
|
},
|
|
unstarted: {
|
|
key: "unstarted",
|
|
label: "Unstarted",
|
|
color: "#3f76ff",
|
|
},
|
|
started: {
|
|
key: "started",
|
|
label: "Started",
|
|
color: "#f59e0b",
|
|
},
|
|
completed: {
|
|
key: "completed",
|
|
label: "Completed",
|
|
color: "#16a34a",
|
|
},
|
|
cancelled: {
|
|
key: "cancelled",
|
|
label: "Canceled",
|
|
color: "#dc2626",
|
|
},
|
|
};
|
|
|
|
export const ARCHIVABLE_STATE_GROUPS = [STATE_GROUPS.completed.key, STATE_GROUPS.cancelled.key];
|