diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/active-cycles/header.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/active-cycles/header.tsx index 82fe31cce46..baee20f82bb 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/active-cycles/header.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/active-cycles/header.tsx @@ -12,7 +12,7 @@ import { Breadcrumbs, Header } from "@plane/ui"; // components import { BreadcrumbLink } from "@/components/common/breadcrumb-link"; // plane web components -import { UpgradeBadge } from "@/plane-web/components/workspace/upgrade-badge"; +import { UpgradeBadge } from "@/components/workspace/upgrade-badge"; export const WorkspaceActiveCycleHeader = observer(function WorkspaceActiveCycleHeader() { const { t } = useTranslation(); diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/active-cycles/page.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/active-cycles/page.tsx index 222fa03c99e..12e3afe53ca 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/active-cycles/page.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/active-cycles/page.tsx @@ -9,8 +9,8 @@ import { observer } from "mobx-react"; import { PageHead } from "@/components/core/page-title"; // hooks import { useWorkspace } from "@/hooks/store/use-workspace"; -// plane web components -import { WorkspaceActiveCyclesRoot } from "@/plane-web/components/active-cycles"; +// local imports +import { WorkspaceActiveCyclesUpgrade } from "@/components/active-cycles/workspace-active-cycles-upgrade"; function WorkspaceActiveCyclesPage() { const { currentWorkspace } = useWorkspace(); @@ -20,7 +20,7 @@ function WorkspaceActiveCyclesPage() { return ( <> - + ); } diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/analytics/[tabId]/page.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/analytics/[tabId]/page.tsx index 63321351dfe..3d4735b6574 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/analytics/[tabId]/page.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/analytics/[tabId]/page.tsx @@ -21,7 +21,7 @@ import { useCommandPalette } from "@/hooks/store/use-command-palette"; import { useProject } from "@/hooks/store/use-project"; import { useWorkspace } from "@/hooks/store/use-workspace"; import { useUserPermissions } from "@/hooks/store/user"; -import { useAnalyticsTabs } from "@/plane-web/components/analytics/use-analytics-tabs"; +import { useAnalyticsTabs } from "@/components/analytics/use-analytics-tabs"; import type { Route } from "./+types/page"; function AnalyticsPage({ params }: Route.ComponentProps) { diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/browse/[workItem]/page.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/browse/[workItem]/page.tsx index 427e43fc9d4..a644c40b6e6 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/browse/[workItem]/page.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/browse/[workItem]/page.tsx @@ -28,7 +28,7 @@ import { useAppRouter } from "@/hooks/use-app-router"; import { ProjectAuthWrapper } from "@/layouts/auth-layout/project-wrapper"; // plane web imports import { useWorkItemProperties } from "@/hooks/use-issue-properties"; -import { WorkItemDetailRoot } from "@/plane-web/components/browse/workItem-detail"; +import { WorkItemDetailRoot } from "@/components/browse/workItem-detail"; import type { Route } from "./+types/page"; diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/browse/[workItem]/work-item-header.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/browse/[workItem]/work-item-header.tsx index dd7978fe554..f8f18b1fc6f 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/browse/[workItem]/work-item-header.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/browse/[workItem]/work-item-header.tsx @@ -18,7 +18,7 @@ import { useIssueDetail } from "@/hooks/store/use-issue-detail"; import { useProject } from "@/hooks/store/use-project"; import { useAppRouter } from "@/hooks/use-app-router"; // plane web imports -import { CommonProjectBreadcrumbs } from "@/plane-web/components/breadcrumbs/common"; +import { CommonProjectBreadcrumbs } from "@/components/breadcrumbs/common"; export const WorkItemDetailsHeader = observer(function WorkItemDetailsHeader() { // router diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/extended-sidebar.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/extended-sidebar.tsx index 0b8ad77aae3..4235585ec90 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/extended-sidebar.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/extended-sidebar.tsx @@ -15,7 +15,7 @@ import { useAppTheme } from "@/hooks/store/use-app-theme"; import { useUserPermissions } from "@/hooks/store/user"; import { useWorkspaceNavigationPreferences } from "@/hooks/use-navigation-preferences"; // plane-web imports -import { ExtendedSidebarItem } from "@/plane-web/components/workspace/sidebar/extended-sidebar-item"; +import { ExtendedSidebarItem } from "@/components/workspace/sidebar/extended-sidebar-item"; import { ExtendedSidebarWrapper } from "./extended-sidebar-wrapper"; export const ExtendedAppSidebar = observer(function ExtendedAppSidebar() { @@ -34,32 +34,37 @@ export const ExtendedAppSidebar = observer(function ExtendedAppSidebar() { const sortedNavigationItems = useMemo(() => { const slug = workspaceSlug.toString(); - return WORKSPACE_SIDEBAR_DYNAMIC_NAVIGATION_ITEMS_LINKS.filter((item) => { - // Permission check - const hasPermission = allowPermissions(item.access, EUserPermissionsLevel.WORKSPACE, slug); - - return hasPermission; - }) - .map((item) => { - const preference = currentWorkspaceNavigationPreferences?.[item.key]; - return { - ...item, - sort_order: preference?.sort_order ?? 0, - is_pinned: preference?.is_pinned ?? false, - }; + return ( + WORKSPACE_SIDEBAR_DYNAMIC_NAVIGATION_ITEMS_LINKS.filter((item) => { + // Permission check + const hasPermission = allowPermissions(item.access, EUserPermissionsLevel.WORKSPACE, slug); + + return hasPermission; }) - .sort((a, b) => { - // First sort by pinned status (pinned items first) - if (a.is_pinned !== b.is_pinned) { - return b.is_pinned ? 1 : -1; - } - // Then sort by sort_order within each group - return a.sort_order - b.sort_order; - }); + // oxlint-disable-next-line oxc/no-map-spread + .map((item) => { + const preference = currentWorkspaceNavigationPreferences?.[item.key]; + return { + ...item, + sort_order: preference?.sort_order ?? 0, + is_pinned: preference?.is_pinned ?? false, + }; + }) + // oxlint-disable-next-line unicorn/no-array-sort + .sort((a, b) => { + // First sort by pinned status (pinned items first) + if (a.is_pinned !== b.is_pinned) { + return b.is_pinned ? 1 : -1; + } + // Then sort by sort_order within each group + return a.sort_order - b.sort_order; + }) + ); }, [workspaceSlug, currentWorkspaceNavigationPreferences, allowPermissions]); const sortedNavigationItemsKeys = sortedNavigationItems.map((item) => item.key); + // oxlint-disable-next-line unicorn/consistent-function-scoping const orderNavigationItem = ( sourceIndex: number, destinationIndex: number, diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/header.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/header.tsx index f7b5e90e596..c158c18998a 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/header.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/header.tsx @@ -19,7 +19,7 @@ import { useProject } from "@/hooks/store/use-project"; import { useAppRouter } from "@/hooks/use-app-router"; import { usePlatformOS } from "@/hooks/use-platform-os"; // plane web imports -import { CommonProjectBreadcrumbs } from "@/plane-web/components/breadcrumbs/common"; +import { CommonProjectBreadcrumbs } from "@/components/breadcrumbs/common"; type TProps = { activeTab: "issues" | "cycles" | "modules"; diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/issues/(detail)/header.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/issues/(detail)/header.tsx index 4217bae906a..8fb15fe5acf 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/issues/(detail)/header.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/archives/issues/(detail)/header.tsx @@ -18,7 +18,7 @@ import { ISSUE_DETAILS } from "@plane/constants"; // hooks import { useProject } from "@/hooks/store/use-project"; // plane web -import { ProjectBreadcrumb } from "@/plane-web/components/breadcrumbs/project"; +import { ProjectBreadcrumb } from "@/components/breadcrumbs/project"; // services import { IssueService } from "@/services/issue"; diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/header.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/header.tsx index 05f4cca2d0a..c4fe7bba45e 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/header.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/header.tsx @@ -48,7 +48,7 @@ import { useUserPermissions } from "@/hooks/store/user"; import { useAppRouter } from "@/hooks/use-app-router"; import useLocalStorage from "@/hooks/use-local-storage"; // plane web imports -import { CommonProjectBreadcrumbs } from "@/plane-web/components/breadcrumbs/common"; +import { CommonProjectBreadcrumbs } from "@/components/breadcrumbs/common"; export const CycleIssuesHeader = observer(function CycleIssuesHeader() { // refs @@ -75,7 +75,7 @@ export const CycleIssuesHeader = observer(function CycleIssuesHeader() { const { setValue, storedValue } = useLocalStorage("cycle_sidebar_collapsed", false); - const isSidebarCollapsed = storedValue ? (storedValue === true ? true : false) : false; + const isSidebarCollapsed = storedValue === true; const toggleSidebar = () => { setValue(!isSidebarCollapsed); }; diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(list)/header.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(list)/header.tsx index 62cac65eaf9..8f97d3ed9fd 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(list)/header.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(list)/header.tsx @@ -21,7 +21,7 @@ import { useProject } from "@/hooks/store/use-project"; import { useUserPermissions } from "@/hooks/store/user"; import { useAppRouter } from "@/hooks/use-app-router"; // plane web imports -import { CommonProjectBreadcrumbs } from "@/plane-web/components/breadcrumbs/common"; +import { CommonProjectBreadcrumbs } from "@/components/breadcrumbs/common"; export const CyclesListHeader = observer(function CyclesListHeader() { // router diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/intake/layout.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/intake/layout.tsx index 267226e550b..99c88f98e08 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/intake/layout.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/intake/layout.tsx @@ -8,7 +8,7 @@ import { Outlet } from "react-router"; // components import { AppHeader } from "@/components/core/app-header"; import { ContentWrapper } from "@/components/core/content-wrapper"; -import { ProjectInboxHeader } from "@/plane-web/components/projects/settings/intake/header"; +import { ProjectInboxHeader } from "@/components/projects/settings/intake/header"; export default function ProjectInboxIssuesLayout() { return ( diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/header.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/header.tsx index eb82758b1ff..f350dbf87b6 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/header.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/header.tsx @@ -4,7 +4,7 @@ * See the LICENSE file for details. */ -import { IssuesHeader } from "@/plane-web/components/issues/header"; +import { IssuesHeader } from "@/components/issues/header"; export function ProjectIssuesHeader() { return ; diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(detail)/header.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(detail)/header.tsx index 5524626e04d..297d69be5e1 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(detail)/header.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(detail)/header.tsx @@ -47,7 +47,7 @@ import { useIssuesActions } from "@/hooks/use-issues-actions"; import useLocalStorage from "@/hooks/use-local-storage"; import { usePlatformOS } from "@/hooks/use-platform-os"; // plane web imports -import { CommonProjectBreadcrumbs } from "@/plane-web/components/breadcrumbs/common"; +import { CommonProjectBreadcrumbs } from "@/components/breadcrumbs/common"; import { IconButton } from "@plane/propel/icon-button"; export const ModuleIssuesHeader = observer(function ModuleIssuesHeader() { @@ -74,7 +74,7 @@ export const ModuleIssuesHeader = observer(function ModuleIssuesHeader() { // local storage const { setValue, storedValue } = useLocalStorage("module_sidebar_collapsed", "false"); // derived values - const isSidebarCollapsed = storedValue ? (storedValue === "true" ? true : false) : false; + const isSidebarCollapsed = storedValue ? storedValue === "true" : false; const activeLayout = issueFilters?.displayFilters?.layout; const moduleDetails = moduleId ? getModuleById(moduleId) : undefined; const canUserCreateIssue = allowPermissions( diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/header.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/header.tsx index 67688828b7a..7e2f7dea742 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/header.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/modules/(list)/header.tsx @@ -22,7 +22,7 @@ import { useProject } from "@/hooks/store/use-project"; import { useUserPermissions } from "@/hooks/store/user"; import { useAppRouter } from "@/hooks/use-app-router"; // plane web imports -import { CommonProjectBreadcrumbs } from "@/plane-web/components/breadcrumbs/common"; +import { CommonProjectBreadcrumbs } from "@/components/breadcrumbs/common"; export const ModulesListHeader = observer(function ModulesListHeader() { // router diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(detail)/header.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(detail)/header.tsx index 0d2b77e94d6..f43c36accc8 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(detail)/header.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(detail)/header.tsx @@ -17,12 +17,10 @@ import { PageAccessIcon } from "@/components/common/page-access-icon"; import { SwitcherIcon, SwitcherLabel } from "@/components/common/switcher-label"; import { PageHeaderActions } from "@/components/pages/header/actions"; import { PageSyncingBadge } from "@/components/pages/header/syncing-badge"; +import { CommonProjectBreadcrumbs } from "@/components/breadcrumbs/common"; // hooks import { useProject } from "@/hooks/store/use-project"; import { useAppRouter } from "@/hooks/use-app-router"; -// plane web imports -import { CommonProjectBreadcrumbs } from "@/plane-web/components/breadcrumbs/common"; -import { PageDetailsHeaderExtraActions } from "@/plane-web/components/pages"; import { EPageStoreType, usePage, usePageStore } from "@/hooks/store"; export interface IPagesHeaderProps { @@ -103,7 +101,6 @@ export const PageDetailsHeader = observer(function PageDetailsHeader() { - diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/header.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/header.tsx index 3ff73641616..a26a539dd64 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/header.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(list)/header.tsx @@ -21,7 +21,7 @@ import { BreadcrumbLink } from "@/components/common/breadcrumb-link"; // hooks import { useProject } from "@/hooks/store/use-project"; // plane web imports -import { CommonProjectBreadcrumbs } from "@/plane-web/components/breadcrumbs/common"; +import { CommonProjectBreadcrumbs } from "@/components/breadcrumbs/common"; import { EPageStoreType, usePageStore } from "@/hooks/store"; export const PagesListHeader = observer(function PagesListHeader() { @@ -44,6 +44,7 @@ export const PagesListHeader = observer(function PagesListHeader() { }; await createPage(payload) + // oxlint-disable-next-line promise/always-return .then((res) => { const pageId = `/${workspaceSlug}/projects/${currentProjectDetails?.id}/pages/${res?.id}`; router.push(pageId); diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(detail)/[viewId]/header.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(detail)/[viewId]/header.tsx index 3393257eeb0..7dfc3d15e1a 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(detail)/[viewId]/header.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(detail)/[viewId]/header.tsx @@ -36,7 +36,7 @@ import { useProjectView } from "@/hooks/store/use-project-view"; import { useUserPermissions } from "@/hooks/store/user"; import { useAppRouter } from "@/hooks/use-app-router"; // plane web imports -import { CommonProjectBreadcrumbs } from "@/plane-web/components/breadcrumbs/common"; +import { CommonProjectBreadcrumbs } from "@/components/breadcrumbs/common"; export const ProjectViewIssuesHeader = observer(function ProjectViewIssuesHeader() { // refs diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(list)/header.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(list)/header.tsx index 4cf703cc928..2cc0c0b9ce8 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(list)/header.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/views/(list)/header.tsx @@ -18,7 +18,7 @@ import { ViewListHeader } from "@/components/views/view-list-header"; import { useCommandPalette } from "@/hooks/store/use-command-palette"; import { useProject } from "@/hooks/store/use-project"; // plane web imports -import { CommonProjectBreadcrumbs } from "@/plane-web/components/breadcrumbs/common"; +import { CommonProjectBreadcrumbs } from "@/components/breadcrumbs/common"; export const ProjectViewsHeader = observer(function ProjectViewsHeader() { const { workspaceSlug, projectId } = useParams(); diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/archives/layout.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/archives/layout.tsx index 1e81fe89e23..219d9dbc0cf 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/archives/layout.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/archives/layout.tsx @@ -8,14 +8,13 @@ import { Outlet } from "react-router"; import { AppHeader } from "@/components/core/app-header"; import { ContentWrapper } from "@/components/core/content-wrapper"; -// local components -import { ProjectsListHeader } from "@/plane-web/components/projects/header"; -import { ProjectsListMobileHeader } from "@/plane-web/components/projects/mobile-header"; +import { ProjectsListMobileHeader } from "@/components/projects/mobile-header"; +import { ProjectsBaseHeader } from "@/components/project/header"; export default function ProjectListLayout() { return ( <> - } mobileHeader={} /> + } mobileHeader={} /> diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/archives/page.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/archives/page.tsx index 3706d803086..70a471fad2d 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/archives/page.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(detail)/archives/page.tsx @@ -4,7 +4,7 @@ * See the LICENSE file for details. */ -import { ProjectPageRoot } from "@/plane-web/components/projects/page"; +import { ProjectPageRoot } from "@/components/projects/page"; function ProjectsPage() { return ; diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(list)/layout.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(list)/layout.tsx index 53308d88f58..0f39520b294 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(list)/layout.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(list)/layout.tsx @@ -8,14 +8,13 @@ import { Outlet } from "react-router"; // components import { AppHeader } from "@/components/core/app-header"; import { ContentWrapper } from "@/components/core/content-wrapper"; -// local components -import { ProjectsListHeader } from "@/plane-web/components/projects/header"; -import { ProjectsListMobileHeader } from "@/plane-web/components/projects/mobile-header"; +import { ProjectsListMobileHeader } from "@/components/projects/mobile-header"; +import { ProjectsBaseHeader } from "@/components/project/header"; export default function ProjectListLayout() { return ( <> - } mobileHeader={} /> + } mobileHeader={} /> diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(list)/page.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(list)/page.tsx index 3706d803086..70a471fad2d 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(list)/page.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/projects/(list)/page.tsx @@ -4,7 +4,7 @@ * See the LICENSE file for details. */ -import { ProjectPageRoot } from "@/plane-web/components/projects/page"; +import { ProjectPageRoot } from "@/components/projects/page"; function ProjectsPage() { return ; diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/sidebar.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/sidebar.tsx index c529c4efe9f..c94b1090cdd 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/sidebar.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/sidebar.tsx @@ -17,8 +17,6 @@ import { SidebarMenuItems } from "@/components/workspace/sidebar/sidebar-menu-it // hooks import { useFavorite } from "@/hooks/store/use-favorite"; import { useUserPermissions } from "@/hooks/store/user"; -// plane web components -import { SidebarTeamsList } from "@/plane-web/components/workspace/sidebar/teams-sidebar-list"; export const AppSidebar = observer(function AppSidebar() { // store hooks @@ -38,8 +36,6 @@ export const AppSidebar = observer(function AppSidebar() { {/* Favorites Menu */} {canPerformWorkspaceMemberActions && !isFavoriteEmpty && } - {/* Teams List */} - {/* Projects List */} diff --git a/apps/web/app/(all)/[workspaceSlug]/(projects)/workspace-views/header.tsx b/apps/web/app/(all)/[workspaceSlug]/(projects)/workspace-views/header.tsx index 0c6ebe30954..07f8ee9d9e4 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(projects)/workspace-views/header.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(projects)/workspace-views/header.tsx @@ -32,7 +32,6 @@ import { WorkspaceViewQuickActions } from "@/components/workspace/views/quick-ac import { useGlobalView } from "@/hooks/store/use-global-view"; import { useIssues } from "@/hooks/store/use-issues"; import { useAppRouter } from "@/hooks/use-app-router"; -import { GlobalViewLayoutSelection } from "@/plane-web/components/views/helper"; export const GlobalIssuesHeader = observer(function GlobalIssuesHeader() { // states @@ -75,20 +74,6 @@ export const GlobalIssuesHeader = observer(function GlobalIssuesHeader() { [workspaceSlug, updateFilters, globalViewId] ); - const handleLayoutChange = useCallback( - (layout: EIssueLayoutTypes) => { - if (!workspaceSlug || !globalViewId) return; - updateFilters( - workspaceSlug.toString(), - undefined, - EIssueFilterType.DISPLAY_FILTERS, - { layout: layout }, - globalViewId - ); - }, - [workspaceSlug, updateFilters, globalViewId] - ); - const isLocked = viewDetails?.is_locked; const isDefaultView = DEFAULT_GLOBAL_VIEWS_LIST.find((view) => view.key === globalViewId); @@ -151,13 +136,6 @@ export const GlobalIssuesHeader = observer(function GlobalIssuesHeader() { - {!isLocked && ( - - )} {globalViewId && } {!isLocked && ( diff --git a/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/(workspace)/billing/page.tsx b/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/(workspace)/billing/page.tsx index 85d59618f15..3f9383f960d 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/(workspace)/billing/page.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/(workspace)/billing/page.tsx @@ -13,10 +13,9 @@ import { SettingsContentWrapper } from "@/components/settings/content-wrapper"; // hooks import { useWorkspace } from "@/hooks/store/use-workspace"; import { useUserPermissions } from "@/hooks/store/user"; -// plane web components -import { BillingRoot } from "@/plane-web/components/workspace/billing"; // local imports import { BillingWorkspaceSettingsHeader } from "./header"; +import { BillingRoot } from "@/components/workspace/billing"; function BillingSettingsPage() { // store hooks diff --git a/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/(workspace)/members/page.tsx b/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/(workspace)/members/page.tsx index 1e09ef32b11..0c7ea4e12a8 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/(workspace)/members/page.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/(workspace)/members/page.tsx @@ -20,14 +20,12 @@ import { CountChip } from "@/components/common/count-chip"; import { PageHead } from "@/components/core/page-title"; import { MemberListFiltersDropdown } from "@/components/project/dropdowns/filters/member-list"; import { WorkspaceMembersList } from "@/components/workspace/settings/members-list"; +import { SettingsContentWrapper } from "@/components/settings/content-wrapper"; +import { SendWorkspaceInvitationModal } from "@/components/workspace/members"; // hooks import { useMember } from "@/hooks/store/use-member"; import { useWorkspace } from "@/hooks/store/use-workspace"; import { useUserPermissions } from "@/hooks/store/user"; -// plane web components -import { BillingActionsButton } from "@/plane-web/components/workspace/billing/billing-actions-button"; -import { SendWorkspaceInvitationModal, MembersActivityButton } from "@/plane-web/components/workspace/members"; -import { SettingsContentWrapper } from "@/components/settings/content-wrapper"; // local imports import type { Route } from "./+types/page"; import { MembersWorkspaceSettingsHeader } from "./header"; @@ -137,13 +135,11 @@ const WorkspaceMembersSettingsPage = observer(function WorkspaceMembersSettingsP handleUpdate={handleRoleFilterUpdate} memberType="workspace" /> - {canPerformWorkspaceAdminActions && ( )} - diff --git a/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/projects/[projectId]/automations/layout.tsx b/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/projects/[projectId]/automations/layout.tsx index a4d766c5391..d2be455ea27 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/projects/[projectId]/automations/layout.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/projects/[projectId]/automations/layout.tsx @@ -6,18 +6,9 @@ import { observer } from "mobx-react"; import { Outlet } from "react-router"; -// plane web imports -import { AutomationsListWrapper } from "@/plane-web/components/automations/list/wrapper"; -import type { Route } from "./+types/layout"; -function AutomationsListLayout({ params }: Route.ComponentProps) { - const { projectId, workspaceSlug } = params; - - return ( - - - - ); +function AutomationsListLayout() { + return ; } export default observer(AutomationsListLayout); diff --git a/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/projects/[projectId]/automations/page.tsx b/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/projects/[projectId]/automations/page.tsx index b591e91b1a7..3a8b98631c8 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/projects/[projectId]/automations/page.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/projects/[projectId]/automations/page.tsx @@ -18,8 +18,6 @@ import { SettingsHeading } from "@/components/settings/heading"; // hooks import { useProject } from "@/hooks/store/use-project"; import { useUserPermissions } from "@/hooks/store/user"; -// plane web imports -import { CustomAutomationsRoot } from "@/plane-web/components/automations/root"; // local imports import type { Route } from "./+types/page"; import { AutomationsProjectSettingsHeader } from "./header"; @@ -70,7 +68,6 @@ function AutomationSettingsPage({ params }: Route.ComponentProps) { - ); } diff --git a/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/projects/[projectId]/members/page.tsx b/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/projects/[projectId]/members/page.tsx index 61abee5ff22..7df00fc5265 100644 --- a/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/projects/[projectId]/members/page.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/(settings)/settings/projects/[projectId]/members/page.tsx @@ -18,8 +18,6 @@ import { SettingsHeading } from "@/components/settings/heading"; // hooks import { useProject } from "@/hooks/store/use-project"; import { useUserPermissions } from "@/hooks/store/user"; -// plane web imports -import { ProjectTeamspaceList } from "@/plane-web/components/projects/teamspaces/teamspace-list"; // local imports import type { Route } from "./+types/page"; import { MembersProjectSettingsHeader } from "./header"; @@ -50,7 +48,6 @@ function MembersSettingsPage({ params }: Route.ComponentProps) { - ); diff --git a/apps/web/app/(all)/[workspaceSlug]/layout.tsx b/apps/web/app/(all)/[workspaceSlug]/layout.tsx index f093efe76d7..1c295eeee70 100644 --- a/apps/web/app/(all)/[workspaceSlug]/layout.tsx +++ b/apps/web/app/(all)/[workspaceSlug]/layout.tsx @@ -6,9 +6,9 @@ import { Outlet } from "react-router"; import { AuthenticationWrapper } from "@/lib/wrappers/authentication-wrapper"; -import { WorkspaceContentWrapper } from "@/plane-web/components/workspace/content-wrapper"; +import { WorkspaceContentWrapper } from "@/components/workspace/content-wrapper"; import { AppRailVisibilityProvider } from "@/lib/app-rail"; -import { GlobalModals } from "@/plane-web/components/common/modal/global"; +import { GlobalModals } from "@/components/common/modal/global"; import { WorkspaceAuthWrapper } from "@/layouts/auth-layout/workspace-wrapper"; import type { Route } from "./+types/layout"; diff --git a/apps/web/ce/components/active-cycles/root.tsx b/apps/web/ce/components/active-cycles/root.tsx deleted file mode 100644 index 81805656b30..00000000000 --- a/apps/web/ce/components/active-cycles/root.tsx +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// local imports -import { WorkspaceActiveCyclesUpgrade } from "./workspace-active-cycles-upgrade"; - -export function WorkspaceActiveCyclesRoot() { - return ; -} diff --git a/apps/web/ce/components/app-rail/index.ts b/apps/web/ce/components/app-rail/index.ts deleted file mode 100644 index 8b6ba42a4ce..00000000000 --- a/apps/web/ce/components/app-rail/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./app-rail-hoc"; diff --git a/apps/web/ce/components/automations/list/wrapper.tsx b/apps/web/ce/components/automations/list/wrapper.tsx deleted file mode 100644 index f884b403fde..00000000000 --- a/apps/web/ce/components/automations/list/wrapper.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -type Props = { - projectId: string; - workspaceSlug: string; - children: React.ReactNode; -}; - -export function AutomationsListWrapper(props: Props) { - return <>{props.children}; -} diff --git a/apps/web/ce/components/automations/root.tsx b/apps/web/ce/components/automations/root.tsx deleted file mode 100644 index 1baeeb8b0b2..00000000000 --- a/apps/web/ce/components/automations/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 React from "react"; - -export type TCustomAutomationsRootProps = { - projectId: string; - workspaceSlug: string; -}; - -export function CustomAutomationsRoot(_props: TCustomAutomationsRootProps) { - return <>; -} diff --git a/apps/web/ce/components/breadcrumbs/project-feature.tsx b/apps/web/ce/components/breadcrumbs/project-feature.tsx deleted file mode 100644 index 4b076a7abd4..00000000000 --- a/apps/web/ce/components/breadcrumbs/project-feature.tsx +++ /dev/null @@ -1,66 +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 { ReactNode } from "react"; -import { observer } from "mobx-react"; -// plane imports -import type { EProjectFeatureKey } from "@plane/constants"; -import { Breadcrumbs } from "@plane/ui"; -// components -import { BreadcrumbLink } from "@/components/common/breadcrumb-link"; -import type { TNavigationItem } from "@/components/workspace/sidebar/project-navigation"; -// hooks -import { useProject } from "@/hooks/store/use-project"; -// local imports -import { getProjectFeatureNavigation } from "../projects/navigation/helper"; - -type TProjectFeatureBreadcrumbProps = { - workspaceSlug: string; - projectId: string; - featureKey: EProjectFeatureKey; - isLast?: boolean; - additionalNavigationItems?: TNavigationItem[]; -}; - -export const ProjectFeatureBreadcrumb = observer(function ProjectFeatureBreadcrumb( - props: TProjectFeatureBreadcrumbProps -) { - const { workspaceSlug, projectId, featureKey, isLast = false, additionalNavigationItems } = props; - // store hooks - const { getPartialProjectById } = useProject(); - // derived values - const project = getPartialProjectById(projectId); - - if (!project) return null; - - const navigationItems = getProjectFeatureNavigation(workspaceSlug, projectId, project); - - // if additional navigation items are provided, add them to the navigation items - const allNavigationItems = [...(additionalNavigationItems || []), ...navigationItems]; - - const currentNavigationItem = allNavigationItems.find((item) => item.key === featureKey); - const icon = currentNavigationItem?.icon as ReactNode; - const name = currentNavigationItem?.name; - const href = currentNavigationItem?.href; - - return ( - <> - {icon}} - /> - } - showSeparator={false} - isLast={isLast} - /> - - ); -}); diff --git a/apps/web/ce/components/command-palette/actions/index.ts b/apps/web/ce/components/command-palette/actions/index.ts deleted file mode 100644 index a6961e23876..00000000000 --- a/apps/web/ce/components/command-palette/actions/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./work-item-actions"; diff --git a/apps/web/ce/components/command-palette/actions/work-item-actions/change-state-list.tsx b/apps/web/ce/components/command-palette/actions/work-item-actions/change-state-list.tsx deleted file mode 100644 index 69e4aed88e3..00000000000 --- a/apps/web/ce/components/command-palette/actions/work-item-actions/change-state-list.tsx +++ /dev/null @@ -1,55 +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 { Command } from "cmdk"; -import { observer } from "mobx-react"; -import { EIconSize } from "@plane/constants"; -// plane imports -import { CheckIcon, StateGroupIcon } from "@plane/propel/icons"; -import { Spinner } from "@plane/ui"; -// store hooks -import { useProjectState } from "@/hooks/store/use-project-state"; - -export type TChangeWorkItemStateListProps = { - projectId: string | null; - currentStateId: string | null; - handleStateChange: (stateId: string) => void; -}; - -export const ChangeWorkItemStateList = observer(function ChangeWorkItemStateList(props: TChangeWorkItemStateListProps) { - const { projectId, currentStateId, handleStateChange } = props; - // store hooks - const { getProjectStates } = useProjectState(); - // derived values - const projectStates = getProjectStates(projectId); - - return ( - <> - {projectStates ? ( - projectStates.length > 0 ? ( - projectStates.map((state) => ( - handleStateChange(state.id)} className="focus:outline-none"> -
- -

{state.name}

-
-
{state.id === currentStateId && }
-
- )) - ) : ( -
No states found
- ) - ) : ( - - )} - - ); -}); diff --git a/apps/web/ce/components/command-palette/helpers.tsx b/apps/web/ce/components/command-palette/helpers.tsx deleted file mode 100644 index d691579226b..00000000000 --- a/apps/web/ce/components/command-palette/helpers.tsx +++ /dev/null @@ -1,116 +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 { LayoutGrid } from "lucide-react"; -// plane imports -import { CycleIcon, ModuleIcon, PageIcon, ProjectIcon, ViewsIcon } from "@plane/propel/icons"; -import type { - IWorkspaceDefaultSearchResult, - IWorkspaceIssueSearchResult, - IWorkspacePageSearchResult, - IWorkspaceProjectSearchResult, - IWorkspaceSearchResult, -} from "@plane/types"; -import { generateWorkItemLink } from "@plane/utils"; -// plane web components -import { IssueIdentifier } from "@/plane-web/components/issues/issue-details/issue-identifier"; - -export type TCommandGroups = { - [key: string]: { - icon: React.ReactNode | null; - itemName: (item: any) => React.ReactNode; - path: (item: any, projectId: string | undefined) => string; - title: string; - }; -}; - -export const commandGroups: TCommandGroups = { - cycle: { - icon: , - itemName: (cycle: IWorkspaceDefaultSearchResult) => ( -
- {cycle.project__identifier} {cycle.name} -
- ), - path: (cycle: IWorkspaceDefaultSearchResult) => - `/${cycle?.workspace__slug}/projects/${cycle?.project_id}/cycles/${cycle?.id}`, - title: "Cycles", - }, - issue: { - icon: null, - itemName: (issue: IWorkspaceIssueSearchResult) => ( -
- {" "} - {issue.name} -
- ), - path: (issue: IWorkspaceIssueSearchResult) => - generateWorkItemLink({ - workspaceSlug: issue?.workspace__slug, - projectId: issue?.project_id, - issueId: issue?.id, - projectIdentifier: issue.project__identifier, - sequenceId: issue?.sequence_id, - }), - title: "Work items", - }, - issue_view: { - icon: , - itemName: (view: IWorkspaceDefaultSearchResult) => ( -
- {view.project__identifier} {view.name} -
- ), - path: (view: IWorkspaceDefaultSearchResult) => - `/${view?.workspace__slug}/projects/${view?.project_id}/views/${view?.id}`, - title: "Views", - }, - module: { - icon: , - itemName: (module: IWorkspaceDefaultSearchResult) => ( -
- {module.project__identifier} {module.name} -
- ), - path: (module: IWorkspaceDefaultSearchResult) => - `/${module?.workspace__slug}/projects/${module?.project_id}/modules/${module?.id}`, - title: "Modules", - }, - page: { - icon: , - itemName: (page: IWorkspacePageSearchResult) => ( -
- {page.project__identifiers?.[0]} {page.name} -
- ), - path: (page: IWorkspacePageSearchResult, projectId: string | undefined) => { - let redirectProjectId = page?.project_ids?.[0]; - if (!!projectId && page?.project_ids?.includes(projectId)) redirectProjectId = projectId; - return redirectProjectId - ? `/${page?.workspace__slug}/projects/${redirectProjectId}/pages/${page?.id}` - : `/${page?.workspace__slug}/wiki/${page?.id}`; - }, - title: "Pages", - }, - project: { - icon: , - itemName: (project: IWorkspaceProjectSearchResult) => project?.name, - path: (project: IWorkspaceProjectSearchResult) => `/${project?.workspace__slug}/projects/${project?.id}/issues/`, - title: "Projects", - }, - workspace: { - icon: , - itemName: (workspace: IWorkspaceSearchResult) => workspace?.name, - path: (workspace: IWorkspaceSearchResult) => `/${workspace?.slug}/`, - title: "Workspaces", - }, -}; diff --git a/apps/web/ce/components/command-palette/index.ts b/apps/web/ce/components/command-palette/index.ts deleted file mode 100644 index 128f77fb157..00000000000 --- a/apps/web/ce/components/command-palette/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./actions"; -export * from "./helpers"; diff --git a/apps/web/ce/components/command-palette/power-k/constants.ts b/apps/web/ce/components/command-palette/power-k/constants.ts deleted file mode 100644 index 870a4f46ba6..00000000000 --- a/apps/web/ce/components/command-palette/power-k/constants.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// core -import type { TPowerKModalPageDetails } from "@/components/power-k/ui/modal/constants"; -// local imports -import type { TPowerKPageTypeExtended } from "./types"; - -export const POWER_K_MODAL_PAGE_DETAILS_EXTENDED: Record = {}; diff --git a/apps/web/ce/components/command-palette/power-k/context-detector.ts b/apps/web/ce/components/command-palette/power-k/context-detector.ts deleted file mode 100644 index 42dcc201a4b..00000000000 --- a/apps/web/ce/components/command-palette/power-k/context-detector.ts +++ /dev/null @@ -1,11 +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 { Params } from "react-router"; -// local imports -import type { TPowerKContextTypeExtended } from "./types"; - -export const detectExtendedContextFromURL = (_params: Params): TPowerKContextTypeExtended | null => null; diff --git a/apps/web/ce/components/command-palette/power-k/hooks/use-extended-context-indicator.ts b/apps/web/ce/components/command-palette/power-k/hooks/use-extended-context-indicator.ts deleted file mode 100644 index e24bc08aa1c..00000000000 --- a/apps/web/ce/components/command-palette/power-k/hooks/use-extended-context-indicator.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// local imports -import type { TPowerKContextType } from "@/components/power-k/core/types"; - -type TArgs = { - activeContext: TPowerKContextType | null; -}; - -export const useExtendedContextIndicator = (_args: TArgs): string | null => null; diff --git a/apps/web/ce/components/command-palette/power-k/pages/context-based/root.tsx b/apps/web/ce/components/command-palette/power-k/pages/context-based/root.tsx deleted file mode 100644 index 1cac3d3f0cf..00000000000 --- a/apps/web/ce/components/command-palette/power-k/pages/context-based/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. - */ - -// components -import type { TPowerKCommandConfig } from "@/components/power-k/core/types"; -import type { ContextBasedActionsProps, TContextEntityMap } from "@/components/power-k/ui/pages/context-based"; -// local imports -import type { TPowerKContextTypeExtended } from "../../types"; - -export const CONTEXT_ENTITY_MAP_EXTENDED: Record = {}; - -export function PowerKContextBasedActionsExtended(_props: ContextBasedActionsProps) { - return null; -} - -export const usePowerKContextBasedExtendedActions = (): TPowerKCommandConfig[] => []; diff --git a/apps/web/ce/components/command-palette/power-k/search/search-results-map.tsx b/apps/web/ce/components/command-palette/power-k/search/search-results-map.tsx deleted file mode 100644 index c137f6f779b..00000000000 --- a/apps/web/ce/components/command-palette/power-k/search/search-results-map.tsx +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// components -import type { TPowerKSearchResultGroupDetails } from "@/components/power-k/ui/modal/search-results-map"; -// local imports -import type { TPowerKSearchResultsKeysExtended } from "../types"; - -type TSearchResultsGroupsMapExtended = Record; - -export const SEARCH_RESULTS_GROUPS_MAP_EXTENDED: TSearchResultsGroupsMapExtended = {}; diff --git a/apps/web/ce/components/command-palette/power-k/types.ts b/apps/web/ce/components/command-palette/power-k/types.ts deleted file mode 100644 index 9d0086f70f9..00000000000 --- a/apps/web/ce/components/command-palette/power-k/types.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export type TPowerKContextTypeExtended = never; - -export type TPowerKPageTypeExtended = never; - -export type TPowerKSearchResultsKeysExtended = never; diff --git a/apps/web/ce/components/comments/index.ts b/apps/web/ce/components/comments/index.ts deleted file mode 100644 index 3bbc477fb93..00000000000 --- a/apps/web/ce/components/comments/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./comment-block"; -export { CommentCardDisplay } from "@/components/comments/card/display"; diff --git a/apps/web/ce/components/common/quick-actions-factory.tsx b/apps/web/ce/components/common/quick-actions-factory.tsx deleted file mode 100644 index 9f94c8ddf15..00000000000 --- a/apps/web/ce/components/common/quick-actions-factory.tsx +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export { useQuickActionsFactory } from "@/components/common/quick-actions-factory"; diff --git a/apps/web/ce/components/common/subscription/subscription-pill.tsx b/apps/web/ce/components/common/subscription/subscription-pill.tsx deleted file mode 100644 index 89efebe83be..00000000000 --- a/apps/web/ce/components/common/subscription/subscription-pill.tsx +++ /dev/null @@ -1,15 +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 { IWorkspace } from "@plane/types"; - -type TProps = { - workspace?: IWorkspace; -}; - -export function SubscriptionPill(_props: TProps) { - return <>; -} diff --git a/apps/web/ce/components/cycles/active-cycle/index.ts b/apps/web/ce/components/cycles/active-cycle/index.ts deleted file mode 100644 index d980334597b..00000000000 --- a/apps/web/ce/components/cycles/active-cycle/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./root"; diff --git a/apps/web/ce/components/cycles/additional-actions.tsx b/apps/web/ce/components/cycles/additional-actions.tsx deleted file mode 100644 index 45bc7b5cd58..00000000000 --- a/apps/web/ce/components/cycles/additional-actions.tsx +++ /dev/null @@ -1,14 +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 { observer } from "mobx-react"; -type Props = { - cycleId: string; - projectId: string; -}; -export const CycleAdditionalActions = observer(function CycleAdditionalActions(_props: Props) { - return <>; -}); diff --git a/apps/web/ce/components/cycles/analytics-sidebar/root.tsx b/apps/web/ce/components/cycles/analytics-sidebar/root.tsx deleted file mode 100644 index 17501e01d8a..00000000000 --- a/apps/web/ce/components/cycles/analytics-sidebar/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 "./base"; - -type Props = { - workspaceSlug: string; - projectId: string; - cycleId: string; -}; - -export function SidebarChartRoot(props: Props) { - return ; -} diff --git a/apps/web/ce/components/cycles/end-cycle/modal.tsx b/apps/web/ce/components/cycles/end-cycle/modal.tsx deleted file mode 100644 index 98c906942be..00000000000 --- a/apps/web/ce/components/cycles/end-cycle/modal.tsx +++ /dev/null @@ -1,21 +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"; - -interface Props { - isOpen: boolean; - handleClose: () => void; - cycleId: string; - projectId: string; - workspaceSlug: string; - transferrableIssuesCount: number; - cycleName: string; -} - -export function EndCycleModal(_props: Props) { - return <>; -} diff --git a/apps/web/ce/components/cycles/index.ts b/apps/web/ce/components/cycles/index.ts deleted file mode 100644 index defcd502a93..00000000000 --- a/apps/web/ce/components/cycles/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./active-cycle"; -export * from "./analytics-sidebar"; -export * from "./additional-actions"; -export * from "./end-cycle"; diff --git a/apps/web/ce/components/de-dupe/de-dupe-button.tsx b/apps/web/ce/components/de-dupe/de-dupe-button.tsx deleted file mode 100644 index cfeeeb82ad7..00000000000 --- a/apps/web/ce/components/de-dupe/de-dupe-button.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"; -// local components - -type TDeDupeButtonRoot = { - workspaceSlug: string; - isDuplicateModalOpen: boolean; - handleOnClick: () => void; - label: string; -}; - -export function DeDupeButtonRoot(_props: TDeDupeButtonRoot) { - return <>; -} diff --git a/apps/web/ce/components/de-dupe/duplicate-modal/index.ts b/apps/web/ce/components/de-dupe/duplicate-modal/index.ts deleted file mode 100644 index d980334597b..00000000000 --- a/apps/web/ce/components/de-dupe/duplicate-modal/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./root"; diff --git a/apps/web/ce/components/de-dupe/duplicate-modal/root.tsx b/apps/web/ce/components/de-dupe/duplicate-modal/root.tsx deleted file mode 100644 index 4afbdeca089..00000000000 --- a/apps/web/ce/components/de-dupe/duplicate-modal/root.tsx +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// types -import type { TDeDupeIssue } from "@plane/types"; - -type TDuplicateModalRootProps = { - workspaceSlug: string; - issues: TDeDupeIssue[]; - handleDuplicateIssueModal: (value: boolean) => void; -}; - -export function DuplicateModalRoot(_props: TDuplicateModalRootProps) { - return <>; -} diff --git a/apps/web/ce/components/de-dupe/duplicate-popover/index.ts b/apps/web/ce/components/de-dupe/duplicate-popover/index.ts deleted file mode 100644 index d980334597b..00000000000 --- a/apps/web/ce/components/de-dupe/duplicate-popover/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./root"; diff --git a/apps/web/ce/components/de-dupe/duplicate-popover/root.tsx b/apps/web/ce/components/de-dupe/duplicate-popover/root.tsx deleted file mode 100644 index 146d6b4bc88..00000000000 --- a/apps/web/ce/components/de-dupe/duplicate-popover/root.tsx +++ /dev/null @@ -1,27 +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"; -import { observer } from "mobx-react"; -// types -import type { TDeDupeIssue } from "@plane/types"; -import type { TIssueOperations } from "@/components/issues/issue-detail"; - -type TDeDupeIssuePopoverRootProps = { - workspaceSlug: string; - projectId: string; - rootIssueId: string; - issues: TDeDupeIssue[]; - issueOperations: TIssueOperations; - disabled?: boolean; - renderDeDupeActionModals?: boolean; - isIntakeIssue?: boolean; -}; - -export const DeDupeIssuePopoverRoot = observer(function DeDupeIssuePopoverRoot(props: TDeDupeIssuePopoverRootProps) { - const {} = props; - return <>; -}); diff --git a/apps/web/ce/components/de-dupe/issue-block/button-label.tsx b/apps/web/ce/components/de-dupe/issue-block/button-label.tsx deleted file mode 100644 index ae89c7797fb..00000000000 --- a/apps/web/ce/components/de-dupe/issue-block/button-label.tsx +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -type TDeDupeIssueButtonLabelProps = { - isOpen: boolean; - buttonLabel: string; -}; - -export function DeDupeIssueButtonLabel(_props: TDeDupeIssueButtonLabelProps) { - return <>; -} diff --git a/apps/web/ce/components/desktop/helper.ts b/apps/web/ce/components/desktop/helper.ts deleted file mode 100644 index cae74441f4e..00000000000 --- a/apps/web/ce/components/desktop/helper.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export const isSidebarToggleVisible = () => true; diff --git a/apps/web/ce/components/desktop/index.ts b/apps/web/ce/components/desktop/index.ts deleted file mode 100644 index 8b7f5878ecc..00000000000 --- a/apps/web/ce/components/desktop/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./helper"; -export * from "./sidebar-workspace-menu"; diff --git a/apps/web/ce/components/desktop/sidebar-workspace-menu.tsx b/apps/web/ce/components/desktop/sidebar-workspace-menu.tsx deleted file mode 100644 index 9dadb9ef2e3..00000000000 --- a/apps/web/ce/components/desktop/sidebar-workspace-menu.tsx +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export function DesktopSidebarWorkspaceMenu() { - return null; -} diff --git a/apps/web/ce/components/editor/embeds/mentions/index.ts b/apps/web/ce/components/editor/embeds/mentions/index.ts deleted file mode 100644 index d980334597b..00000000000 --- a/apps/web/ce/components/editor/embeds/mentions/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./root"; diff --git a/apps/web/ce/components/editor/embeds/mentions/root.tsx b/apps/web/ce/components/editor/embeds/mentions/root.tsx deleted file mode 100644 index 21802e0a6dd..00000000000 --- a/apps/web/ce/components/editor/embeds/mentions/root.tsx +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// plane imports -import type { TCallbackMentionComponentProps } from "@plane/editor"; - -export type TEditorMentionComponentProps = TCallbackMentionComponentProps; - -export function EditorAdditionalMentionsRoot(_props: TEditorMentionComponentProps) { - return null; -} diff --git a/apps/web/ce/components/epics/epic-modal/index.ts b/apps/web/ce/components/epics/epic-modal/index.ts deleted file mode 100644 index dd65a9ec347..00000000000 --- a/apps/web/ce/components/epics/epic-modal/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./modal"; diff --git a/apps/web/ce/components/estimates/index.ts b/apps/web/ce/components/estimates/index.ts deleted file mode 100644 index 7fd8f88cfd0..00000000000 --- a/apps/web/ce/components/estimates/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./estimate-list-item-buttons"; -export * from "./update"; -export * from "./points"; -export * from "./helper"; diff --git a/apps/web/ce/components/estimates/inputs/index.ts b/apps/web/ce/components/estimates/inputs/index.ts deleted file mode 100644 index 778cadf32fb..00000000000 --- a/apps/web/ce/components/estimates/inputs/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./time-input"; diff --git a/apps/web/ce/components/estimates/inputs/time-input.tsx b/apps/web/ce/components/estimates/inputs/time-input.tsx deleted file mode 100644 index 6eadf418380..00000000000 --- a/apps/web/ce/components/estimates/inputs/time-input.tsx +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export type TEstimateTimeInputProps = { - value?: number; - handleEstimateInputValue: (value: string) => void; -}; - -export function EstimateTimeInput(_props: TEstimateTimeInputProps) { - return <>; -} diff --git a/apps/web/ce/components/estimates/points/delete.tsx b/apps/web/ce/components/estimates/points/delete.tsx deleted file mode 100644 index c64ee12c1ae..00000000000 --- a/apps/web/ce/components/estimates/points/delete.tsx +++ /dev/null @@ -1,23 +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 { TEstimatePointsObject, TEstimateSystemKeys, TEstimateTypeErrorObject } from "@plane/types"; - -export type TEstimatePointDelete = { - workspaceSlug: string; - projectId: string; - estimateId: string; - estimatePointId: string; - estimatePoints: TEstimatePointsObject[]; - callback: () => void; - estimatePointError?: TEstimateTypeErrorObject | undefined; - handleEstimatePointError?: (newValue: string, message: string | undefined, mode?: "add" | "delete") => void; - estimateSystem: TEstimateSystemKeys; -}; - -export function EstimatePointDelete(_props: TEstimatePointDelete) { - return <>; -} diff --git a/apps/web/ce/components/estimates/points/index.ts b/apps/web/ce/components/estimates/points/index.ts deleted file mode 100644 index c83c4600f42..00000000000 --- a/apps/web/ce/components/estimates/points/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./delete"; diff --git a/apps/web/ce/components/estimates/update/index.ts b/apps/web/ce/components/estimates/update/index.ts deleted file mode 100644 index dd65a9ec347..00000000000 --- a/apps/web/ce/components/estimates/update/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./modal"; diff --git a/apps/web/ce/components/estimates/update/modal.tsx b/apps/web/ce/components/estimates/update/modal.tsx deleted file mode 100644 index e0600f32d39..00000000000 --- a/apps/web/ce/components/estimates/update/modal.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 { observer } from "mobx-react"; - -type TUpdateEstimateModal = { - workspaceSlug: string; - projectId: string; - estimateId: string | undefined; - isOpen: boolean; - handleClose: () => void; -}; - -export const UpdateEstimateModal = observer(function UpdateEstimateModal(_props: TUpdateEstimateModal) { - return <>; -}); diff --git a/apps/web/ce/components/gantt-chart/dependency/blockDraggables/index.ts b/apps/web/ce/components/gantt-chart/dependency/blockDraggables/index.ts deleted file mode 100644 index 47ac85d92b5..00000000000 --- a/apps/web/ce/components/gantt-chart/dependency/blockDraggables/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./left-draggable"; -export * from "./right-draggable"; diff --git a/apps/web/ce/components/gantt-chart/dependency/blockDraggables/left-draggable.tsx b/apps/web/ce/components/gantt-chart/dependency/blockDraggables/left-draggable.tsx deleted file mode 100644 index 34a8aac7d4a..00000000000 --- a/apps/web/ce/components/gantt-chart/dependency/blockDraggables/left-draggable.tsx +++ /dev/null @@ -1,17 +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 { RefObject } from "react"; -import type { IGanttBlock } from "@plane/types"; - -type LeftDependencyDraggableProps = { - block: IGanttBlock; - ganttContainerRef: RefObject; -}; - -export function LeftDependencyDraggable(_props: LeftDependencyDraggableProps) { - return <>; -} diff --git a/apps/web/ce/components/gantt-chart/dependency/blockDraggables/right-draggable.tsx b/apps/web/ce/components/gantt-chart/dependency/blockDraggables/right-draggable.tsx deleted file mode 100644 index d6badd067db..00000000000 --- a/apps/web/ce/components/gantt-chart/dependency/blockDraggables/right-draggable.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 { RefObject } from "react"; -import type { IGanttBlock } from "@plane/types"; - -type RightDependencyDraggableProps = { - block: IGanttBlock; - ganttContainerRef: RefObject; -}; -export function RightDependencyDraggable(_props: RightDependencyDraggableProps) { - return <>; -} diff --git a/apps/web/ce/components/gantt-chart/dependency/dependency-paths.tsx b/apps/web/ce/components/gantt-chart/dependency/dependency-paths.tsx deleted file mode 100644 index 6332a71cb25..00000000000 --- a/apps/web/ce/components/gantt-chart/dependency/dependency-paths.tsx +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -type Props = { - isEpic?: boolean; -}; -export function TimelineDependencyPaths(_props: Props) { - return <>; -} diff --git a/apps/web/ce/components/gantt-chart/dependency/draggable-dependency-path.tsx b/apps/web/ce/components/gantt-chart/dependency/draggable-dependency-path.tsx deleted file mode 100644 index 0f73549ef16..00000000000 --- a/apps/web/ce/components/gantt-chart/dependency/draggable-dependency-path.tsx +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export function TimelineDraggablePath() { - return <>; -} diff --git a/apps/web/ce/components/gantt-chart/dependency/index.ts b/apps/web/ce/components/gantt-chart/dependency/index.ts deleted file mode 100644 index d92fa43db69..00000000000 --- a/apps/web/ce/components/gantt-chart/dependency/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./blockDraggables"; -export * from "./dependency-paths"; -export * from "./draggable-dependency-path"; diff --git a/apps/web/ce/components/gantt-chart/index.ts b/apps/web/ce/components/gantt-chart/index.ts deleted file mode 100644 index cebec203cb9..00000000000 --- a/apps/web/ce/components/gantt-chart/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./dependency"; -export * from "./layers"; diff --git a/apps/web/ce/components/gantt-chart/layers/additional-layers.tsx b/apps/web/ce/components/gantt-chart/layers/additional-layers.tsx deleted file mode 100644 index 0a5ced219ed..00000000000 --- a/apps/web/ce/components/gantt-chart/layers/additional-layers.tsx +++ /dev/null @@ -1,14 +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 { FC } from "react"; - -type Props = { - itemsContainerWidth: number; - blockCount: number; -}; - -export const GanttAdditionalLayers: FC = () => null; diff --git a/apps/web/ce/components/gantt-chart/layers/index.ts b/apps/web/ce/components/gantt-chart/layers/index.ts deleted file mode 100644 index 84012f80a4f..00000000000 --- a/apps/web/ce/components/gantt-chart/layers/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export { GanttAdditionalLayers } from "./additional-layers"; diff --git a/apps/web/ce/components/global/index.ts b/apps/web/ce/components/global/index.ts deleted file mode 100644 index 1d62fc2cfe4..00000000000 --- a/apps/web/ce/components/global/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./version-number"; diff --git a/apps/web/ce/components/home/header.tsx b/apps/web/ce/components/home/header.tsx deleted file mode 100644 index 5fab957355b..00000000000 --- a/apps/web/ce/components/home/header.tsx +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export function HomePageHeader() { - return <>; -} diff --git a/apps/web/ce/components/home/index.ts b/apps/web/ce/components/home/index.ts deleted file mode 100644 index 9a897756029..00000000000 --- a/apps/web/ce/components/home/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./peek-overviews"; diff --git a/apps/web/ce/components/inbox/source-pill.tsx b/apps/web/ce/components/inbox/source-pill.tsx deleted file mode 100644 index 6d7763f8ba9..00000000000 --- a/apps/web/ce/components/inbox/source-pill.tsx +++ /dev/null @@ -1,15 +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 { EInboxIssueSource } from "@plane/types"; - -export type TInboxSourcePill = { - source: EInboxIssueSource; -}; - -export function InboxSourcePill(_props: TInboxSourcePill) { - return <>; -} diff --git a/apps/web/ce/components/instance/index.ts b/apps/web/ce/components/instance/index.ts deleted file mode 100644 index 78624d0ec59..00000000000 --- a/apps/web/ce/components/instance/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./maintenance-message"; diff --git a/apps/web/ce/components/issues/bulk-operations/index.ts b/apps/web/ce/components/issues/bulk-operations/index.ts deleted file mode 100644 index d980334597b..00000000000 --- a/apps/web/ce/components/issues/bulk-operations/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./root"; diff --git a/apps/web/ce/components/issues/filters/applied-filters/issue-types.tsx b/apps/web/ce/components/issues/filters/applied-filters/issue-types.tsx deleted file mode 100644 index 09ff7737f59..00000000000 --- a/apps/web/ce/components/issues/filters/applied-filters/issue-types.tsx +++ /dev/null @@ -1,17 +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 { observer } from "mobx-react"; - -type Props = { - handleRemove: (val: string) => void; - values: string[]; - editable: boolean | undefined; -}; - -export const AppliedIssueTypeFilters = observer(function AppliedIssueTypeFilters(_props: Props) { - return null; -}); diff --git a/apps/web/ce/components/issues/filters/issue-types.tsx b/apps/web/ce/components/issues/filters/issue-types.tsx deleted file mode 100644 index db7b06f77f0..00000000000 --- a/apps/web/ce/components/issues/filters/issue-types.tsx +++ /dev/null @@ -1,17 +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 { observer } from "mobx-react"; - -type Props = { - appliedFilters: string[] | null; - handleUpdate: (val: string) => void; - searchQuery: string; -}; - -export const FilterIssueTypes = observer(function FilterIssueTypes(_props: Props) { - return null; -}); diff --git a/apps/web/ce/components/issues/filters/team-project.tsx b/apps/web/ce/components/issues/filters/team-project.tsx deleted file mode 100644 index f838f4c9481..00000000000 --- a/apps/web/ce/components/issues/filters/team-project.tsx +++ /dev/null @@ -1,17 +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 { observer } from "mobx-react"; - -type Props = { - appliedFilters: string[] | null; - handleUpdate: (val: string) => void; - searchQuery: string; -}; - -export const FilterTeamProjects = observer(function FilterTeamProjects(_props: Props) { - return null; -}); diff --git a/apps/web/ce/components/issues/issue-detail-widgets/action-buttons.tsx b/apps/web/ce/components/issues/issue-detail-widgets/action-buttons.tsx deleted file mode 100644 index 4c17d1be123..00000000000 --- a/apps/web/ce/components/issues/issue-detail-widgets/action-buttons.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// plane types -import type { TIssueServiceType, TWorkItemWidgets } from "@plane/types"; - -export type TWorkItemAdditionalWidgetActionButtonsProps = { - disabled: boolean; - hideWidgets: TWorkItemWidgets[]; - issueServiceType: TIssueServiceType; - projectId: string; - workItemId: string; - workspaceSlug: string; -}; - -export function WorkItemAdditionalWidgetActionButtons(_props: TWorkItemAdditionalWidgetActionButtonsProps) { - return null; -} diff --git a/apps/web/ce/components/issues/issue-detail-widgets/collapsibles.tsx b/apps/web/ce/components/issues/issue-detail-widgets/collapsibles.tsx deleted file mode 100644 index 626107cdb2b..00000000000 --- a/apps/web/ce/components/issues/issue-detail-widgets/collapsibles.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// plane types -import type { TIssueServiceType, TWorkItemWidgets } from "@plane/types"; - -export type TWorkItemAdditionalWidgetCollapsiblesProps = { - disabled: boolean; - hideWidgets: TWorkItemWidgets[]; - issueServiceType: TIssueServiceType; - projectId: string; - workItemId: string; - workspaceSlug: string; -}; - -export function WorkItemAdditionalWidgetCollapsibles(_props: TWorkItemAdditionalWidgetCollapsiblesProps) { - return null; -} diff --git a/apps/web/ce/components/issues/issue-detail-widgets/modals.tsx b/apps/web/ce/components/issues/issue-detail-widgets/modals.tsx deleted file mode 100644 index 9356b772706..00000000000 --- a/apps/web/ce/components/issues/issue-detail-widgets/modals.tsx +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// plane types -import type { TIssueServiceType, TWorkItemWidgets } from "@plane/types"; - -export type TWorkItemAdditionalWidgetModalsProps = { - hideWidgets: TWorkItemWidgets[]; - issueServiceType: TIssueServiceType; - projectId: string; - workItemId: string; - workspaceSlug: string; -}; - -export function WorkItemAdditionalWidgetModals(_props: TWorkItemAdditionalWidgetModalsProps) { - return null; -} diff --git a/apps/web/ce/components/issues/issue-details/additional-activity-root.tsx b/apps/web/ce/components/issues/issue-details/additional-activity-root.tsx deleted file mode 100644 index 95804501abb..00000000000 --- a/apps/web/ce/components/issues/issue-details/additional-activity-root.tsx +++ /dev/null @@ -1,18 +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 { observer } from "mobx-react"; - -export type TAdditionalActivityRoot = { - activityId: string; - showIssue?: boolean; - ends: "top" | "bottom" | undefined; - field: string | undefined; -}; - -export const AdditionalActivityRoot = observer(function AdditionalActivityRoot(_props: TAdditionalActivityRoot) { - return <>; -}); diff --git a/apps/web/ce/components/issues/issue-details/additional-properties.tsx b/apps/web/ce/components/issues/issue-details/additional-properties.tsx deleted file mode 100644 index a169a8863a5..00000000000 --- a/apps/web/ce/components/issues/issue-details/additional-properties.tsx +++ /dev/null @@ -1,21 +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"; -// plane imports - -export type TWorkItemAdditionalSidebarProperties = { - workItemId: string; - workItemTypeId: string | null; - projectId: string; - workspaceSlug: string; - isEditable: boolean; - isPeekView?: boolean; -}; - -export function WorkItemAdditionalSidebarProperties(_props: TWorkItemAdditionalSidebarProperties) { - return <>; -} diff --git a/apps/web/ce/components/issues/issue-details/index.ts b/apps/web/ce/components/issues/issue-details/index.ts deleted file mode 100644 index abd9df16384..00000000000 --- a/apps/web/ce/components/issues/issue-details/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./issue-identifier"; -export * from "./issue-properties-activity"; -export * from "./issue-type-switcher"; -export * from "./issue-type-activity"; -export * from "./parent-select-root"; -export * from "./issue-creator"; -export * from "./additional-activity-root"; diff --git a/apps/web/ce/components/issues/issue-details/issue-properties-activity/index.ts b/apps/web/ce/components/issues/issue-details/issue-properties-activity/index.ts deleted file mode 100644 index d980334597b..00000000000 --- a/apps/web/ce/components/issues/issue-details/issue-properties-activity/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./root"; diff --git a/apps/web/ce/components/issues/issue-details/issue-properties-activity/root.tsx b/apps/web/ce/components/issues/issue-details/issue-properties-activity/root.tsx deleted file mode 100644 index c6a50531ee7..00000000000 --- a/apps/web/ce/components/issues/issue-details/issue-properties-activity/root.tsx +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -type TIssueAdditionalPropertiesActivity = { - activityId: string; - ends: "top" | "bottom" | undefined; -}; - -export function IssueAdditionalPropertiesActivity(_props: TIssueAdditionalPropertiesActivity) { - return <>; -} diff --git a/apps/web/ce/components/issues/issue-details/issue-type-activity.tsx b/apps/web/ce/components/issues/issue-details/issue-type-activity.tsx deleted file mode 100644 index 08b499f823b..00000000000 --- a/apps/web/ce/components/issues/issue-details/issue-type-activity.tsx +++ /dev/null @@ -1,13 +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 { observer } from "mobx-react"; - -export type TIssueTypeActivity = { activityId: string; showIssue?: boolean; ends: "top" | "bottom" | undefined }; - -export const IssueTypeActivity = observer(function IssueTypeActivity(_props: TIssueTypeActivity) { - return <>; -}); diff --git a/apps/web/ce/components/issues/issue-details/sidebar/date-alert.tsx b/apps/web/ce/components/issues/issue-details/sidebar/date-alert.tsx deleted file mode 100644 index 6d5459f53d9..00000000000 --- a/apps/web/ce/components/issues/issue-details/sidebar/date-alert.tsx +++ /dev/null @@ -1,17 +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 { TIssue } from "@plane/types"; - -export type TDateAlertProps = { - date: string; - workItem: TIssue; - projectId: string; -}; -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export function DateAlert(props: TDateAlertProps) { - return <>; -} diff --git a/apps/web/ce/components/issues/issue-details/sidebar/transfer-hop-info.tsx b/apps/web/ce/components/issues/issue-details/sidebar/transfer-hop-info.tsx deleted file mode 100644 index 071c8476e98..00000000000 --- a/apps/web/ce/components/issues/issue-details/sidebar/transfer-hop-info.tsx +++ /dev/null @@ -1,11 +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 { TIssue } from "@plane/types"; -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export function TransferHopInfo({ workItem }: { workItem: TIssue }) { - return <>; -} diff --git a/apps/web/ce/components/issues/issue-layouts/additional-properties.tsx b/apps/web/ce/components/issues/issue-layouts/additional-properties.tsx deleted file mode 100644 index 35c62fed4ac..00000000000 --- a/apps/web/ce/components/issues/issue-layouts/additional-properties.tsx +++ /dev/null @@ -1,17 +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"; -import type { IIssueDisplayProperties, TIssue } from "@plane/types"; - -export type TWorkItemLayoutAdditionalProperties = { - displayProperties: IIssueDisplayProperties; - issue: TIssue; -}; - -export function WorkItemLayoutAdditionalProperties(_props: TWorkItemLayoutAdditionalProperties) { - return <>; -} diff --git a/apps/web/ce/components/issues/issue-layouts/empty-states/index.ts b/apps/web/ce/components/issues/issue-layouts/empty-states/index.ts deleted file mode 100644 index 27407dd37bc..00000000000 --- a/apps/web/ce/components/issues/issue-layouts/empty-states/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./team-issues"; -export * from "./team-view-issues"; diff --git a/apps/web/ce/components/issues/issue-layouts/empty-states/team-issues.tsx b/apps/web/ce/components/issues/issue-layouts/empty-states/team-issues.tsx deleted file mode 100644 index fbd6d73dce2..00000000000 --- a/apps/web/ce/components/issues/issue-layouts/empty-states/team-issues.tsx +++ /dev/null @@ -1,11 +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 { observer } from "mobx-react"; - -export const TeamEmptyState = observer(function TeamEmptyState() { - return <>; -}); diff --git a/apps/web/ce/components/issues/issue-layouts/empty-states/team-project.tsx b/apps/web/ce/components/issues/issue-layouts/empty-states/team-project.tsx deleted file mode 100644 index b221f010867..00000000000 --- a/apps/web/ce/components/issues/issue-layouts/empty-states/team-project.tsx +++ /dev/null @@ -1,11 +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 { observer } from "mobx-react"; - -export const TeamProjectWorkItemEmptyState = observer(function TeamProjectWorkItemEmptyState() { - return <>; -}); diff --git a/apps/web/ce/components/issues/issue-layouts/empty-states/team-view-issues.tsx b/apps/web/ce/components/issues/issue-layouts/empty-states/team-view-issues.tsx deleted file mode 100644 index 8453b37697d..00000000000 --- a/apps/web/ce/components/issues/issue-layouts/empty-states/team-view-issues.tsx +++ /dev/null @@ -1,11 +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 { observer } from "mobx-react"; - -export const TeamViewEmptyState = observer(function TeamViewEmptyState() { - return <>; -}); diff --git a/apps/web/ce/components/issues/issue-layouts/issue-stats.tsx b/apps/web/ce/components/issues/issue-layouts/issue-stats.tsx deleted file mode 100644 index fc6fbc0a024..00000000000 --- a/apps/web/ce/components/issues/issue-layouts/issue-stats.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"; - -type Props = { - issueId: string; - className?: string; - size?: number; - showProgressText?: boolean; - showLabel?: boolean; -}; - -export function IssueStats(_props: Props) { - return <>; -} diff --git a/apps/web/ce/components/issues/issue-layouts/quick-action-dropdowns/duplicate-modal.tsx b/apps/web/ce/components/issues/issue-layouts/quick-action-dropdowns/duplicate-modal.tsx deleted file mode 100644 index b8b142f7408..00000000000 --- a/apps/web/ce/components/issues/issue-layouts/quick-action-dropdowns/duplicate-modal.tsx +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -type TDuplicateWorkItemModalProps = { - workItemId: string; - onClose: () => void; - isOpen: boolean; - workspaceSlug: string; - projectId: string; -}; - -export function DuplicateWorkItemModal(_props: TDuplicateWorkItemModalProps) { - return <>; -} diff --git a/apps/web/ce/components/issues/issue-layouts/quick-action-dropdowns/index.ts b/apps/web/ce/components/issues/issue-layouts/quick-action-dropdowns/index.ts deleted file mode 100644 index e99ab1e46d0..00000000000 --- a/apps/web/ce/components/issues/issue-layouts/quick-action-dropdowns/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./duplicate-modal"; -export * from "./copy-menu-helper"; diff --git a/apps/web/ce/components/issues/issue-layouts/utils.tsx b/apps/web/ce/components/issues/issue-layouts/utils.tsx deleted file mode 100644 index 0a0ddf7f728..00000000000 --- a/apps/web/ce/components/issues/issue-layouts/utils.tsx +++ /dev/null @@ -1,122 +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 { FC } from "react"; -import { CalendarDays, LayersIcon, Paperclip } from "lucide-react"; -// types -import { ISSUE_GROUP_BY_OPTIONS } from "@plane/constants"; -import type { ISvgIcons } from "@plane/propel/icons"; -import { - LinkIcon, - CycleIcon, - StatePropertyIcon, - ModuleIcon, - MembersPropertyIcon, - DueDatePropertyIcon, - EstimatePropertyIcon, - LabelPropertyIcon, - PriorityPropertyIcon, - StartDatePropertyIcon, -} from "@plane/propel/icons"; -import type { - IGroupByColumn, - IIssueDisplayProperties, - TGetColumns, - TIssueGroupByOptions, - TSpreadsheetColumn, -} from "@plane/types"; -// components -import { - SpreadsheetAssigneeColumn, - SpreadsheetAttachmentColumn, - SpreadsheetCreatedOnColumn, - SpreadsheetDueDateColumn, - SpreadsheetEstimateColumn, - SpreadsheetLabelColumn, - SpreadsheetModuleColumn, - SpreadsheetCycleColumn, - SpreadsheetLinkColumn, - SpreadsheetPriorityColumn, - SpreadsheetStartDateColumn, - SpreadsheetStateColumn, - SpreadsheetSubIssueColumn, - SpreadsheetUpdatedOnColumn, -} from "@/components/issues/issue-layouts/spreadsheet/columns"; -// store -import { store } from "@/lib/store-context"; - -export type TGetScopeMemberIdsResult = { - memberIds: string[]; - includeNone: boolean; -}; - -export const getScopeMemberIds = ({ isWorkspaceLevel, projectId }: TGetColumns): TGetScopeMemberIdsResult => { - // store values - const { workspaceMemberIds } = store.memberRoot.workspace; - const { projectMemberIds } = store.memberRoot.project; - // derived values - const memberIds = workspaceMemberIds; - - if (isWorkspaceLevel) { - return { memberIds: memberIds ?? [], includeNone: true }; - } - - if (projectId || (projectMemberIds && projectMemberIds.length > 0)) { - const { getProjectMemberIds } = store.memberRoot.project; - const _projectMemberIds = projectId ? getProjectMemberIds(projectId, false) : projectMemberIds; - return { - memberIds: _projectMemberIds ?? [], - includeNone: true, - }; - } - - return { memberIds: [], includeNone: true }; -}; - -export const getTeamProjectColumns = (): IGroupByColumn[] | undefined => undefined; - -export const SpreadSheetPropertyIconMap: Record> = { - MembersPropertyIcon: MembersPropertyIcon, - CalenderDays: CalendarDays, - DueDatePropertyIcon: DueDatePropertyIcon, - EstimatePropertyIcon: EstimatePropertyIcon, - LabelPropertyIcon: LabelPropertyIcon, - ModuleIcon: ModuleIcon, - ContrastIcon: CycleIcon, - PriorityPropertyIcon: PriorityPropertyIcon, - StartDatePropertyIcon: StartDatePropertyIcon, - StatePropertyIcon: StatePropertyIcon, - Link2: LinkIcon, - Paperclip: Paperclip, - LayersIcon: LayersIcon, -}; - -export const SPREADSHEET_COLUMNS: { [key in keyof IIssueDisplayProperties]: TSpreadsheetColumn } = { - assignee: SpreadsheetAssigneeColumn, - created_on: SpreadsheetCreatedOnColumn, - due_date: SpreadsheetDueDateColumn, - estimate: SpreadsheetEstimateColumn, - labels: SpreadsheetLabelColumn, - modules: SpreadsheetModuleColumn, - cycle: SpreadsheetCycleColumn, - link: SpreadsheetLinkColumn, - priority: SpreadsheetPriorityColumn, - start_date: SpreadsheetStartDateColumn, - state: SpreadsheetStateColumn, - sub_issue_count: SpreadsheetSubIssueColumn, - updated_on: SpreadsheetUpdatedOnColumn, - attachment_count: SpreadsheetAttachmentColumn, -}; - -export const useGroupByOptions = ( - options: TIssueGroupByOptions[] -): { - key: TIssueGroupByOptions; - titleTranslationKey: string; -}[] => { - const groupByOptions = ISSUE_GROUP_BY_OPTIONS.filter((option) => options.includes(option.key)); - return groupByOptions; -}; diff --git a/apps/web/ce/components/issues/issue-modal/index.ts b/apps/web/ce/components/issues/issue-modal/index.ts deleted file mode 100644 index 006cc1c829f..00000000000 --- a/apps/web/ce/components/issues/issue-modal/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./provider"; -export * from "./issue-type-select"; -export * from "./template-select"; diff --git a/apps/web/ce/components/issues/issue-modal/issue-type-select.tsx b/apps/web/ce/components/issues/issue-modal/issue-type-select.tsx deleted file mode 100644 index dd4c29cca89..00000000000 --- a/apps/web/ce/components/issues/issue-modal/issue-type-select.tsx +++ /dev/null @@ -1,34 +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 { Control } from "react-hook-form"; -// plane imports -import type { EditorRefApi } from "@plane/editor"; -// types -import type { TBulkIssueProperties, TIssue } from "@plane/types"; - -export type TIssueFields = TIssue & TBulkIssueProperties; - -export type TIssueTypeDropdownVariant = "xs" | "sm"; - -export type TIssueTypeSelectProps> = { - control: Control; - projectId: string | null; - editorRef?: React.MutableRefObject; - disabled?: boolean; - variant?: TIssueTypeDropdownVariant; - placeholder?: string; - isRequired?: boolean; - renderChevron?: boolean; - dropDownContainerClassName?: string; - showMandatoryFieldInfo?: boolean; // Show info about mandatory fields - handleFormChange?: () => void; -}; - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export function IssueTypeSelect>(props: TIssueTypeSelectProps) { - return <>; -} diff --git a/apps/web/ce/components/issues/issue-modal/modal-additional-properties.tsx b/apps/web/ce/components/issues/issue-modal/modal-additional-properties.tsx deleted file mode 100644 index 0255407ae68..00000000000 --- a/apps/web/ce/components/issues/issue-modal/modal-additional-properties.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. - */ - -export type TWorkItemModalAdditionalPropertiesProps = { - isDraft?: boolean; - projectId: string | null; - workItemId: string | undefined; - workspaceSlug: string; -}; - -export function WorkItemModalAdditionalProperties(_props: TWorkItemModalAdditionalPropertiesProps) { - return null; -} diff --git a/apps/web/ce/components/issues/issue-modal/template-select.tsx b/apps/web/ce/components/issues/issue-modal/template-select.tsx deleted file mode 100644 index ee0a081c6d3..00000000000 --- a/apps/web/ce/components/issues/issue-modal/template-select.tsx +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export type TWorkItemTemplateDropdownSize = "xs" | "sm"; - -export type TWorkItemTemplateSelect = { - projectId: string | null; - typeId: string | null; - disabled?: boolean; - size?: TWorkItemTemplateDropdownSize; - placeholder?: string; - renderChevron?: boolean; - dropDownContainerClassName?: string; - handleModalClose: () => void; - handleFormChange?: () => void; -}; - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export function WorkItemTemplateSelect(props: TWorkItemTemplateSelect) { - return <>; -} diff --git a/apps/web/ce/components/issues/quick-add/index.ts b/apps/web/ce/components/issues/quick-add/index.ts deleted file mode 100644 index d980334597b..00000000000 --- a/apps/web/ce/components/issues/quick-add/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./root"; diff --git a/apps/web/ce/components/issues/worklog/activity/index.ts b/apps/web/ce/components/issues/worklog/activity/index.ts deleted file mode 100644 index d980334597b..00000000000 --- a/apps/web/ce/components/issues/worklog/activity/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./root"; diff --git a/apps/web/ce/components/issues/worklog/activity/root.tsx b/apps/web/ce/components/issues/worklog/activity/root.tsx deleted file mode 100644 index 3b3d33729b2..00000000000 --- a/apps/web/ce/components/issues/worklog/activity/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 type { TIssueActivityComment } from "@plane/types"; - -type TIssueActivityWorklog = { - workspaceSlug: string; - projectId: string; - issueId: string; - activityComment: TIssueActivityComment; - ends?: "top" | "bottom"; -}; - -export function IssueActivityWorklog(_props: TIssueActivityWorklog) { - return <>; -} diff --git a/apps/web/ce/components/issues/worklog/activity/worklog-create-button.tsx b/apps/web/ce/components/issues/worklog/activity/worklog-create-button.tsx deleted file mode 100644 index 5ded8d02bb2..00000000000 --- a/apps/web/ce/components/issues/worklog/activity/worklog-create-button.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. - */ - -type TIssueActivityWorklogCreateButton = { - workspaceSlug: string; - projectId: string; - issueId: string; - disabled: boolean; -}; - -export function IssueActivityWorklogCreateButton(_props: TIssueActivityWorklogCreateButton) { - return <>; -} diff --git a/apps/web/ce/components/issues/worklog/property/index.ts b/apps/web/ce/components/issues/worklog/property/index.ts deleted file mode 100644 index d980334597b..00000000000 --- a/apps/web/ce/components/issues/worklog/property/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./root"; diff --git a/apps/web/ce/components/issues/worklog/property/root.tsx b/apps/web/ce/components/issues/worklog/property/root.tsx deleted file mode 100644 index 7eff7d6a8a0..00000000000 --- a/apps/web/ce/components/issues/worklog/property/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. - */ - -type TIssueWorklogProperty = { - workspaceSlug: string; - projectId: string; - issueId: string; - disabled: boolean; -}; - -export function IssueWorklogProperty(_props: TIssueWorklogProperty) { - return <>; -} diff --git a/apps/web/ce/components/license/index.ts b/apps/web/ce/components/license/index.ts deleted file mode 100644 index dd65a9ec347..00000000000 --- a/apps/web/ce/components/license/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./modal"; diff --git a/apps/web/ce/components/license/modal/index.ts b/apps/web/ce/components/license/modal/index.ts deleted file mode 100644 index c255805ae82..00000000000 --- a/apps/web/ce/components/license/modal/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./upgrade-modal"; diff --git a/apps/web/ce/components/navigations/index.ts b/apps/web/ce/components/navigations/index.ts deleted file mode 100644 index b4131e9325b..00000000000 --- a/apps/web/ce/components/navigations/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./use-navigation-items"; -export * from "./top-navigation-root"; diff --git a/apps/web/ce/components/pages/editor/embed/index.ts b/apps/web/ce/components/pages/editor/embed/index.ts deleted file mode 100644 index 7ab6ada6b6f..00000000000 --- a/apps/web/ce/components/pages/editor/embed/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./issue-embed-upgrade-card"; diff --git a/apps/web/ce/components/pages/editor/embed/issue-embed-upgrade-card.tsx b/apps/web/ce/components/pages/editor/embed/issue-embed-upgrade-card.tsx deleted file mode 100644 index bcd5cebc409..00000000000 --- a/apps/web/ce/components/pages/editor/embed/issue-embed-upgrade-card.tsx +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// plane imports -import { getButtonStyling } from "@plane/propel/button"; -import { cn } from "@plane/utils"; -// components -import { ProIcon } from "@/components/common/pro-icon"; - -export function IssueEmbedUpgradeCard(props: any) { - return ( -
-
- -

- Embed and access issues in pages seamlessly, upgrade to Plane Pro now. -

-
- - Upgrade - -
- ); -} diff --git a/apps/web/ce/components/pages/editor/index.ts b/apps/web/ce/components/pages/editor/index.ts deleted file mode 100644 index d95ce40f042..00000000000 --- a/apps/web/ce/components/pages/editor/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./ai"; -export * from "./embed"; diff --git a/apps/web/ce/components/pages/extra-actions.tsx b/apps/web/ce/components/pages/extra-actions.tsx deleted file mode 100644 index b89ef9bf560..00000000000 --- a/apps/web/ce/components/pages/extra-actions.tsx +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// store -import type { EPageStoreType } from "@/hooks/store"; -import type { TPageInstance } from "@/store/pages/base-page"; - -export type TPageHeaderExtraActionsProps = { - page: TPageInstance; - storeType: EPageStoreType; -}; - -export function PageDetailsHeaderExtraActions(_props: TPageHeaderExtraActionsProps) { - return null; -} diff --git a/apps/web/ce/components/pages/header/collaborators-list.tsx b/apps/web/ce/components/pages/header/collaborators-list.tsx deleted file mode 100644 index 1deaf467603..00000000000 --- a/apps/web/ce/components/pages/header/collaborators-list.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. - */ - -// store -import type { TPageInstance } from "@/store/pages/base-page"; - -export type TPageCollaboratorsListProps = { - page: TPageInstance; -}; - -export function PageCollaboratorsList({}: TPageCollaboratorsListProps) { - return null; -} diff --git a/apps/web/ce/components/pages/header/move-control.tsx b/apps/web/ce/components/pages/header/move-control.tsx deleted file mode 100644 index 744893dbb6c..00000000000 --- a/apps/web/ce/components/pages/header/move-control.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. - */ - -// store -import type { TPageInstance } from "@/store/pages/base-page"; - -export type TPageMoveControlProps = { - page: TPageInstance; -}; - -export function PageMoveControl({}: TPageMoveControlProps) { - return null; -} diff --git a/apps/web/ce/components/pages/header/share-control.tsx b/apps/web/ce/components/pages/header/share-control.tsx deleted file mode 100644 index ea4cb0ae414..00000000000 --- a/apps/web/ce/components/pages/header/share-control.tsx +++ /dev/null @@ -1,18 +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 { EPageStoreType } from "@/hooks/store"; -// store -import type { TPageInstance } from "@/store/pages/base-page"; - -export type TPageShareControlProps = { - page: TPageInstance; - storeType: EPageStoreType; -}; - -export function PageShareControl({}: TPageShareControlProps) { - return null; -} diff --git a/apps/web/ce/components/pages/index.ts b/apps/web/ce/components/pages/index.ts deleted file mode 100644 index 12beee9cd3f..00000000000 --- a/apps/web/ce/components/pages/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./editor"; -export * from "./modals"; -export * from "./extra-actions"; diff --git a/apps/web/ce/components/pages/modals/index.ts b/apps/web/ce/components/pages/modals/index.ts deleted file mode 100644 index ee765fe1660..00000000000 --- a/apps/web/ce/components/pages/modals/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./move-page-modal"; -export * from "./modals"; diff --git a/apps/web/ce/components/pages/modals/modals.tsx b/apps/web/ce/components/pages/modals/modals.tsx deleted file mode 100644 index 6720c8bbb20..00000000000 --- a/apps/web/ce/components/pages/modals/modals.tsx +++ /dev/null @@ -1,20 +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 { observer } from "mobx-react"; -// components -import type { EPageStoreType } from "@/hooks/store"; -// store -import type { TPageInstance } from "@/store/pages/base-page"; - -export type TPageModalsProps = { - page: TPageInstance; - storeType: EPageStoreType; -}; - -export const PageModals = observer(function PageModals(_props: TPageModalsProps) { - return null; -}); diff --git a/apps/web/ce/components/pages/modals/move-page-modal.tsx b/apps/web/ce/components/pages/modals/move-page-modal.tsx deleted file mode 100644 index 39c3a022254..00000000000 --- a/apps/web/ce/components/pages/modals/move-page-modal.tsx +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// store types -import type { TPageInstance } from "@/store/pages/base-page"; - -export type TMovePageModalProps = { - isOpen: boolean; - onClose: () => void; - page: TPageInstance; -}; - -export function MovePageModal(_props: TMovePageModalProps) { - return null; -} diff --git a/apps/web/ce/components/pages/navigation-pane/tab-panels/assets.tsx b/apps/web/ce/components/pages/navigation-pane/tab-panels/assets.tsx deleted file mode 100644 index 68487f9c661..00000000000 --- a/apps/web/ce/components/pages/navigation-pane/tab-panels/assets.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// plane imports -import type { TEditorAsset } from "@plane/editor"; -// store -import type { TPageInstance } from "@/store/pages/base-page"; - -export type TAdditionalPageNavigationPaneAssetItemProps = { - asset: TEditorAsset; - assetSrc: string; - assetDownloadSrc: string; - page: TPageInstance; -}; - -export function AdditionalPageNavigationPaneAssetItem(_props: TAdditionalPageNavigationPaneAssetItemProps) { - return null; -} diff --git a/apps/web/ce/components/pages/navigation-pane/tab-panels/root.tsx b/apps/web/ce/components/pages/navigation-pane/tab-panels/root.tsx deleted file mode 100644 index 14b19476bf5..00000000000 --- a/apps/web/ce/components/pages/navigation-pane/tab-panels/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. - */ - -// store -import type { TPageInstance } from "@/store/pages/base-page"; -// local imports -import type { TPageNavigationPaneTab } from ".."; - -export type TPageNavigationPaneAdditionalTabPanelsRootProps = { - activeTab: TPageNavigationPaneTab; - page: TPageInstance; -}; - -export function PageNavigationPaneAdditionalTabPanelsRoot(_props: TPageNavigationPaneAdditionalTabPanelsRootProps) { - return null; -} diff --git a/apps/web/ce/components/preferences/theme-switcher.tsx b/apps/web/ce/components/preferences/theme-switcher.tsx deleted file mode 100644 index b335b99b34b..00000000000 --- a/apps/web/ce/components/preferences/theme-switcher.tsx +++ /dev/null @@ -1,102 +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 { useCallback, useMemo } from "react"; -import { observer } from "mobx-react"; -import { useTheme } from "next-themes"; -// plane imports -import type { I_THEME_OPTION } from "@plane/constants"; -import { THEME_OPTIONS } from "@plane/constants"; -import { useTranslation } from "@plane/i18n"; -import { setPromiseToast } from "@plane/propel/toast"; -import { applyCustomTheme } from "@plane/utils"; -// components -import { CustomThemeSelector } from "@/components/core/theme/custom-theme-selector"; -import { ThemeSwitch } from "@/components/core/theme/theme-switch"; -import { SettingsControlItem } from "@/components/settings/control-item"; -// hooks -import { useUserProfile } from "@/hooks/store/user"; - -export const ThemeSwitcher = observer(function ThemeSwitcher(props: { - option: { - id: string; - title: string; - description: string; - }; -}) { - // store hooks - const { data: userProfile, updateUserTheme } = useUserProfile(); - // theme - const { setTheme } = useTheme(); - // translation - const { t } = useTranslation(); - // derived values - const currentTheme = useMemo(() => { - const userThemeOption = THEME_OPTIONS.find((t) => t.value === userProfile?.theme?.theme); - return userThemeOption || null; - }, [userProfile?.theme?.theme]); - - const handleThemeChange = useCallback( - async (themeOption: I_THEME_OPTION) => { - try { - setTheme(themeOption.value); - - // If switching to custom theme and user has saved custom colors, apply them immediately - if ( - themeOption.value === "custom" && - userProfile?.theme?.primary && - userProfile?.theme?.background && - userProfile?.theme?.darkPalette !== undefined - ) { - applyCustomTheme( - userProfile.theme.primary, - userProfile.theme.background, - userProfile.theme.darkPalette ? "dark" : "light" - ); - } - - const updatePromise = updateUserTheme({ theme: themeOption.value }); - setPromiseToast(updatePromise, { - loading: "Updating theme...", - success: { - title: "Theme updated", - message: () => "Reloading to apply changes...", - }, - error: { - title: "Error!", - message: () => "Failed to update theme. Please try again.", - }, - }); - // Wait for the promise to resolve, then reload after showing toast - await updatePromise; - window.location.reload(); - } catch (error) { - console.error("Error updating theme:", error); - } - }, - [setTheme, updateUserTheme, userProfile] - ); - - if (!userProfile) return null; - - return ( - <> - { - void handleThemeChange(themeOption); - }} - /> - } - /> - {userProfile.theme?.theme === "custom" && } - - ); -}); diff --git a/apps/web/ce/components/projects/create/template-select.tsx b/apps/web/ce/components/projects/create/template-select.tsx deleted file mode 100644 index 84c089cad12..00000000000 --- a/apps/web/ce/components/projects/create/template-select.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export type TProjectTemplateSelect = { - disabled?: boolean; - onClick?: () => void; -}; - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export function ProjectTemplateSelect(props: TProjectTemplateSelect) { - return <>; -} diff --git a/apps/web/ce/components/projects/header.tsx b/apps/web/ce/components/projects/header.tsx deleted file mode 100644 index 08e10d013f0..00000000000 --- a/apps/web/ce/components/projects/header.tsx +++ /dev/null @@ -1,11 +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 { ProjectsBaseHeader } from "@/components/project/header"; - -export function ProjectsListHeader() { - return ; -} diff --git a/apps/web/ce/components/projects/navigation/helper.tsx b/apps/web/ce/components/projects/navigation/helper.tsx deleted file mode 100644 index 26baffb3f71..00000000000 --- a/apps/web/ce/components/projects/navigation/helper.tsx +++ /dev/null @@ -1,84 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// plane imports -import { EUserPermissions, EProjectFeatureKey } from "@plane/constants"; -import { CycleIcon, IntakeIcon, ModuleIcon, PageIcon, ViewsIcon, WorkItemsIcon } from "@plane/propel/icons"; -// components -import type { TNavigationItem } from "@/components/workspace/sidebar/project-navigation"; - -export const getProjectFeatureNavigation = ( - workspaceSlug: string, - projectId: string, - project: { - cycle_view: boolean; - module_view: boolean; - issue_views_view: boolean; - page_view: boolean; - inbox_view: boolean; - } -): TNavigationItem[] => [ - { - i18n_key: "sidebar.work_items", - key: EProjectFeatureKey.WORK_ITEMS, - name: "Work items", - href: `/${workspaceSlug}/projects/${projectId}/issues`, - icon: WorkItemsIcon, - access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST], - shouldRender: true, - sortOrder: 1, - }, - { - i18n_key: "sidebar.cycles", - key: EProjectFeatureKey.CYCLES, - name: "Cycles", - href: `/${workspaceSlug}/projects/${projectId}/cycles`, - icon: CycleIcon, - access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER], - shouldRender: project.cycle_view, - sortOrder: 2, - }, - { - i18n_key: "sidebar.modules", - key: EProjectFeatureKey.MODULES, - name: "Modules", - href: `/${workspaceSlug}/projects/${projectId}/modules`, - icon: ModuleIcon, - access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER], - shouldRender: project.module_view, - sortOrder: 3, - }, - { - i18n_key: "sidebar.views", - key: EProjectFeatureKey.VIEWS, - name: "Views", - href: `/${workspaceSlug}/projects/${projectId}/views`, - icon: ViewsIcon, - access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST], - shouldRender: project.issue_views_view, - sortOrder: 4, - }, - { - i18n_key: "sidebar.pages", - key: EProjectFeatureKey.PAGES, - name: "Pages", - href: `/${workspaceSlug}/projects/${projectId}/pages`, - icon: PageIcon, - access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST], - shouldRender: project.page_view, - sortOrder: 5, - }, - { - i18n_key: "sidebar.intake", - key: EProjectFeatureKey.INTAKE, - name: "Intake", - href: `/${workspaceSlug}/projects/${projectId}/intake`, - icon: IntakeIcon, - access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST], - shouldRender: project.inbox_view, - sortOrder: 6, - }, -]; diff --git a/apps/web/ce/components/projects/settings/features-list.tsx b/apps/web/ce/components/projects/settings/features-list.tsx deleted file mode 100644 index f256288ae10..00000000000 --- a/apps/web/ce/components/projects/settings/features-list.tsx +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export { ProjectFeaturesList } from "@/components/project/settings/features-list"; diff --git a/apps/web/ce/components/projects/teamspaces/teamspace-list.tsx b/apps/web/ce/components/projects/teamspaces/teamspace-list.tsx deleted file mode 100644 index 2f62c53e11f..00000000000 --- a/apps/web/ce/components/projects/teamspaces/teamspace-list.tsx +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export type TProjectTeamspaceList = { - workspaceSlug: string; - projectId: string; -}; - -export function ProjectTeamspaceList(_props: TProjectTeamspaceList) { - return null; -} diff --git a/apps/web/ce/components/rich-filters/filter-value-input/root.tsx b/apps/web/ce/components/rich-filters/filter-value-input/root.tsx deleted file mode 100644 index 374bf279ff4..00000000000 --- a/apps/web/ce/components/rich-filters/filter-value-input/root.tsx +++ /dev/null @@ -1,24 +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"; -import { observer } from "mobx-react"; -// plane imports -import type { TFilterValue, TFilterProperty } from "@plane/types"; -// local imports -import type { TFilterValueInputProps } from "@/components/rich-filters/shared"; - -export const AdditionalFilterValueInput = observer(function AdditionalFilterValueInput< - P extends TFilterProperty, - V extends TFilterValue, ->(_props: TFilterValueInputProps) { - return ( - // Fallback -
- Filter type not supported -
- ); -}); diff --git a/apps/web/ce/components/sidebar/app-switcher.tsx b/apps/web/ce/components/sidebar/app-switcher.tsx deleted file mode 100644 index 80cc87797f9..00000000000 --- a/apps/web/ce/components/sidebar/app-switcher.tsx +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export function SidebarAppSwitcher() { - return null; -} diff --git a/apps/web/ce/components/sidebar/index.ts b/apps/web/ce/components/sidebar/index.ts deleted file mode 100644 index 4f6ed0ef8df..00000000000 --- a/apps/web/ce/components/sidebar/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./app-switcher"; -export * from "./project-navigation-root"; diff --git a/apps/web/ce/components/sidebar/project-navigation-root.tsx b/apps/web/ce/components/sidebar/project-navigation-root.tsx deleted file mode 100644 index fd5249c01fc..00000000000 --- a/apps/web/ce/components/sidebar/project-navigation-root.tsx +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// components -import { ProjectNavigation } from "@/components/workspace/sidebar/project-navigation"; - -type TProjectItemsRootProps = { - workspaceSlug: string; - projectId: string; -}; - -export function ProjectNavigationRoot(props: TProjectItemsRootProps) { - const { workspaceSlug, projectId } = props; - return ; -} diff --git a/apps/web/ce/components/views/access-controller.tsx b/apps/web/ce/components/views/access-controller.tsx deleted file mode 100644 index 5491770507f..00000000000 --- a/apps/web/ce/components/views/access-controller.tsx +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export function AccessController(props: any) { - return <>; -} diff --git a/apps/web/ce/components/views/filters/access-filter.tsx b/apps/web/ce/components/views/filters/access-filter.tsx deleted file mode 100644 index 65ef98c538d..00000000000 --- a/apps/web/ce/components/views/filters/access-filter.tsx +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export function FilterByAccess(props: any) { - return <>; -} diff --git a/apps/web/ce/components/views/helper.tsx b/apps/web/ce/components/views/helper.tsx deleted file mode 100644 index dda72e6ed04..00000000000 --- a/apps/web/ce/components/views/helper.tsx +++ /dev/null @@ -1,27 +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 { EIssueLayoutTypes, IProjectView } from "@plane/types"; -import type { TWorkspaceLayoutProps } from "@/components/views/helper"; - -export type TLayoutSelectionProps = { - onChange: (layout: EIssueLayoutTypes) => void; - selectedLayout: EIssueLayoutTypes; - workspaceSlug: string; -}; - -export function GlobalViewLayoutSelection(_props: TLayoutSelectionProps) { - return <>; -} - -export function WorkspaceAdditionalLayouts(_props: TWorkspaceLayoutProps) { - return <>; -} - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export function AdditionalHeaderItems(view: IProjectView) { - return <>; -} diff --git a/apps/web/ce/components/views/publish/modal.tsx b/apps/web/ce/components/views/publish/modal.tsx deleted file mode 100644 index 7be8c47da5d..00000000000 --- a/apps/web/ce/components/views/publish/modal.tsx +++ /dev/null @@ -1,18 +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 { IProjectView } from "@plane/types"; - -type Props = { - isOpen: boolean; - view: IProjectView; - onClose: () => void; -}; - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export function PublishViewModal(props: Props) { - return <>; -} diff --git a/apps/web/ce/components/workflow/index.ts b/apps/web/ce/components/workflow/index.ts deleted file mode 100644 index 4bdac48e5c7..00000000000 --- a/apps/web/ce/components/workflow/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./state-option"; -export * from "./use-workflow-drag-n-drop"; -export * from "./workflow-disabled-message"; -export * from "./workflow-group-tree"; -export * from "./workflow-disabled-overlay"; diff --git a/apps/web/ce/components/workflow/workflow-disabled-message.tsx b/apps/web/ce/components/workflow/workflow-disabled-message.tsx deleted file mode 100644 index dad8cf36e98..00000000000 --- a/apps/web/ce/components/workflow/workflow-disabled-message.tsx +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -/* eslint-disable @typescript-eslint/no-unused-vars */ -type Props = { - parentStateId: string; - className?: string; -}; - -export function WorkFlowDisabledMessage(props: Props) { - return <>; -} diff --git a/apps/web/ce/components/workflow/workflow-disabled-overlay.tsx b/apps/web/ce/components/workflow/workflow-disabled-overlay.tsx deleted file mode 100644 index a5f22da0a10..00000000000 --- a/apps/web/ce/components/workflow/workflow-disabled-overlay.tsx +++ /dev/null @@ -1,18 +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 { observer } from "mobx-react"; - -export type TWorkflowDisabledOverlayProps = { - messageContainerRef: React.RefObject; - workflowDisabledSource: string; - shouldOverlayBeVisible: boolean; -}; - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export const WorkFlowDisabledOverlay = observer(function WorkFlowDisabledOverlay(props: TWorkflowDisabledOverlayProps) { - return <>; -}); diff --git a/apps/web/ce/components/workflow/workflow-group-tree.tsx b/apps/web/ce/components/workflow/workflow-group-tree.tsx deleted file mode 100644 index 9767e6c8929..00000000000 --- a/apps/web/ce/components/workflow/workflow-group-tree.tsx +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -/* eslint-disable @typescript-eslint/no-unused-vars */ -import type { TIssueGroupByOptions } from "@plane/types"; - -type Props = { - groupBy?: TIssueGroupByOptions; - groupId: string | undefined; -}; - -export function WorkFlowGroupTree(props: Props) { - return <>; -} diff --git a/apps/web/ce/components/workspace-notifications/index.ts b/apps/web/ce/components/workspace-notifications/index.ts deleted file mode 100644 index 1c9404afa7d..00000000000 --- a/apps/web/ce/components/workspace-notifications/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./list-root"; diff --git a/apps/web/ce/components/workspace-notifications/list-root.tsx b/apps/web/ce/components/workspace-notifications/list-root.tsx deleted file mode 100644 index 1edb479d1f6..00000000000 --- a/apps/web/ce/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/ce/components/workspace/app-switcher.tsx b/apps/web/ce/components/workspace/app-switcher.tsx deleted file mode 100644 index 4c1779e375d..00000000000 --- a/apps/web/ce/components/workspace/app-switcher.tsx +++ /dev/null @@ -1,11 +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"; - -export function WorkspaceAppSwitcher() { - return <>; -} diff --git a/apps/web/ce/components/workspace/billing/billing-actions-button.tsx b/apps/web/ce/components/workspace/billing/billing-actions-button.tsx deleted file mode 100644 index 99aeecae495..00000000000 --- a/apps/web/ce/components/workspace/billing/billing-actions-button.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 { observer } from "mobx-react"; - -export type TBillingActionsButtonProps = { - canPerformWorkspaceAdminActions: boolean; -}; - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export const BillingActionsButton = observer(function BillingActionsButton(props: TBillingActionsButtonProps) { - return <>; -}); diff --git a/apps/web/ce/components/workspace/billing/index.ts b/apps/web/ce/components/workspace/billing/index.ts deleted file mode 100644 index d980334597b..00000000000 --- a/apps/web/ce/components/workspace/billing/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./root"; diff --git a/apps/web/ce/components/workspace/members/index.ts b/apps/web/ce/components/workspace/members/index.ts deleted file mode 100644 index 7511bfeedb4..00000000000 --- a/apps/web/ce/components/workspace/members/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export * from "./invite-modal"; -export * from "./members-activity-button"; diff --git a/apps/web/ce/components/workspace/members/members-activity-button.tsx b/apps/web/ce/components/workspace/members/members-activity-button.tsx deleted file mode 100644 index a078b1960e6..00000000000 --- a/apps/web/ce/components/workspace/members/members-activity-button.tsx +++ /dev/null @@ -1,12 +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 { observer } from "mobx-react"; - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export const MembersActivityButton = observer(function MembersActivityButton(props: { workspaceSlug: string }) { - return <>; -}); diff --git a/apps/web/ce/components/workspace/sidebar/sidebar-item.tsx b/apps/web/ce/components/workspace/sidebar/sidebar-item.tsx deleted file mode 100644 index c6fbc8f9fec..00000000000 --- a/apps/web/ce/components/workspace/sidebar/sidebar-item.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/ce/components/workspace/sidebar/teams-sidebar-list.tsx b/apps/web/ce/components/workspace/sidebar/teams-sidebar-list.tsx deleted file mode 100644 index 3d6a97d14ee..00000000000 --- a/apps/web/ce/components/workspace/sidebar/teams-sidebar-list.tsx +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Copyright (c) 2023-present Plane Software, Inc. and contributors - * SPDX-License-Identifier: AGPL-3.0-only - * See the LICENSE file for details. - */ - -export function SidebarTeamsList() { - return null; -} diff --git a/apps/web/ce/components/active-cycles/workspace-active-cycles-upgrade.tsx b/apps/web/core/components/active-cycles/workspace-active-cycles-upgrade.tsx similarity index 100% rename from apps/web/ce/components/active-cycles/workspace-active-cycles-upgrade.tsx rename to apps/web/core/components/active-cycles/workspace-active-cycles-upgrade.tsx diff --git a/apps/web/ce/components/analytics/tabs.tsx b/apps/web/core/components/analytics/tabs.tsx similarity index 100% rename from apps/web/ce/components/analytics/tabs.tsx rename to apps/web/core/components/analytics/tabs.tsx diff --git a/apps/web/ce/components/analytics/use-analytics-tabs.tsx b/apps/web/core/components/analytics/use-analytics-tabs.tsx similarity index 100% rename from apps/web/ce/components/analytics/use-analytics-tabs.tsx rename to apps/web/core/components/analytics/use-analytics-tabs.tsx diff --git a/apps/web/core/components/appearance/theme-switcher.tsx b/apps/web/core/components/appearance/theme-switcher.tsx index 4ec2eba432c..38cecb644e9 100644 --- a/apps/web/core/components/appearance/theme-switcher.tsx +++ b/apps/web/core/components/appearance/theme-switcher.tsx @@ -12,6 +12,7 @@ import type { I_THEME_OPTION } from "@plane/constants"; import { THEME_OPTIONS } from "@plane/constants"; import { useTranslation } from "@plane/i18n"; import { setPromiseToast } from "@plane/propel/toast"; +import { applyCustomTheme } from "@plane/utils"; // components import { CustomThemeSelector } from "@/components/core/theme/custom-theme-selector"; import { ThemeSwitch } from "@/components/core/theme/theme-switch"; @@ -34,31 +35,50 @@ export const ThemeSwitcher = observer(function ThemeSwitcher(props: { const { t } = useTranslation(); // derived values const currentTheme = useMemo(() => { + // oxlint-disable-next-line no-shadow const userThemeOption = THEME_OPTIONS.find((t) => t.value === userProfile?.theme?.theme); return userThemeOption || null; }, [userProfile?.theme?.theme]); const handleThemeChange = useCallback( - (themeOption: I_THEME_OPTION) => { + async (themeOption: I_THEME_OPTION) => { try { setTheme(themeOption.value); + + // If switching to custom theme and user has saved custom colors, apply them immediately + if ( + themeOption.value === "custom" && + userProfile?.theme?.primary && + userProfile?.theme?.background && + userProfile?.theme?.darkPalette !== undefined + ) { + applyCustomTheme( + userProfile.theme.primary, + userProfile.theme.background, + userProfile.theme.darkPalette ? "dark" : "light" + ); + } + const updatePromise = updateUserTheme({ theme: themeOption.value }); setPromiseToast(updatePromise, { loading: "Updating theme...", success: { - title: "Success!", - message: () => "Theme updated successfully!", + title: "Theme updated", + message: () => "Reloading to apply changes...", }, error: { title: "Error!", - message: () => "Failed to update the theme", + message: () => "Failed to update theme. Please try again.", }, }); + // Wait for the promise to resolve, then reload after showing toast + await updatePromise; + window.location.reload(); } catch (error) { console.error("Error updating theme:", error); } }, - [updateUserTheme] + [setTheme, updateUserTheme, userProfile] ); if (!userProfile) return null; @@ -68,7 +88,14 @@ export const ThemeSwitcher = observer(function ThemeSwitcher(props: { } + control={ + { + void handleThemeChange(themeOption); + }} + /> + } /> {userProfile.theme?.theme === "custom" && } diff --git a/apps/web/ce/components/breadcrumbs/common.tsx b/apps/web/core/components/breadcrumbs/common.tsx similarity index 100% rename from apps/web/ce/components/breadcrumbs/common.tsx rename to apps/web/core/components/breadcrumbs/common.tsx diff --git a/apps/web/ce/components/breadcrumbs/project.tsx b/apps/web/core/components/breadcrumbs/project.tsx similarity index 96% rename from apps/web/ce/components/breadcrumbs/project.tsx rename to apps/web/core/components/breadcrumbs/project.tsx index 0a43d91e341..b997ad5fac8 100644 --- a/apps/web/ce/components/breadcrumbs/project.tsx +++ b/apps/web/core/components/breadcrumbs/project.tsx @@ -36,6 +36,7 @@ export const ProjectBreadcrumb = observer(function ProjectBreadcrumb(props: TPro // derived values const switcherOptions = joinedProjectIds + // oxlint-disable-next-line no-shadow .map((projectId) => { const project = getPartialProjectById(projectId); return { @@ -54,6 +55,7 @@ export const ProjectBreadcrumb = observer(function ProjectBreadcrumb(props: TPro .filter((option) => option !== undefined) as ICustomSearchSelectOption[]; // helpers + // oxlint-disable-next-line unicorn/consistent-function-scoping const renderIcon = (projectDetails: TProject) => ( diff --git a/apps/web/ce/components/browse/workItem-detail.tsx b/apps/web/core/components/browse/workItem-detail.tsx similarity index 100% rename from apps/web/ce/components/browse/workItem-detail.tsx rename to apps/web/core/components/browse/workItem-detail.tsx diff --git a/apps/web/core/components/comments/card/root.tsx b/apps/web/core/components/comments/card/root.tsx index 006a365dd23..b7837c4c592 100644 --- a/apps/web/core/components/comments/card/root.tsx +++ b/apps/web/core/components/comments/card/root.tsx @@ -9,10 +9,10 @@ import { observer } from "mobx-react"; // plane imports import type { EditorRefApi } from "@plane/editor"; import type { TIssueComment, TCommentsOperations } from "@plane/types"; -// plane web imports -import { CommentBlock, CommentCardDisplay } from "@/plane-web/components/comments"; // local imports import { CommentQuickActions } from "../quick-actions"; +import { CommentBlock } from "../comment-block"; +import { CommentCardDisplay } from "./display"; type TCommentCard = { workspaceSlug: string; diff --git a/apps/web/ce/components/comments/comment-block.tsx b/apps/web/core/components/comments/comment-block.tsx similarity index 100% rename from apps/web/ce/components/comments/comment-block.tsx rename to apps/web/core/components/comments/comment-block.tsx diff --git a/apps/web/ce/components/common/extended-app-header.tsx b/apps/web/core/components/common/extended-app-header.tsx similarity index 100% rename from apps/web/ce/components/common/extended-app-header.tsx rename to apps/web/core/components/common/extended-app-header.tsx diff --git a/apps/web/ce/components/common/modal/global.tsx b/apps/web/core/components/common/modal/global.tsx similarity index 100% rename from apps/web/ce/components/common/modal/global.tsx rename to apps/web/core/components/common/modal/global.tsx diff --git a/apps/web/core/components/common/quick-actions-helper.tsx b/apps/web/core/components/common/quick-actions-helper.tsx index 4b9af1dadde..a79b440248e 100644 --- a/apps/web/core/components/common/quick-actions-helper.tsx +++ b/apps/web/core/components/common/quick-actions-helper.tsx @@ -8,7 +8,7 @@ import type { ICycle, IModule, IProjectView, IWorkspaceView } from "@plane/types"; import type { TContextMenuItem } from "@plane/ui"; // hooks -import { useQuickActionsFactory } from "@/plane-web/components/common/quick-actions-factory"; +import { useQuickActionsFactory } from "@/components/common/quick-actions-factory"; // Types interface UseCycleMenuItemsProps { diff --git a/apps/web/core/components/core/app-header.tsx b/apps/web/core/components/core/app-header.tsx index 4ea58e36968..13d13712054 100644 --- a/apps/web/core/components/core/app-header.tsx +++ b/apps/web/core/components/core/app-header.tsx @@ -10,7 +10,7 @@ import { observer } from "mobx-react"; import { Row } from "@plane/ui"; // components import { cn } from "@plane/utils"; -import { ExtendedAppHeader } from "@/plane-web/components/common/extended-app-header"; +import { ExtendedAppHeader } from "@/components/common/extended-app-header"; export interface AppHeaderProps { header: ReactNode; @@ -27,6 +27,7 @@ export const AppHeader = observer(function AppHeader(props: AppHeaderProps) { + {/* eslint-disable-next-line oxc/const-comparisons */} {mobileHeader && mobileHeader} ); diff --git a/apps/web/core/components/core/modals/bulk-delete-issues-modal-item.tsx b/apps/web/core/components/core/modals/bulk-delete-issues-modal-item.tsx index f76cb4cba95..51f7c042854 100644 --- a/apps/web/core/components/core/modals/bulk-delete-issues-modal-item.tsx +++ b/apps/web/core/components/core/modals/bulk-delete-issues-modal-item.tsx @@ -8,8 +8,8 @@ import { observer } from "mobx-react"; import { Combobox } from "@headlessui/react"; // hooks import type { ISearchIssueResponse } from "@plane/types"; -// plane web hooks -import { IssueIdentifier } from "@/plane-web/components/issues/issue-details/issue-identifier"; +// components +import { IssueIdentifier } from "@/components/issues/issue-detail/issue-identifier"; interface Props { issue: ISearchIssueResponse; diff --git a/apps/web/core/components/core/modals/existing-issues-list-modal.tsx b/apps/web/core/components/core/modals/existing-issues-list-modal.tsx index 71836435185..1c5122f1794 100644 --- a/apps/web/core/components/core/modals/existing-issues-list-modal.tsx +++ b/apps/web/core/components/core/modals/existing-issues-list-modal.tsx @@ -22,11 +22,10 @@ import { generateWorkItemLink, getTabIndex } from "@plane/utils"; // hooks import useDebounce from "@/hooks/use-debounce"; import { usePlatformOS } from "@/hooks/use-platform-os"; -// plane web components -import { IssueIdentifier } from "@/plane-web/components/issues/issue-details/issue-identifier"; // services import { ProjectService } from "@/services/project"; // components +import { IssueIdentifier } from "@/components/issues/issue-detail/issue-identifier"; import { IssueSearchModalEmptyState } from "./issue-search-modal-empty-state"; type Props = { diff --git a/apps/web/core/components/cycles/active-cycle/cycle-stats.tsx b/apps/web/core/components/cycles/active-cycle/cycle-stats.tsx index f6ea00ba6c6..56dc05860e7 100644 --- a/apps/web/core/components/cycles/active-cycle/cycle-stats.tsx +++ b/apps/web/core/components/cycles/active-cycle/cycle-stats.tsx @@ -33,13 +33,12 @@ import userImage from "@/app/assets/user.png?url"; import { SingleProgressStats } from "@/components/core/sidebar/single-progress-stats"; import { StateDropdown } from "@/components/dropdowns/state/dropdown"; import { SimpleEmptyState } from "@/components/empty-state/simple-empty-state-root"; +import { IssueIdentifier } from "@/components/issues/issue-detail/issue-identifier"; // hooks import { useIssueDetail } from "@/hooks/store/use-issue-detail"; import { useIssues } from "@/hooks/store/use-issues"; import { useIntersectionObserver } from "@/hooks/use-intersection-observer"; import useLocalStorage from "@/hooks/use-local-storage"; -// plane web components -import { IssueIdentifier } from "@/plane-web/components/issues/issue-details/issue-identifier"; // store import type { ActiveCycleIssueDetails } from "@/store/issue/cycle"; diff --git a/apps/web/ce/components/cycles/active-cycle/root.tsx b/apps/web/core/components/cycles/active-cycle/root.tsx similarity index 100% rename from apps/web/ce/components/cycles/active-cycle/root.tsx rename to apps/web/core/components/cycles/active-cycle/root.tsx diff --git a/apps/web/core/components/cycles/analytics-sidebar/issue-progress.tsx b/apps/web/core/components/cycles/analytics-sidebar/issue-progress.tsx index 738856d20ea..5d2806154ea 100644 --- a/apps/web/core/components/cycles/analytics-sidebar/issue-progress.tsx +++ b/apps/web/core/components/cycles/analytics-sidebar/issue-progress.tsx @@ -19,9 +19,9 @@ import { getDate } from "@plane/utils"; import { useCycle } from "@/hooks/store/use-cycle"; // plane web components import { useWorkItemFilters } from "@/hooks/store/work-item-filters/use-work-item-filters"; -import { SidebarChartRoot } from "@/plane-web/components/cycles"; // local imports import { CycleProgressStats } from "./progress-stats"; +import { SidebarChart } from "./sidebar-chart"; type TCycleAnalyticsProgress = { workspaceSlug: string; @@ -131,7 +131,7 @@ export const CycleAnalyticsProgress = observer(function CycleAnalyticsProgress(p {cycleStartDate && cycleEndDate ? ( <> {isCycleDateValid && ( - + )} {/* progress detailed view */} {chartDistributionData && ( diff --git a/apps/web/ce/components/cycles/analytics-sidebar/base.tsx b/apps/web/core/components/cycles/analytics-sidebar/sidebar-chart.tsx similarity index 100% rename from apps/web/ce/components/cycles/analytics-sidebar/base.tsx rename to apps/web/core/components/cycles/analytics-sidebar/sidebar-chart.tsx diff --git a/apps/web/core/components/cycles/list/cycle-list-item-action.tsx b/apps/web/core/components/cycles/list/cycle-list-item-action.tsx index adade682f75..17b9c314532 100644 --- a/apps/web/core/components/cycles/list/cycle-list-item-action.tsx +++ b/apps/web/core/components/cycles/list/cycle-list-item-action.tsx @@ -31,8 +31,6 @@ import { useUserPermissions } from "@/hooks/store/user"; import { useAppRouter } from "@/hooks/use-app-router"; import { usePlatformOS } from "@/hooks/use-platform-os"; import { useTimeZoneConverter } from "@/hooks/use-timezone-converter"; -// plane web components -import { CycleAdditionalActions } from "@/plane-web/components/cycles"; // local imports import { CycleQuickActions } from "../quick-actions"; import { TransferIssuesModal } from "../transfer-issues-modal"; @@ -109,6 +107,7 @@ export const CycleListItemAction = observer(function CycleListItemAction(props: if (!workspaceSlug || !projectId) return; const addToFavoritePromise = addCycleToFavorites(workspaceSlug?.toString(), projectId.toString(), cycleId).then( + // oxlint-disable-next-line promise/always-return () => { if (!isFavoriteMenuOpen) toggleFavoriteMenu(true); } @@ -192,8 +191,8 @@ export const CycleListItemAction = observer(function CycleListItemAction(props: {cycleDetails.total_issues} )} - {showTransferIssues && ( + // oxlint-disable-next-line jsx_a11y/click-events-have-key-events oxlint-disable-next-line jsx_a11y/no-static-element-interactions
{ diff --git a/apps/web/core/components/cycles/list/root.tsx b/apps/web/core/components/cycles/list/root.tsx index 07351decfbb..6831f616e90 100644 --- a/apps/web/core/components/cycles/list/root.tsx +++ b/apps/web/core/components/cycles/list/root.tsx @@ -11,11 +11,11 @@ import { Disclosure } from "@headlessui/react"; import { useTranslation } from "@plane/i18n"; import { ContentWrapper, ERowVariant } from "@plane/ui"; import { ListLayout } from "@/components/core/list"; -import { ActiveCycleRoot } from "@/plane-web/components/cycles"; // local imports import { CyclePeekOverview } from "../cycle-peek-overview"; import { CycleListGroupHeader } from "./cycle-list-group-header"; import { CyclesListMap } from "./cycles-list-map"; +import { ActiveCycleRoot } from "../active-cycle/root"; export interface ICyclesList { completedCycleIds: string[]; diff --git a/apps/web/core/components/dropdowns/intake-state/base.tsx b/apps/web/core/components/dropdowns/intake-state/base.tsx index 1dbf7bc2fbe..c18379ce488 100644 --- a/apps/web/core/components/dropdowns/intake-state/base.tsx +++ b/apps/web/core/components/dropdowns/intake-state/base.tsx @@ -22,7 +22,7 @@ import type { TDropdownProps } from "@/components/dropdowns/types"; // hooks import { useDropdown } from "@/hooks/use-dropdown"; // plane web imports -import { StateOption } from "@/plane-web/components/workflow"; +import { StateOption } from "@/components/workflow"; export type TWorkItemStateDropdownBaseProps = TDropdownProps & { alwaysAllowStateChange?: boolean; @@ -202,6 +202,7 @@ export const WorkItemStateDropdownBase = observer(function WorkItemStateDropdown ); return ( + // oxlint-disable-next-line jsx_a11y/no-static-element-interactions ; default: - return ; + return null; } } diff --git a/apps/web/ce/components/cycles/end-cycle/index.ts b/apps/web/core/components/epic-modal/index.ts similarity index 100% rename from apps/web/ce/components/cycles/end-cycle/index.ts rename to apps/web/core/components/epic-modal/index.ts diff --git a/apps/web/ce/components/epics/epic-modal/modal.tsx b/apps/web/core/components/epic-modal/modal.tsx similarity index 100% rename from apps/web/ce/components/epics/epic-modal/modal.tsx rename to apps/web/core/components/epic-modal/modal.tsx diff --git a/apps/web/ce/components/estimates/helper.tsx b/apps/web/core/components/estimates/create/helper.tsx similarity index 100% rename from apps/web/ce/components/estimates/helper.tsx rename to apps/web/core/components/estimates/create/helper.tsx diff --git a/apps/web/core/components/estimates/create/stage-one.tsx b/apps/web/core/components/estimates/create/stage-one.tsx index f6b4c999d3e..d3988da2898 100644 --- a/apps/web/core/components/estimates/create/stage-one.tsx +++ b/apps/web/core/components/estimates/create/stage-one.tsx @@ -10,13 +10,12 @@ import { EEstimateSystem, ESTIMATE_SYSTEMS } from "@plane/constants"; import { useTranslation } from "@plane/i18n"; import { Tooltip } from "@plane/propel/tooltip"; import type { TEstimateSystemKeys } from "@plane/types"; -// components +// helpers +import { isEstimateSystemEnabled } from "./helper"; import { convertMinutesToHoursMinutesString } from "@plane/utils"; -// plane web imports -import { isEstimateSystemEnabled } from "@/plane-web/components/estimates/helper"; -import { UpgradeBadge } from "@/plane-web/components/workspace/upgrade-badge"; +// components +import { UpgradeBadge } from "@/components/workspace/upgrade-badge"; import { RadioInput } from "../radio-select"; -// local imports type TEstimateCreateStageOne = { estimateSystem: TEstimateSystemKeys; diff --git a/apps/web/ce/components/estimates/estimate-list-item-buttons.tsx b/apps/web/core/components/estimates/estimate-list-item-buttons.tsx similarity index 100% rename from apps/web/ce/components/estimates/estimate-list-item-buttons.tsx rename to apps/web/core/components/estimates/estimate-list-item-buttons.tsx diff --git a/apps/web/core/components/estimates/estimate-list-item.tsx b/apps/web/core/components/estimates/estimate-list-item.tsx index e16dcf99126..a93cc8dac57 100644 --- a/apps/web/core/components/estimates/estimate-list-item.tsx +++ b/apps/web/core/components/estimates/estimate-list-item.tsx @@ -9,12 +9,11 @@ import { observer } from "mobx-react"; import { EEstimateSystem } from "@plane/constants"; import { convertMinutesToHoursMinutesString } from "@plane/utils"; // components +import { EstimateListItemButtons } from "./estimate-list-item-buttons"; import { SettingsBoxedControlItem } from "@/components/settings/boxed-control-item"; // hooks import { useProjectEstimates } from "@/hooks/store/estimates"; import { useEstimate } from "@/hooks/store/estimates/use-estimate"; -// plane web imports -import { EstimateListItemButtons } from "@/plane-web/components/estimates"; type TEstimateListItem = { estimateId: string; diff --git a/apps/web/core/components/estimates/inputs/root.tsx b/apps/web/core/components/estimates/inputs/root.tsx index 86b743ff7b2..3d122f10447 100644 --- a/apps/web/core/components/estimates/inputs/root.tsx +++ b/apps/web/core/components/estimates/inputs/root.tsx @@ -7,8 +7,6 @@ // plane imports import type { TEstimateSystemKeys } from "@plane/types"; import { EEstimateSystem } from "@plane/types"; -// plane web imports -import { EstimateTimeInput } from "@/plane-web/components/estimates/inputs"; // local imports import { EstimateNumberInput } from "./number-input"; import { EstimateTextInput } from "./text-input"; @@ -33,12 +31,7 @@ export function EstimateInputRoot(props: TEstimateInputRootProps) { case EEstimateSystem.CATEGORIES: return ; case EEstimateSystem.TIME: - return ( - - ); + return <>; default: return null; } diff --git a/apps/web/core/components/estimates/points/preview.tsx b/apps/web/core/components/estimates/points/preview.tsx index 59da01f93c6..c07038bd908 100644 --- a/apps/web/core/components/estimates/points/preview.tsx +++ b/apps/web/core/components/estimates/points/preview.tsx @@ -13,8 +13,6 @@ import { useTranslation } from "@plane/i18n"; import { EditIcon, TrashIcon } from "@plane/propel/icons"; import type { TEstimatePointsObject, TEstimateSystemKeys, TEstimateTypeErrorObject } from "@plane/types"; import { convertMinutesToHoursMinutesString } from "@plane/utils"; -// plane web imports -import { EstimatePointDelete } from "@/plane-web/components/estimates"; // local imports import { EstimatePointUpdate } from "./update"; @@ -73,6 +71,7 @@ export const EstimatePointItemPreview = observer(function EstimatePointItemPrevi {t("project_settings.estimates.create.enter_estimate_point")} )}
+ {/* oxlint-disable-next-line jsx_a11y/click-events-have-key-events oxlint-disable-next-line jsx_a11y/no-static-element-interactions */}
setEstimatePointEditToggle(true)} @@ -80,6 +79,7 @@ export const EstimatePointItemPreview = observer(function EstimatePointItemPrevi
{estimatePoints.length > estimateCount.min && ( + // oxlint-disable-next-line jsx_a11y/click-events-have-key-events oxlint-disable-next-line jsx_a11y/no-static-element-interactions
@@ -111,20 +111,6 @@ export const EstimatePointItemPreview = observer(function EstimatePointItemPrevi handleEstimatePointError={handleEstimatePointError} /> )} - - {estimateId && estimatePointId && estimatePointDeleteToggle && ( - estimateId && setEstimatePointDeleteToggle(false)} - estimatePointError={estimatePointError} - handleEstimatePointError={handleEstimatePointError} - estimateSystem={estimateType} - /> - )}
); }); diff --git a/apps/web/core/components/estimates/root.tsx b/apps/web/core/components/estimates/root.tsx index 85d18cf5bf2..036fa1a8ff0 100644 --- a/apps/web/core/components/estimates/root.tsx +++ b/apps/web/core/components/estimates/root.tsx @@ -16,8 +16,6 @@ import { SettingsHeading } from "@/components/settings/heading"; import { EmptyStateCompact } from "@plane/propel/empty-state"; import { useProjectEstimates } from "@/hooks/store/estimates"; import { useProject } from "@/hooks/store/use-project"; -// plane web components -import { UpdateEstimateModal } from "@/plane-web/components/estimates"; // local imports import { CreateEstimateModal } from "./create/modal"; import { DeleteEstimateModal } from "./delete/modal"; @@ -38,6 +36,7 @@ export const EstimateRoot = observer(function EstimateRoot(props: TEstimateRoot) const { loader, currentActiveEstimateId, archivedEstimateIds, getProjectEstimates } = useProjectEstimates(); // states const [isEstimateCreateModalOpen, setIsEstimateCreateModalOpen] = useState(false); + // oxlint-disable-next-line no-unused-vars const [estimateToUpdate, setEstimateToUpdate] = useState(); const [estimateToDelete, setEstimateToDelete] = useState(); @@ -134,17 +133,11 @@ export const EstimateRoot = observer(function EstimateRoot(props: TEstimateRoot) isOpen={isEstimateCreateModalOpen} handleClose={() => setIsEstimateCreateModalOpen(false)} /> - setEstimateToUpdate(undefined)} - /> setEstimateToDelete(undefined)} /> diff --git a/apps/web/ce/components/gantt-chart/blocks/block-row-list.tsx b/apps/web/core/components/gantt-chart/blocks/block-row-list.tsx similarity index 100% rename from apps/web/ce/components/gantt-chart/blocks/block-row-list.tsx rename to apps/web/core/components/gantt-chart/blocks/block-row-list.tsx diff --git a/apps/web/ce/components/gantt-chart/blocks/blocks-list.tsx b/apps/web/core/components/gantt-chart/blocks/blocks-list.tsx similarity index 100% rename from apps/web/ce/components/gantt-chart/blocks/blocks-list.tsx rename to apps/web/core/components/gantt-chart/blocks/blocks-list.tsx diff --git a/apps/web/core/components/gantt-chart/chart/main-content.tsx b/apps/web/core/components/gantt-chart/chart/main-content.tsx index 16f1109dfaa..f2f53e1da06 100644 --- a/apps/web/core/components/gantt-chart/chart/main-content.tsx +++ b/apps/web/core/components/gantt-chart/chart/main-content.tsx @@ -22,15 +22,9 @@ import { GanttChartSidebar, MonthChartView, QuarterChartView, WeekChartView } fr // helpers // hooks import { useTimeLineChartStore } from "@/hooks/use-timeline-chart"; -// plane web components -import { - TimelineDependencyPaths, - TimelineDraggablePath, - GanttAdditionalLayers, -} from "@/plane-web/components/gantt-chart"; -import { GanttChartRowList } from "@/plane-web/components/gantt-chart/blocks/block-row-list"; -import { GanttChartBlocksList } from "@/plane-web/components/gantt-chart/blocks/blocks-list"; -import { IssueBulkOperationsRoot } from "@/plane-web/components/issues/bulk-operations"; +import { GanttChartRowList } from "@/components/gantt-chart/blocks/block-row-list"; +import { GanttChartBlocksList } from "@/components/gantt-chart/blocks/blocks-list"; +import { IssueBulkOperationsRoot } from "@/components/issues/bulk-operations"; import { useBulkOperationStatus } from "@/hooks/use-bulk-operation-status"; // local imports import { DEFAULT_BLOCK_WIDTH, GANTT_SELECT_GROUP, HEADER_HEIGHT } from "../constants"; @@ -109,6 +103,7 @@ export const GanttChartMainContent = observer(function GanttChartMainContent(pro canScroll: ({ source }) => source.data.dragInstanceId === "GANTT_REORDER", }) ); + // oxlint-disable-next-line eslint-plugin-react-hooks/exhaustive-deps }, [ganttContainerRef?.current]); // handling scroll functionality @@ -218,9 +213,6 @@ export const GanttChartMainContent = observer(function GanttChartMainContent(pro selectionHelpers={helpers} ganttContainerRef={ganttContainerRef} /> - - - - {/* left resize drag handle */} - {(typeof enableDependency === "function" ? enableDependency(block.id) : enableDependency) && ( - - )} + {/* oxlint-disable-next-line jsx_a11y/no-static-element-interactions */}
- {(typeof enableDependency === "function" ? enableDependency(block.id) : enableDependency) && ( - - )}
); }); diff --git a/apps/web/ce/components/global/product-updates/changelog.tsx b/apps/web/core/components/global/product-updates/changelog.tsx similarity index 95% rename from apps/web/ce/components/global/product-updates/changelog.tsx rename to apps/web/core/components/global/product-updates/changelog.tsx index 06de2360829..cfddb2af4f2 100644 --- a/apps/web/ce/components/global/product-updates/changelog.tsx +++ b/apps/web/core/components/global/product-updates/changelog.tsx @@ -78,6 +78,7 @@ export const ProductUpdatesChangelog = observer(function ProductUpdatesChangelog )} + {/* eslint-disable-next-line react/iframe-missing-sandbox oxlint-disable-next-line jsx_a11y/iframe-has-title */}