π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
chore: cycle store restructuring (#6405)
Vamsi Krishna8acea7f5993a
diff --git a/web/ce/components/cycles/end-cycle/modal.tsx b/web/ce/components/cycles/end-cycle/modal.tsxindex de66c1a9cb..754c84f9f4 100644--- a/web/ce/components/cycles/end-cycle/modal.tsx+++ b/web/ce/components/cycles/end-cycle/modal.tsx@@ -7,6 +7,7 @@ interface Props {projectId: string;workspaceSlug: string;transferrableIssuesCount: number;+ cycleName: string;}export const EndCycleModal: React.FC<Props> = () => <></>;diff --git a/web/ce/store/cycle/index.ts b/web/ce/store/cycle/index.tsnew file mode 100644index 0000000000..d9b3080a86--- /dev/null+++ b/web/ce/store/cycle/index.ts@@ -0,0 +1 @@+export type { ICycleStore } from "@/store/cycle.store";diff --git a/web/core/components/cycles/list/cycle-list-item-action.tsx b/web/core/components/cycles/list/cycle-list-item-action.tsxindex a627353fb7..8f546d2389 100644--- a/web/core/components/cycles/list/cycle-list-item-action.tsx+++ b/web/core/components/cycles/list/cycle-list-item-action.tsx@@ -82,10 +82,10 @@ export const CycleListItemAction: FC<Props> = observer((props) => {// derived valuesconst cycleStatus = cycleDetails.status ? (cycleDetails.status.toLocaleLowerCase() as TCycleGroups) : "draft";-+const showIssueCount = useMemo(() => cycleStatus === "draft" || cycleStatus === "upcoming", [cycleStatus]);- const showTransferIssues = cycleDetails.pending_issues > 0 && cycleStatus === "completed";+ const showTransferIssues = routerProjectId && cycleDetails.pending_issues > 0 && cycleStatus === "completed";const isEditingAllowed = allowPermissions([EUserPermissions.ADMIN, EUserPermissions.MEMBER],diff --git a/web/core/components/cycles/quick-actions.tsx b/web/core/components/cycles/quick-actions.tsxindex 0f6a27979f..a64f6fd16d 100644--- a/web/core/components/cycles/quick-actions.tsx+++ b/web/core/components/cycles/quick-actions.tsx@@ -177,6 +177,7 @@ export const CycleQuickActions: React.FC<Props> = observer((props) => {projectId={projectId}workspaceSlug={workspaceSlug}transferrableIssuesCount={cycleDetails.pending_issues}+ cycleName={cycleDetails.name}/>)}</div>diff --git a/web/core/hooks/store/use-cycle.ts b/web/core/hooks/store/use-cycle.tsindex b77440bdd7..08a6daa02d 100644--- a/web/core/hooks/store/use-cycle.ts+++ b/web/core/hooks/store/use-cycle.ts@@ -2,7 +2,7 @@ import { useContext } from "react";// mobx storeimport { StoreContext } from "@/lib/store-context";// types-import { ICycleStore } from "@/store/cycle.store";+import { ICycleStore } from "@/plane-web/store/cycle";export const useCycle = (): ICycleStore => {const context = useContext(StoreContext);diff --git a/web/ee/store/cycle/index.ts b/web/ee/store/cycle/index.tsnew file mode 100644index 0000000000..3614d60c00--- /dev/null+++ b/web/ee/store/cycle/index.ts@@ -0,0 +1 @@+export * from "@/store/cycle.store";