mirror of
https://github.com/makeplane/plane.git
synced 2026-02-12 00:59:24 -06:00
* chore: removed viewer role * chore: indentation * chore: remove viewer role * chore: handled user permissions in store * chore: updated the migration file * chore: updated user permissions store * chore: removed the owner key * chore: code refactor * chore: code refactor * chore: code refactor * chore: code refactor * chore: code refactor * fix: build error * chore: updated user permissions store and handled the permissions fetch in workspace and project wrappers * chore: package user enum updated * chore: user permission updated * chore: user permission updated * chore: resolved build errors * chore: resolved build error * chore: resolved build errors * chore: computedFn deep map issue resolved * chore: added back migration * chore: added new field in project table * chore: removed member store in users * chore: private project for admins * chore: workspace notification access validation updated * fix: workspace member edit option * fix: project intake permission validation updated * chore: workspace export settings permission updated * chore: guest_view_all_issues added * chore: guest_view_all_issues added * chore: key changed for guest access * chore: added validation for individual issues * chore: changed the dashboard issues count * chore: added new yarn file * chore: modified yarn file * chore: project page permission updated * chore: project page permission updated * chore: member setting ux updated * chore: build error * fix: yarn lock * fix: build error --------- Co-authored-by: gurusainath <gurusainath007@gmail.com> Co-authored-by: Anmol Singh Bhatia <anmolsinghbhatia@plane.so>
124 lines
3.1 KiB
TypeScript
124 lines
3.1 KiB
TypeScript
// types
|
||
import { TStaticViewTypes } from "@plane/types";
|
||
import { EUserPermissions } from "@/plane-web/constants/user-permissions";
|
||
// 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 const ROLE = {
|
||
[EUserPermissions.GUEST]: "Guest",
|
||
[EUserPermissions.MEMBER]: "Member",
|
||
[EUserPermissions.ADMIN]: "Admin",
|
||
};
|
||
|
||
export const ROLE_DETAILS = {
|
||
[EUserPermissions.GUEST]: {
|
||
title: "Guest",
|
||
description: "External members of organizations can be invited as guests.",
|
||
},
|
||
[EUserPermissions.MEMBER]: {
|
||
title: "Member",
|
||
description: "Ability to read, write, edit, and delete entities inside projects, cycles, and modules",
|
||
},
|
||
[EUserPermissions.ADMIN]: {
|
||
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",
|
||
];
|