chore: code refactor and build fix (#6285)
* chore: code refactor and build fix * chore: code refactor * chore: code refactor
This commit is contained in:
parent
3c6bbaef3c
commit
211d5e1cd0
33 changed files with 292 additions and 101 deletions
|
|
@ -29,6 +29,9 @@ export enum EmptyStateType {
|
|||
WORKSPACE_DASHBOARD = "workspace-dashboard",
|
||||
WORKSPACE_ANALYTICS = "workspace-analytics",
|
||||
WORKSPACE_PROJECTS = "workspace-projects",
|
||||
WORKSPACE_TEAMS = "workspace-teams",
|
||||
WORKSPACE_INITIATIVES = "workspace-initiatives",
|
||||
WORKSPACE_INITIATIVES_EMPTY_SEARCH = "workspace-initiatives-empty-search",
|
||||
WORKSPACE_ALL_ISSUES = "workspace-all-issues",
|
||||
WORKSPACE_ASSIGNED = "workspace-assigned",
|
||||
WORKSPACE_CREATED = "workspace-created",
|
||||
|
|
@ -96,6 +99,7 @@ export enum EmptyStateType {
|
|||
ACTIVE_CYCLE_ASSIGNEE_EMPTY_STATE = "active-cycle-assignee-empty-state",
|
||||
ACTIVE_CYCLE_LABEL_EMPTY_STATE = "active-cycle-label-empty-state",
|
||||
|
||||
WORKSPACE_ACTIVE_CYCLES = "workspace-active-cycles",
|
||||
DISABLED_PROJECT_INBOX = "disabled-project-inbox",
|
||||
DISABLED_PROJECT_CYCLE = "disabled-project-cycle",
|
||||
DISABLED_PROJECT_MODULE = "disabled-project-module",
|
||||
|
|
@ -110,6 +114,11 @@ export enum EmptyStateType {
|
|||
WORKSPACE_DRAFT_ISSUES = "workspace-draft-issues",
|
||||
|
||||
PROJECT_NO_EPICS = "project-no-epics",
|
||||
// Teams
|
||||
TEAM_NO_ISSUES = "team-no-issues",
|
||||
TEAM_EMPTY_FILTER = "team-empty-filter",
|
||||
TEAM_VIEW = "team-view",
|
||||
TEAM_PAGE = "team-page",
|
||||
}
|
||||
|
||||
const emptyStateDetails = {
|
||||
|
|
@ -165,6 +174,35 @@ const emptyStateDetails = {
|
|||
accessType: "workspace",
|
||||
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
|
||||
},
|
||||
[EmptyStateType.WORKSPACE_TEAMS]: {
|
||||
key: EmptyStateType.WORKSPACE_TEAMS,
|
||||
title: "Teams",
|
||||
description: "Teams are groups of people who collaborate on projects. Create a team to get started.",
|
||||
path: "/empty-state/teams/teams",
|
||||
primaryButton: {
|
||||
text: "Create new team",
|
||||
},
|
||||
accessType: "workspace",
|
||||
access: [EUserPermissions.ADMIN],
|
||||
},
|
||||
[EmptyStateType.WORKSPACE_INITIATIVES]: {
|
||||
key: EmptyStateType.WORKSPACE_INITIATIVES,
|
||||
title: "Organize work at the highest level with Initiatives",
|
||||
description:
|
||||
"When you need to organize work spanning several projects and teams, Initiatives come in handy. Connect projects and epics to initiatives, see automatically rolled up updates, and see the forests before you get to the trees.",
|
||||
path: "/empty-state/initiatives/initiatives",
|
||||
primaryButton: {
|
||||
text: "Create an initiative",
|
||||
},
|
||||
accessType: "workspace",
|
||||
access: [EUserPermissions.ADMIN],
|
||||
},
|
||||
[EmptyStateType.WORKSPACE_INITIATIVES_EMPTY_SEARCH]: {
|
||||
key: EmptyStateType.WORKSPACE_INITIATIVES_EMPTY_SEARCH,
|
||||
title: "No matching initiatives",
|
||||
description: "No initiatives detected with the matching criteria. \n Create a new initiative instead.",
|
||||
path: "/empty-state/search/project",
|
||||
},
|
||||
// all-issues
|
||||
[EmptyStateType.WORKSPACE_ALL_ISSUES]: {
|
||||
key: EmptyStateType.WORKSPACE_ALL_ISSUES,
|
||||
|
|
@ -695,6 +733,13 @@ const emptyStateDetails = {
|
|||
title: "Add labels to issues to see the \n breakdown of work by labels.",
|
||||
path: "/empty-state/active-cycle/label",
|
||||
},
|
||||
[EmptyStateType.WORKSPACE_ACTIVE_CYCLES]: {
|
||||
key: EmptyStateType.WORKSPACE_ACTIVE_CYCLES,
|
||||
title: "No active cycles",
|
||||
description:
|
||||
"Cycles of your projects that includes any period that encompasses today's date within its range. Find the progress and details of all your active cycle here.",
|
||||
path: "/empty-state/onboarding/workspace-active-cycles",
|
||||
},
|
||||
[EmptyStateType.DISABLED_PROJECT_INBOX]: {
|
||||
key: EmptyStateType.DISABLED_PROJECT_INBOX,
|
||||
title: "Intake is not enabled for the project.",
|
||||
|
|
@ -795,9 +840,63 @@ const emptyStateDetails = {
|
|||
description:
|
||||
"For larger bodies of work that span several cycles and can live across modules, create an epic. Link issues and sub-issues in a project to an epic and jump into an issue from the overview.",
|
||||
path: "/empty-state/onboarding/issues",
|
||||
primaryButton: {
|
||||
text: "Create an Epic",
|
||||
},
|
||||
accessType: "project",
|
||||
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
|
||||
},
|
||||
// Teams
|
||||
[EmptyStateType.TEAM_NO_ISSUES]: {
|
||||
key: EmptyStateType.TEAM_NO_ISSUES,
|
||||
title: "Create an issue in your team projects and assign it to someone, even yourself",
|
||||
description:
|
||||
"Think of issues as jobs, tasks, work, or JTBD. Which we like. An issue and its sub-issues are usually time-based actionables assigned to members of your team. Your team creates, assigns, and completes issues to move your project towards its goal.",
|
||||
path: "/empty-state/onboarding/issues",
|
||||
primaryButton: {
|
||||
text: "Create your first issue",
|
||||
comicBox: {
|
||||
title: "Issues are building blocks in Plane.",
|
||||
description:
|
||||
"Redesign the Plane UI, Rebrand the company, or Launch the new fuel injection system are examples of issues that likely have sub-issues.",
|
||||
},
|
||||
},
|
||||
accessType: "workspace",
|
||||
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
|
||||
},
|
||||
[EmptyStateType.TEAM_EMPTY_FILTER]: {
|
||||
key: EmptyStateType.TEAM_EMPTY_FILTER,
|
||||
title: "No issues found matching the filters applied",
|
||||
path: "/empty-state/empty-filters/",
|
||||
secondaryButton: {
|
||||
text: "Clear all filters",
|
||||
},
|
||||
accessType: "workspace",
|
||||
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
|
||||
},
|
||||
[EmptyStateType.TEAM_VIEW]: {
|
||||
key: EmptyStateType.TEAM_VIEW,
|
||||
title: "Save filtered views for your team. Create as many as you need",
|
||||
description:
|
||||
"Views are a set of saved filters that you use frequently or want easy access to. All your colleagues in a team can see everyone’s views and choose whichever suits their needs best.",
|
||||
path: "/empty-state/onboarding/views",
|
||||
primaryButton: {
|
||||
text: "Create your first view",
|
||||
comicBox: {
|
||||
title: "Views work atop Issue properties.",
|
||||
description: "You can create a view from here with as many properties as filters as you see fit.",
|
||||
},
|
||||
},
|
||||
accessType: "workspace",
|
||||
access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
|
||||
},
|
||||
[EmptyStateType.TEAM_PAGE]: {
|
||||
key: EmptyStateType.TEAM_PAGE,
|
||||
title: "Team pages are coming soon!",
|
||||
description:
|
||||
"Write a note, a doc, or a full knowledge base. Get Galileo, Plane’s AI assistant, to help you get started. Pages are thoughts potting space in Plane. Take down meeting notes, format them easily, embed issues, lay them out using a library of components, and keep them all in your project’s context. To make short work of any doc, invoke Galileo, Plane’s AI, with a shortcut or the click of a button.",
|
||||
path: "/empty-state/onboarding/pages",
|
||||
},
|
||||
} as const;
|
||||
|
||||
export const EMPTY_STATE_DETAILS: Record<EmptyStateType, EmptyStateDetails> = emptyStateDetails;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue