mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 14:01:45 +02:00
* chore: integrated time traking enabled/disabled feature on project settings and updated the pro icon as a component * chore: Showing the toggle and disabled to make any operations on project features * chore: default exports in constants * chore: seperated isEnabled and isPro * chore: updated time traking key * chore: issue worklog endpoint * chore: added work log issue * chore: csv worklog downloads * chore: acitvity listing * chore: added workspace in export issues * chore: initialised services, contants, and store * chore: integrated worklog hooks * chore: changed types in worklog type * chore: worklog response changes * chore: serializer changes * chore: corrected the import statement * chore: Worklog components and page updates * fix: download csv and excel * chore: implemented pagination for table and updated worklog downloads * chore: updated pagination and updated the api for worklog download filter param * chore: download response change * chore: import errors resolved in issue worklog * chore: handled loaders and empty states in worklog settings * chore: ui, typos and cleanup * chore: resolved merge conflicts * chore: updating the time tracking on issue detail page * chore: updated the ui worklog issue property button * chore: removed create from the worklog header * chore: updated default filters from constants * chore: resolved ce code updates * chore: ce cleanup * chore: worklogs in issue activity * ui: updated UI for peek overview and issue detail for worklog property * fix: exporter type * ui: handled the typos * ui: loader ui height changes * chore: resolved merge conflicts * chore: handled the project worklogs enabled/disabled in the issues * chore: handled empty screen for worklog * chore: typo --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com>
135 lines
3.1 KiB
TypeScript
135 lines
3.1 KiB
TypeScript
import { Timer } from "lucide-react";
|
||
import { TStaticViewTypes } from "@plane/types";
|
||
// services images
|
||
import CSVLogo from "@/public/services/csv.svg";
|
||
import ExcelLogo from "@/public/services/excel.svg";
|
||
import GithubLogo from "@/public/services/github.png";
|
||
import JiraLogo from "@/public/services/jira.svg";
|
||
import JSONLogo from "@/public/services/json.svg";
|
||
|
||
export enum EUserWorkspaceRoles {
|
||
GUEST = 5,
|
||
VIEWER = 10,
|
||
MEMBER = 15,
|
||
ADMIN = 20,
|
||
}
|
||
|
||
export const ROLE = {
|
||
5: "Guest",
|
||
10: "Viewer",
|
||
15: "Member",
|
||
20: "Admin",
|
||
};
|
||
|
||
export const ROLE_DETAILS = {
|
||
5: {
|
||
title: "Guest",
|
||
description: "External members of organizations can be invited as guests.",
|
||
},
|
||
10: {
|
||
title: "Viewer",
|
||
description: "External members of organizations can be invited as guests.",
|
||
},
|
||
15: {
|
||
title: "Member",
|
||
description: "Ability to read, write, edit, and delete entities inside projects, cycles, and modules",
|
||
},
|
||
20: {
|
||
title: "Admin",
|
||
description: "All permissions set to true within the workspace.",
|
||
},
|
||
};
|
||
|
||
export const ORGANIZATION_SIZE = ["Just myself", "2-10", "11-50", "51-200", "201-500", "500+"];
|
||
|
||
export const USER_ROLES = [
|
||
{ value: "Product / Project Manager", label: "Product / Project Manager" },
|
||
{ value: "Development / Engineering", label: "Development / Engineering" },
|
||
{ value: "Founder / Executive", label: "Founder / Executive" },
|
||
{ value: "Freelancer / Consultant", label: "Freelancer / Consultant" },
|
||
{ value: "Marketing / Growth", label: "Marketing / Growth" },
|
||
{ value: "Sales / Business Development", label: "Sales / Business Development" },
|
||
{ value: "Support / Operations", label: "Support / Operations" },
|
||
{ value: "Student / Professor", label: "Student / Professor" },
|
||
{ value: "Human Resources", label: "Human Resources" },
|
||
{ value: "Other", label: "Other" },
|
||
];
|
||
|
||
export const IMPORTERS_LIST = [
|
||
{
|
||
provider: "github",
|
||
type: "import",
|
||
title: "GitHub",
|
||
description: "Import issues from GitHub repositories and sync them.",
|
||
logo: GithubLogo,
|
||
},
|
||
{
|
||
provider: "jira",
|
||
type: "import",
|
||
title: "Jira",
|
||
description: "Import issues and epics from Jira projects and epics.",
|
||
logo: JiraLogo,
|
||
},
|
||
];
|
||
|
||
export const EXPORTERS_LIST = [
|
||
{
|
||
provider: "csv",
|
||
type: "export",
|
||
title: "CSV",
|
||
description: "Export issues to a CSV file.",
|
||
logo: CSVLogo,
|
||
},
|
||
{
|
||
provider: "xlsx",
|
||
type: "export",
|
||
title: "Excel",
|
||
description: "Export issues to a Excel file.",
|
||
logo: ExcelLogo,
|
||
},
|
||
{
|
||
provider: "json",
|
||
type: "export",
|
||
title: "JSON",
|
||
description: "Export issues to a JSON file.",
|
||
logo: JSONLogo,
|
||
},
|
||
];
|
||
|
||
export const DEFAULT_GLOBAL_VIEWS_LIST: {
|
||
key: TStaticViewTypes;
|
||
label: string;
|
||
}[] = [
|
||
{
|
||
key: "all-issues",
|
||
label: "All issues",
|
||
},
|
||
{
|
||
key: "assigned",
|
||
label: "Assigned",
|
||
},
|
||
{
|
||
key: "created",
|
||
label: "Created",
|
||
},
|
||
{
|
||
key: "subscribed",
|
||
label: "Subscribed",
|
||
},
|
||
];
|
||
|
||
export const RESTRICTED_URLS = [
|
||
"404",
|
||
"accounts",
|
||
"api",
|
||
"create-workspace",
|
||
"error",
|
||
"god-mode",
|
||
"installations",
|
||
"invitations",
|
||
"onboarding",
|
||
"profile",
|
||
"spaces",
|
||
"workspace-invitations",
|
||
];
|