π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
[WEB-4632] chore: pinned your work to the sidebar #7537
Akshita Goyaldffe3a844fcd
diff --git a/apps/web/ce/components/workspace/sidebar/sidebar-item.tsx b/apps/web/ce/components/workspace/sidebar/sidebar-item.tsxindex 3b61b8ed6b..12ea1e627a 100644--- a/apps/web/ce/components/workspace/sidebar/sidebar-item.tsx+++ b/apps/web/ce/components/workspace/sidebar/sidebar-item.tsx@@ -38,7 +38,7 @@ export const SidebarItem: FC<TSidebarItemProps> = observer((props) => {if (isExtendedSidebarOpened) toggleExtendedSidebar(false);};- const staticItems = ["home", "inbox", "pi-chat", "projects"];+ const staticItems = ["home", "inbox", "pi-chat", "projects", "your_work"];if (!allowPermissions(item.access as any, EUserPermissionsLevel.WORKSPACE, workspaceSlug.toString())) {return null;diff --git a/packages/constants/src/workspace.ts b/packages/constants/src/workspace.tsindex 24bcd8fa89..4d39db279c 100644--- a/packages/constants/src/workspace.ts+++ b/packages/constants/src/workspace.ts@@ -254,12 +254,6 @@ export interface IWorkspaceSidebarNavigationItem {}export const WORKSPACE_SIDEBAR_DYNAMIC_NAVIGATION_ITEMS: Record<string, IWorkspaceSidebarNavigationItem> = {- "your-work": {- key: "your_work",- labelTranslationKey: "your_work",- href: `/profile/`,- access: [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER],- },views: {key: "views",labelTranslationKey: "views",@@ -288,7 +282,6 @@ export const WORKSPACE_SIDEBAR_DYNAMIC_NAVIGATION_ITEMS: Record<string, IWorkspaexport const WORKSPACE_SIDEBAR_DYNAMIC_NAVIGATION_ITEMS_LINKS: IWorkspaceSidebarNavigationItem[] = [WORKSPACE_SIDEBAR_DYNAMIC_NAVIGATION_ITEMS["views"],WORKSPACE_SIDEBAR_DYNAMIC_NAVIGATION_ITEMS["analytics"],- WORKSPACE_SIDEBAR_DYNAMIC_NAVIGATION_ITEMS["your-work"],WORKSPACE_SIDEBAR_DYNAMIC_NAVIGATION_ITEMS["drafts"],WORKSPACE_SIDEBAR_DYNAMIC_NAVIGATION_ITEMS["archives"],];@@ -306,6 +299,12 @@ export const WORKSPACE_SIDEBAR_STATIC_NAVIGATION_ITEMS: Record<string, IWorkspachref: `/notifications/`,access: [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER, EUserWorkspaceRoles.GUEST],},+ "your-work": {+ key: "your_work",+ labelTranslationKey: "your_work",+ href: `/profile/`,+ access: [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER],+ },projects: {key: "projects",labelTranslationKey: "projects",@@ -317,6 +316,7 @@ export const WORKSPACE_SIDEBAR_STATIC_NAVIGATION_ITEMS: Record<string, IWorkspacexport const WORKSPACE_SIDEBAR_STATIC_NAVIGATION_ITEMS_LINKS: IWorkspaceSidebarNavigationItem[] = [WORKSPACE_SIDEBAR_STATIC_NAVIGATION_ITEMS["home"],WORKSPACE_SIDEBAR_STATIC_NAVIGATION_ITEMS["inbox"],+ WORKSPACE_SIDEBAR_STATIC_NAVIGATION_ITEMS["your-work"],];export const WORKSPACE_SIDEBAR_STATIC_PINNED_NAVIGATION_ITEMS_LINKS: IWorkspaceSidebarNavigationItem[] = [