-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6428 from makeplane/chore-ln-module
chore: ln support modules constants
- Loading branch information
Showing
21 changed files
with
361 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 29 additions & 23 deletions
52
web/core/constants/module.ts → packages/constants/src/module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,99 +1,105 @@ | ||
import { GanttChartSquare, LayoutGrid, List } from "lucide-react"; | ||
// types | ||
import { TModuleLayoutOptions, TModuleOrderByOptions, TModuleStatus } from "@plane/types"; | ||
import { | ||
TModuleLayoutOptions, | ||
TModuleOrderByOptions, | ||
TModuleStatus, | ||
} from "@plane/types"; | ||
|
||
export const MODULE_STATUS: { | ||
label: string; | ||
i18n_label: string; | ||
value: TModuleStatus; | ||
color: string; | ||
textColor: string; | ||
bgColor: string; | ||
}[] = [ | ||
{ | ||
label: "Backlog", | ||
i18n_label: "project_modules.status.backlog", | ||
value: "backlog", | ||
color: "#a3a3a2", | ||
textColor: "text-custom-text-400", | ||
bgColor: "bg-custom-background-80", | ||
}, | ||
{ | ||
label: "Planned", | ||
i18n_label: "project_modules.status.planned", | ||
value: "planned", | ||
color: "#3f76ff", | ||
textColor: "text-blue-500", | ||
bgColor: "bg-indigo-50", | ||
}, | ||
{ | ||
label: "In Progress", | ||
i18n_label: "project_modules.status.in_progress", | ||
value: "in-progress", | ||
color: "#f39e1f", | ||
textColor: "text-amber-500", | ||
bgColor: "bg-amber-50", | ||
}, | ||
{ | ||
label: "Paused", | ||
i18n_label: "project_modules.status.paused", | ||
value: "paused", | ||
color: "#525252", | ||
textColor: "text-custom-text-300", | ||
bgColor: "bg-custom-background-90", | ||
}, | ||
{ | ||
label: "Completed", | ||
i18n_label: "project_modules.status.completed", | ||
value: "completed", | ||
color: "#16a34a", | ||
textColor: "text-green-600", | ||
bgColor: "bg-green-100", | ||
}, | ||
{ | ||
label: "Cancelled", | ||
i18n_label: "project_modules.status.cancelled", | ||
value: "cancelled", | ||
color: "#ef4444", | ||
textColor: "text-red-500", | ||
bgColor: "bg-red-50", | ||
}, | ||
]; | ||
|
||
export const MODULE_VIEW_LAYOUTS: { key: TModuleLayoutOptions; icon: any; title: string }[] = [ | ||
export const MODULE_VIEW_LAYOUTS: { | ||
key: TModuleLayoutOptions; | ||
i18n_title: string; | ||
}[] = [ | ||
{ | ||
key: "list", | ||
icon: List, | ||
title: "List layout", | ||
i18n_title: "project_modules.layout.list", | ||
}, | ||
{ | ||
key: "board", | ||
icon: LayoutGrid, | ||
title: "Gallery layout", | ||
i18n_title: "project_modules.layout.board", | ||
}, | ||
{ | ||
key: "gantt", | ||
icon: GanttChartSquare, | ||
title: "Timeline layout", | ||
i18n_title: "project_modules.layout.timeline", | ||
}, | ||
]; | ||
|
||
export const MODULE_ORDER_BY_OPTIONS: { key: TModuleOrderByOptions; label: string }[] = [ | ||
export const MODULE_ORDER_BY_OPTIONS: { | ||
key: TModuleOrderByOptions; | ||
i18n_label: string; | ||
}[] = [ | ||
{ | ||
key: "name", | ||
label: "Name", | ||
i18n_label: "project_modules.order_by.name", | ||
}, | ||
{ | ||
key: "progress", | ||
label: "Progress", | ||
i18n_label: "project_modules.order_by.progress", | ||
}, | ||
{ | ||
key: "issues_length", | ||
label: "Number of issues", | ||
i18n_label: "project_modules.order_by.issues", | ||
}, | ||
{ | ||
key: "target_date", | ||
label: "Due date", | ||
i18n_label: "project_modules.order_by.due_date", | ||
}, | ||
{ | ||
key: "created_at", | ||
label: "Created date", | ||
i18n_label: "project_modules.order_by.created_at", | ||
}, | ||
{ | ||
key: "sort_order", | ||
label: "Manual", | ||
i18n_label: "project_modules.order_by.manual", | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.