From 82fa1347d10a3653007b28e671c5ce4976b95718 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Wed, 3 Jul 2024 19:14:15 +0530 Subject: [PATCH] [WEB-1843] chore: active cycles file restructuring. (#5031) --- web/app/[workspaceSlug]/(projects)/active-cycles/page.tsx | 5 +++-- web/ce/components/active-cycles/index.ts | 2 ++ web/ce/components/active-cycles/root.tsx | 3 +++ .../active-cycles}/workspace-active-cycles-upgrade.tsx | 0 web/core/components/workspace/index.ts | 1 - web/ee/components/active-cycles/index.ts | 2 ++ web/ee/components/active-cycles/root.tsx | 1 + .../active-cycles/workspace-active-cycles-upgrade.tsx | 1 + 8 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 web/ce/components/active-cycles/index.ts create mode 100644 web/ce/components/active-cycles/root.tsx rename web/{core/components/workspace => ce/components/active-cycles}/workspace-active-cycles-upgrade.tsx (100%) create mode 100644 web/ee/components/active-cycles/index.ts create mode 100644 web/ee/components/active-cycles/root.tsx create mode 100644 web/ee/components/active-cycles/workspace-active-cycles-upgrade.tsx diff --git a/web/app/[workspaceSlug]/(projects)/active-cycles/page.tsx b/web/app/[workspaceSlug]/(projects)/active-cycles/page.tsx index 5f556c4be..f1b389383 100644 --- a/web/app/[workspaceSlug]/(projects)/active-cycles/page.tsx +++ b/web/app/[workspaceSlug]/(projects)/active-cycles/page.tsx @@ -3,9 +3,10 @@ import { observer } from "mobx-react"; // components import { PageHead } from "@/components/core"; -import { WorkspaceActiveCyclesUpgrade } from "@/components/workspace"; // hooks import { useWorkspace } from "@/hooks/store"; +// plane web components +import { WorkspaceActiveCyclesRoot } from "@/plane-web/components/active-cycles"; const WorkspaceActiveCyclesPage = observer(() => { const { currentWorkspace } = useWorkspace(); @@ -15,7 +16,7 @@ const WorkspaceActiveCyclesPage = observer(() => { return ( <> - + ); }); diff --git a/web/ce/components/active-cycles/index.ts b/web/ce/components/active-cycles/index.ts new file mode 100644 index 000000000..87c131821 --- /dev/null +++ b/web/ce/components/active-cycles/index.ts @@ -0,0 +1,2 @@ +export * from "./root"; +export * from "./workspace-active-cycles-upgrade"; diff --git a/web/ce/components/active-cycles/root.tsx b/web/ce/components/active-cycles/root.tsx new file mode 100644 index 000000000..3c073890f --- /dev/null +++ b/web/ce/components/active-cycles/root.tsx @@ -0,0 +1,3 @@ +import { WorkspaceActiveCyclesUpgrade } from "@/plane-web/components/active-cycles"; + +export const WorkspaceActiveCyclesRoot = () => ; diff --git a/web/core/components/workspace/workspace-active-cycles-upgrade.tsx b/web/ce/components/active-cycles/workspace-active-cycles-upgrade.tsx similarity index 100% rename from web/core/components/workspace/workspace-active-cycles-upgrade.tsx rename to web/ce/components/active-cycles/workspace-active-cycles-upgrade.tsx diff --git a/web/core/components/workspace/index.ts b/web/core/components/workspace/index.ts index 786f0c70a..a8f404d1b 100644 --- a/web/core/components/workspace/index.ts +++ b/web/core/components/workspace/index.ts @@ -6,4 +6,3 @@ export * from "./create-workspace-form"; export * from "./delete-workspace-modal"; export * from "./logo"; export * from "./send-workspace-invitation-modal"; -export * from "./workspace-active-cycles-upgrade"; diff --git a/web/ee/components/active-cycles/index.ts b/web/ee/components/active-cycles/index.ts new file mode 100644 index 000000000..87c131821 --- /dev/null +++ b/web/ee/components/active-cycles/index.ts @@ -0,0 +1,2 @@ +export * from "./root"; +export * from "./workspace-active-cycles-upgrade"; diff --git a/web/ee/components/active-cycles/root.tsx b/web/ee/components/active-cycles/root.tsx new file mode 100644 index 000000000..a7810d113 --- /dev/null +++ b/web/ee/components/active-cycles/root.tsx @@ -0,0 +1 @@ +export * from "ce/components/active-cycles/root"; diff --git a/web/ee/components/active-cycles/workspace-active-cycles-upgrade.tsx b/web/ee/components/active-cycles/workspace-active-cycles-upgrade.tsx new file mode 100644 index 000000000..c77348687 --- /dev/null +++ b/web/ee/components/active-cycles/workspace-active-cycles-upgrade.tsx @@ -0,0 +1 @@ +export * from "ce/components/active-cycles/workspace-active-cycles-upgrade"; \ No newline at end of file