From bc3cd8a8bc724acd2f2458ecc07fa2ad81c0136e Mon Sep 17 00:00:00 2001 From: Atul Tameshwari Date: Wed, 17 Jun 2026 16:47:18 +0530 Subject: [PATCH] refactor: remove unused sidebar components and update import paths in workspace notifications --- .../analytics-sidebar/sidebar-chart-root.tsx | 19 ------------------- .../workspace-notifications/list-root.tsx | 16 ---------------- .../workspace-notifications/sidebar/root.tsx | 5 ++--- .../sidebar/sidebar-item-wrapper.tsx | 16 ---------------- .../workspace/sidebar/sidebar-menu-items.tsx | 9 ++++----- 5 files changed, 6 insertions(+), 59 deletions(-) delete mode 100644 apps/web/core/components/cycles/analytics-sidebar/sidebar-chart-root.tsx delete mode 100644 apps/web/core/components/workspace-notifications/list-root.tsx delete mode 100644 apps/web/core/components/workspace/sidebar/sidebar-item-wrapper.tsx diff --git a/apps/web/core/components/cycles/analytics-sidebar/sidebar-chart-root.tsx b/apps/web/core/components/cycles/analytics-sidebar/sidebar-chart-root.tsx deleted file mode 100644 index 0ddb13bd9a..0000000000 --- a/apps/web/core/components/cycles/analytics-sidebar/sidebar-chart-root.tsx +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -import React from "react"; -// components -import { SidebarChart } from "./sidebar-chart"; - -type Props = { - workspaceSlug: string; - projectId: string; - cycleId: string; -}; - -export function SidebarChartRoot(props: Props) { - return ; -} diff --git a/apps/web/core/components/workspace-notifications/list-root.tsx b/apps/web/core/components/workspace-notifications/list-root.tsx deleted file mode 100644 index 1edb479d1f..0000000000 --- a/apps/web/core/components/workspace-notifications/list-root.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -import { NotificationCardListRoot } from "./notification-card/root"; - -export type TNotificationListRoot = { - workspaceSlug: string; - workspaceId: string; -}; - -export function NotificationListRoot(props: TNotificationListRoot) { - return ; -} diff --git a/apps/web/core/components/workspace-notifications/sidebar/root.tsx b/apps/web/core/components/workspace-notifications/sidebar/root.tsx index 76a282d65a..2a3285a02a 100644 --- a/apps/web/core/components/workspace-notifications/sidebar/root.tsx +++ b/apps/web/core/components/workspace-notifications/sidebar/root.tsx @@ -18,13 +18,12 @@ import { CountChip } from "@/components/common/count-chip"; // hooks import { useWorkspaceNotifications } from "@/hooks/store/notifications"; import { useWorkspace } from "@/hooks/store/use-workspace"; -// plane web components -import { NotificationListRoot } from "@/components/workspace-notifications/list-root"; // local imports import { NotificationEmptyState } from "./empty-state"; import { AppliedFilters } from "./filters/applied-filter"; import { NotificationSidebarHeader } from "./header"; import { NotificationsLoader } from "./loader"; +import { NotificationCardListRoot } from "../notification-card/root"; export const NotificationsSidebarRoot = observer(function NotificationsSidebarRoot() { const { workspaceSlug } = useParams(); @@ -108,7 +107,7 @@ export const NotificationsSidebarRoot = observer(function NotificationsSidebarRo <> {notificationIds && notificationIds.length > 0 ? ( - + ) : (
diff --git a/apps/web/core/components/workspace/sidebar/sidebar-item-wrapper.tsx b/apps/web/core/components/workspace/sidebar/sidebar-item-wrapper.tsx deleted file mode 100644 index c6fbc8f9fe..0000000000 --- a/apps/web/core/components/workspace/sidebar/sidebar-item-wrapper.tsx +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -import type { IWorkspaceSidebarNavigationItem } from "@plane/constants"; -import { SidebarItemBase } from "@/components/workspace/sidebar/sidebar-item"; - -type Props = { - item: IWorkspaceSidebarNavigationItem; -}; - -export function SidebarItem({ item }: Props) { - return ; -} diff --git a/apps/web/core/components/workspace/sidebar/sidebar-menu-items.tsx b/apps/web/core/components/workspace/sidebar/sidebar-menu-items.tsx index 3e01b1a0cd..1c38dbdb81 100644 --- a/apps/web/core/components/workspace/sidebar/sidebar-menu-items.tsx +++ b/apps/web/core/components/workspace/sidebar/sidebar-menu-items.tsx @@ -27,8 +27,7 @@ import { usePersonalNavigationPreferences, useWorkspaceNavigationPreferences, } from "@/hooks/use-navigation-preferences"; -// plane-web imports -import { SidebarItem } from "@/components/workspace/sidebar/sidebar-item-wrapper"; +import { SidebarItemBase } from "./sidebar-item"; export const SidebarMenuItems = observer(function SidebarMenuItems() { // routers @@ -100,7 +99,7 @@ export const SidebarMenuItems = observer(function SidebarMenuItems() {
{filteredStaticNavigationItems.map((item, _index) => ( // oxlint-disable-next-line react/no-array-index-key - + ))}
@@ -152,11 +151,11 @@ export const SidebarMenuItems = observer(function SidebarMenuItems() { <> {WORKSPACE_SIDEBAR_STATIC_PINNED_NAVIGATION_ITEMS_LINKS.map((item, _index) => ( // oxlint-disable-next-line react/no-array-index-key - + ))} {sortedNavigationItems.map((item, _index) => ( // oxlint-disable-next-line react/no-array-index-key - + ))}