From dffe3a844fcdd0a68cd931b68cbae76e0bea63d2 Mon Sep 17 00:00:00 2001 From: Akshita Goyal <36129505+gakshita@users.noreply.github.com> Date: Mon, 4 Aug 2025 20:06:03 +0530 Subject: [PATCH] [WEB-4632] chore: pinned your work to the sidebar #7537 --- .../components/workspace/sidebar/sidebar-item.tsx | 2 +- packages/constants/src/workspace.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/web/ce/components/workspace/sidebar/sidebar-item.tsx b/apps/web/ce/components/workspace/sidebar/sidebar-item.tsx index 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 = 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.ts index 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 = { - "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