Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-522] chore:Estimate structure (#4801)

guru_sainath52617baf0e77
diff --git a/web/core/components/estimates/estimate-list-item-buttons.tsx b/web/ce/components/estimates/estimate-list-item-buttons.tsx
similarity index 56%
rename from web/core/components/estimates/estimate-list-item-buttons.tsx
rename to web/ce/components/estimates/estimate-list-item-buttons.tsx
index d2da059ee4..6911754f8c 100644
--- a/web/core/components/estimates/estimate-list-item-buttons.tsx
+++ b/web/ce/components/estimates/estimate-list-item-buttons.tsx
@@ -1,6 +1,7 @@
import { FC } from "react";
import { observer } from "mobx-react";
-import { Pen, Trash } from "lucide-react";
+import { Crown, Pen, Trash } from "lucide-react";
+import { Tooltip } from "@plane/ui";
type TEstimateListItem = {
estimateId: string;
@@ -12,17 +13,24 @@ type TEstimateListItem = {
};
export const EstimateListItemButtons: FC<TEstimateListItem> = observer((props) => {
- const { estimateId, isAdmin, isEditable, onEditClick, onDeleteClick } = props;
- if (!isAdmin || !isEditable) return <></>;
+ const { estimateId, isAdmin, isEditable, onDeleteClick } = props;
+ if (!isAdmin || !isEditable) return <></>;
return (
<div className="relative flex items-center gap-1">
- <button
- className="relative flex-shrink-0 w-6 h-6 flex justify-center items-center rounded cursor-pointer transition-colors overflow-hidden hover:bg-custom-background-80"
- onClick={() => onEditClick && onEditClick(estimateId)}
+ <Tooltip
+ tooltipContent={
+ <div className="relative flex items-center gap-2">
+ <div>Upgrade</div>
+ <Crown size={12} className="text-amber-400" />
+ </div>
+ }
+ position="top"
>
- <Pen size={12} />
- </button>
+ <button className="relative flex-shrink-0 w-6 h-6 flex justify-center items-center rounded cursor-pointer transition-colors overflow-hidden hover:bg-custom-background-80">
+ <Pen size={12} />
+ </button>
+ </Tooltip>
<button
className="relative flex-shrink-0 w-6 h-6 flex justify-center items-center rounded cursor-pointer transition-colors overflow-hidden hover:bg-custom-background-80"
onClick={() => onDeleteClick && onDeleteClick(estimateId)}
diff --git a/web/ce/components/estimates/index.ts b/web/ce/components/estimates/index.ts
new file mode 100644
index 0000000000..2dc47bba63
--- /dev/null
+++ b/web/ce/components/estimates/index.ts
@@ -0,0 +1,3 @@
+export * from "./estimate-list-item-buttons";
+
+export * from "./update";
diff --git a/web/ce/components/estimates/update/index.ts b/web/ce/components/estimates/update/index.ts
new file mode 100644
index 0000000000..031608e25f
--- /dev/null
+++ b/web/ce/components/estimates/update/index.ts
@@ -0,0 +1 @@
+export * from "./modal";
diff --git a/web/ce/components/estimates/update/modal.tsx b/web/ce/components/estimates/update/modal.tsx
new file mode 100644
index 0000000000..12b4ea6f66
--- /dev/null
+++ b/web/ce/components/estimates/update/modal.tsx
@@ -0,0 +1,14 @@
+"use client";
+
+import { FC } from "react";
+import { observer } from "mobx-react";
+
+type TUpdateEstimateModal = {
+ workspaceSlug: string;
+ projectId: string;
+ estimateId: string | undefined;
+ isOpen: boolean;
+ handleClose: () => void;
+};
+
+export const UpdateEstimateModal: FC<TUpdateEstimateModal> = observer(() => <></>);
diff --git a/web/core/constants/estimates.ts b/web/ce/constants/estimates.ts
similarity index 86%
rename from web/core/constants/estimates.ts
rename to web/ce/constants/estimates.ts
index 4d55bd1bcc..5b068e400c 100644
--- a/web/core/constants/estimates.ts
+++ b/web/ce/constants/estimates.ts
@@ -13,8 +13,10 @@ export enum EEstimateUpdateStages {
SWITCH = "switch",
}
-export const minEstimatesCount = 2;
-export const maxEstimatesCount = 6;
+export const estimateCount = {
+ min: 2,
+ max: 6,
+};
export const ESTIMATE_SYSTEMS: TEstimateSystems = {
points: {
@@ -119,18 +121,3 @@ export const ESTIMATE_SYSTEMS: TEstimateSystems = {
is_ee: true,
},
};
-
-export const ESTIMATE_OPTIONS_STAGE_ONE = [
- {
- key: EEstimateUpdateStages.EDIT,
- title: "Add, update or remove estimates",
- description: "Manage current system either adding, updating or removing the points or categories.",
- is_ee: true,
- },
- {
- key: EEstimateUpdateStages.SWITCH,
- title: "Change estimate type",
- description: "Convert your points system to categories system and vice versa.",
- is_ee: true,
- },
-];
diff --git a/web/core/components/analytics/custom-analytics/select/y-axis.tsx b/web/core/components/analytics/custom-analytics/select/y-axis.tsx
index 426e653457..c9dc57d200 100644
--- a/web/core/components/analytics/custom-analytics/select/y-axis.tsx
+++ b/web/core/components/analytics/custom-analytics/select/y-axis.tsx
@@ -5,9 +5,10 @@ import { TYAxisValues } from "@plane/types";
import { CustomSelect } from "@plane/ui";
// constants
import { ANALYTICS_Y_AXIS_VALUES } from "@/constants/analytics";
-import { EEstimateSystem } from "@/constants/estimates";
// hooks
import { useAppRouter, useProjectEstimates } from "@/hooks/store";
+// plane web constants
+import { EEstimateSystem } from "@/plane-web/constants/estimates";
type Props = {
value: TYAxisValues;
diff --git a/web/core/components/cycles/analytics-sidebar/issue-progress.tsx b/web/core/components/cycles/analytics-sidebar/issue-progress.tsx
index 3c20c93dd6..0edf253ac8 100644
--- a/web/core/components/cycles/analytics-sidebar/issue-progress.tsx
+++ b/web/core/components/cycles/analytics-sidebar/issue-progress.tsx
@@ -13,12 +13,13 @@ import { CustomSelect, Spinner } from "@plane/ui";
import ProgressChart from "@/components/core/sidebar/progress-chart";
import { CycleProgressStats } from "@/components/cycles";
// constants
-import { EEstimateSystem } from "@/constants/estimates";
import { EIssueFilterType, EIssuesStoreType } from "@/constants/issue";
// helpers
import { getDate } from "@/helpers/date-time.helper";
// hooks
import { useIssues, useCycle, useProjectEstimates } from "@/hooks/store";
+// plane web constants
+import { EEstimateSystem } from "@/plane-web/constants/estimates";
type TCycleAnalyticsProgress = {
workspaceSlug: string;
diff --git a/web/core/components/cycles/analytics-sidebar/root.tsx b/web/core/components/cycles/analytics-sidebar/root.tsx
index 9a800af7b8..5193d46379 100644
--- a/web/core/components/cycles/analytics-sidebar/root.tsx
+++ b/web/core/components/cycles/analytics-sidebar/root.tsx
@@ -16,7 +16,6 @@ import { ArchiveCycleModal, CycleDeleteModal, CycleAnalyticsProgress } from "@/c
import { DateRangeDropdown } from "@/components/dropdowns";
// constants
import { CYCLE_STATUS } from "@/constants/cycle";
-import { EEstimateSystem } from "@/constants/estimates";
import { CYCLE_UPDATED } from "@/constants/event-tracker";
import { EUserWorkspaceRoles } from "@/constants/workspace";
// helpers
@@ -24,6 +23,8 @@ import { findHowManyDaysLeft, getDate, renderFormattedPayloadDate } from "@/help
import { copyUrlToClipboard } from "@/helpers/string.helper";
// hooks
import { useEventTracker, useCycle, useUser, useMember, useProjectEstimates } from "@/hooks/store";
+// plane web constants
+import { EEstimateSystem } from "@/plane-web/constants/estimates";
// services
import { CycleService } from "@/services/cycle.service";
diff --git a/web/core/components/estimates/create/modal.tsx b/web/core/components/estimates/create/modal.tsx
index 84a676e905..54e6062694 100644
--- a/web/core/components/estimates/create/modal.tsx
+++ b/web/core/components/estimates/create/modal.tsx
@@ -8,10 +8,10 @@ import { Button, TOAST_TYPE, setToast } from "@plane/ui";
// components
import { EModalPosition, EModalWidth, ModalCore } from "@/components/core";
import { EstimateCreateStageOne, EstimatePointCreateRoot } from "@/components/estimates";
-// constants
-import { EEstimateSystem, ESTIMATE_SYSTEMS } from "@/constants/estimates";
// hooks
import { useProjectEstimates } from "@/hooks/store";
+// plane web constants
+import { EEstimateSystem, ESTIMATE_SYSTEMS } from "@/plane-web/constants/estimates";
type TCreateEstimateModal = {
workspaceSlug: string;
diff --git a/web/core/components/estimates/create/stage-one.tsx b/web/core/components/estimates/create/stage-one.tsx
index 08e180907a..26d9e07050 100644
--- a/web/core/components/estimates/create/stage-one.tsx
+++ b/web/core/components/estimates/create/stage-one.tsx
@@ -6,8 +6,8 @@ import { TEstimateSystemKeys } from "@plane/types";
import { Tooltip } from "@plane/ui";
// components
import { RadioInput } from "@/components/estimates";
-// constants
-import { ESTIMATE_SYSTEMS } from "@/constants/estimates";
+// plane web constants
+import { ESTIMATE_SYSTEMS } from "@/plane-web/constants/estimates";
type TEstimateCreateStageOne = {
estimateSystem: TEstimateSystemKeys;
diff --git a/web/core/components/estimates/estimate-list-item.tsx b/web/core/components/estimates/estimate-list-item.tsx
index 8a27722a2e..734e45add7 100644
--- a/web/core/components/estimates/estimate-list-item.tsx
+++ b/web/core/components/estimates/estimate-list-item.tsx
@@ -4,7 +4,8 @@ import { observer } from "mobx-react";
import { cn } from "@/helpers/common.helper";
// hooks
import { useEstimate, useProjectEstimates } from "@/hooks/store";
-import { EstimateListItemButtons } from "./estimate-list-item-buttons";
+// plane web components
+import { EstimateListItemButtons } from "@/plane-web/components/estimates";
type TEstimateListItem = {
estimateId: string;
diff --git a/web/core/components/estimates/index.ts b/web/core/components/estimates/index.ts
index e62c4cabbc..9ae5fb41c6 100644
--- a/web/core/components/estimates/index.ts
+++ b/web/core/components/estimates/index.ts
@@ -10,14 +10,10 @@ export * from "./estimate-disable-switch";
// estimates
export * from "./estimate-list";
export * from "./estimate-list-item";
-export * from "./estimate-list-item-buttons";
// create
export * from "./create";
-// update
-export * from "./update";
-
// delete
export * from "./delete";
diff --git a/web/core/components/estimates/points/create-root.tsx b/web/core/components/estimates/points/create-root.tsx
index 969bef1ffd..53842fdb65 100644
--- a/web/core/components/estimates/points/create-root.tsx
+++ b/web/core/components/estimates/points/create-root.tsx
@@ -7,8 +7,8 @@ import { TEstimatePointsObject, TEstimateSystemKeys } from "@plane/types";
import { Button, Sortable } from "@plane/ui";
// components
import { EstimatePointCreate, EstimatePointItemPreview } from "@/components/estimates/points";
-// constants
-import { maxEstimatesCount } from "@/constants/estimates";
+// plane web constants
+import { estimateCount } from "@/plane-web/constants/estimates";
type TEstimatePointCreateRoot = {
workspaceSlug: string;
@@ -89,7 +89,7 @@ export const EstimatePointCreateRoot: FC<TEstimatePointCreateRoot> = observer((p
};
const handleCreate = () => {
- if (estimatePoints && estimatePoints.length + (estimatePointCreate?.length || 0) <= maxEstimatesCount - 1) {
+ if (estimatePoints && estimatePoints.length + (estimatePointCreate?.length || 0) <= estimateCount.max - 1) {
handleEstimatePointCreate("add", {
id: undefined,
key: estimatePoints.length + (estimatePointCreate?.length || 0) + 1,
@@ -143,7 +143,7 @@ export const EstimatePointCreateRoot: FC<TEstimatePointCreateRoot> = observer((p
isError={estimatePointCreateError.includes(estimatePoint.key) ? true : false}
/>
))}
- {estimatePoints && estimatePoints.length + (estimatePointCreate?.length || 0) <= maxEstimatesCount - 1 && (
+ {estimatePoints && estimatePoints.length + (estimatePointCreate?.length || 0) <= estimateCount.max - 1 && (
<Button variant="link-primary" size="sm" prependIcon={<Plus />} onClick={handleCreate}>
Add {estimateType}
</Button>
diff --git a/web/core/components/estimates/points/create.tsx b/web/core/components/estimates/points/create.tsx
index 0816575b36..0707b61373 100644
--- a/web/core/components/estimates/points/create.tsx
+++ b/web/core/components/estimates/points/create.tsx
@@ -5,13 +5,13 @@ import { observer } from "mobx-react";
import { Check, Info, X } from "lucide-react";
import { TEstimatePointsObject, TEstimateSystemKeys } from "@plane/types";
import { Spinner, TOAST_TYPE, Tooltip, setToast } from "@plane/ui";
-// constants
-import { EEstimateSystem } from "@/constants/estimates";
// helpers
import { cn } from "@/helpers/common.helper";
import { isEstimatePointValuesRepeated } from "@/helpers/estimates";
// hooks
import { useEstimate } from "@/hooks/store";
+// plane web constants
+import { EEstimateSystem } from "@/plane-web/constants/estimates";
type TEstimatePointCreate = {
workspaceSlug: string;
diff --git a/web/core/components/estimates/points/preview.tsx b/web/core/components/estimates/points/preview.tsx
index bfd9bd9dc7..e8f27e00d3 100644
--- a/web/core/components/estimates/points/preview.tsx
+++ b/web/core/components/estimates/points/preview.tsx
@@ -4,7 +4,8 @@ import { GripVertical, Pencil, Trash2 } from "lucide-react";
import { TEstimatePointsObject, TEstimateSystemKeys } from "@plane/types";
// components
import { EstimatePointUpdate, EstimatePointDelete } from "@/components/estimates/points";
-import { minEstimatesCount } from "@/constants/estimates";
+// plane web constants
+import { estimateCount } from "@/plane-web/constants/estimates";
type TEstimatePointItemPreview = {
workspaceSlug: string;
@@ -61,7 +62,7 @@ export const EstimatePointItemPreview: FC<TEstimatePointItemPreview> = observer(
>
<Pencil size={14} className="text-custom-text-200" />
</div>
- {estimatePoints.length > minEstimatesCount && (
+ {estimatePoints.length > estimateCount.min && (
<div
className="rounded-sm w-6 h-6 flex-shrink-0 relative flex justify-center items-center hover:bg-custom-background-80 transition-colors cursor-pointer"
onClick={() =>
diff --git a/web/core/components/estimates/points/update.tsx b/web/core/components/estimates/points/update.tsx
index faf55f522b..ccb0f92da9 100644
--- a/web/core/components/estimates/points/update.tsx
+++ b/web/core/components/estimates/points/update.tsx
@@ -5,13 +5,13 @@ import { observer } from "mobx-react";
import { Check, Info, X } from "lucide-react";
import { TEstimatePointsObject, TEstimateSystemKeys } from "@plane/types";
import { Spinner, TOAST_TYPE, Tooltip, setToast } from "@plane/ui";
-// constants
-import { EEstimateSystem } from "@/constants/estimates";
// helpers
import { cn } from "@/helpers/common.helper";
import { isEstimatePointValuesRepeated } from "@/helpers/estimates";
// hooks
import { useEstimatePoint } from "@/hooks/store";
+// plane web constants
+import { EEstimateSystem } from "@/plane-web/constants/estimates";
type TEstimatePointUpdate = {
workspaceSlug: string;
diff --git a/web/core/components/estimates/root.tsx b/web/core/components/estimates/root.tsx
index 1e5df5492b..4cecd94789 100644
--- a/web/core/components/estimates/root.tsx
+++ b/web/core/components/estimates/root.tsx
@@ -7,12 +7,13 @@ import {
EstimateEmptyScreen,
EstimateDisableSwitch,
CreateEstimateModal,
- UpdateEstimateModal,
DeleteEstimateModal,
EstimateList,
} from "@/components/estimates";
// hooks
import { useProject, useProjectEstimates } from "@/hooks/store";
+// plane web components
+import { UpdateEstimateModal } from "@/plane-web/components/estimates";
type TEstimateRoot = {
workspaceSlug: string;
diff --git a/web/core/components/estimates/update/index.ts b/web/core/components/estimates/update/index.ts
deleted file mode 100644
index 7de8cb9889..0000000000
--- a/web/core/components/estimates/update/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export * from "./modal";
-export * from "./stage-one";
diff --git a/web/core/components/estimates/update/modal.tsx b/web/core/components/estimates/update/modal.tsx
deleted file mode 100644
index 2ffde8ca54..0000000000
--- a/web/core/components/estimates/update/modal.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-"use client";
-
-import { FC } from "react";
-import { observer } from "mobx-react";
-import { Button } from "@plane/ui";
-// components
-import { EModalPosition, EModalWidth, ModalCore } from "@/components/core";
-import { EstimateUpdateStageOne } from "@/components/estimates";
-
-type TUpdateEstimateModal = {
- workspaceSlug: string;
- projectId: string;
- estimateId: string | undefined;
- isOpen: boolean;
- handleClose: () => void;
-};
-
-export const UpdateEstimateModal: FC<TUpdateEstimateModal> = observer((props) => {
- // props
- const { isOpen, handleClose } = props;
-
- return (
- <ModalCore isOpen={isOpen} position={EModalPosition.TOP} width={EModalWidth.XXL}>
- <div className="relative space-y-6 py-5">
- {/* heading */}
- <div className="relative flex justify-between items-center gap-2 px-5">
- <div className="relative flex items-center gap-1">
- <div className="text-xl font-medium text-custom-text-200">Edit estimate system</div>
- </div>
- </div>
-
- <div className="px-5">
- <EstimateUpdateStageOne />
- </div>
-
- <div className="relative flex justify-end items-center gap-3 px-5 pt-5 border-t border-custom-border-200">
- <Button variant="neutral-primary" size="sm" onClick={handleClose}>
- Cancel
- </Button>
- </div>
- </div>
- </ModalCore>
- );
-});
diff --git a/web/core/components/estimates/update/stage-one.tsx b/web/core/components/estimates/update/stage-one.tsx
deleted file mode 100644
index b031f453c7..0000000000
--- a/web/core/components/estimates/update/stage-one.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-"use client";
-
-import { FC } from "react";
-import { Crown } from "lucide-react";
-import { TEstimateUpdateStageKeys } from "@plane/types";
-import { Tooltip } from "@plane/ui";
-// constants
-import { ESTIMATE_OPTIONS_STAGE_ONE } from "@/constants/estimates";
-// helpers
-import { cn } from "@/helpers/common.helper";
-
-type TEstimateUpdateStageOne = {
- handleEstimateEditType?: (stage: TEstimateUpdateStageKeys) => void;
-};
-
-export const EstimateUpdateStageOne: FC<TEstimateUpdateStageOne> = (props) => {
- const { handleEstimateEditType } = props;
-
- return (
- <div className="space-y-3">
- {ESTIMATE_OPTIONS_STAGE_ONE &&
- ESTIMATE_OPTIONS_STAGE_ONE.map((stage) => (
- <div
- key={stage.key}
- className={cn(
- "border border-custom-border-300 cursor-pointer space-y-1 p-3 rounded transition-colors",
- stage?.is_ee ? `bg-custom-background-90` : `hover:bg-custom-background-90`
- )}
- onClick={() => !stage?.is_ee && handleEstimateEditType && handleEstimateEditType(stage.key)}
- >
- <h3 className="text-base font-medium relative flex items-center gap-2">
- {stage.title}
- {stage?.is_ee && (
- <Tooltip tooltipContent={"upgrade"}>
- <Crown size={12} className="text-amber-400" />
- </Tooltip>
- )}
- </h3>
- <p className="text-sm text-custom-text-200">{stage.description}</p>
- </div>
- ))}
- </div>
- );
-};
diff --git a/web/core/components/modules/analytics-sidebar/issue-progress.tsx b/web/core/components/modules/analytics-sidebar/issue-progress.tsx
index bc222c8827..625b5ed2a5 100644
--- a/web/core/components/modules/analytics-sidebar/issue-progress.tsx
+++ b/web/core/components/modules/analytics-sidebar/issue-progress.tsx
@@ -12,12 +12,13 @@ import { CustomSelect, Spinner } from "@plane/ui";
import ProgressChart from "@/components/core/sidebar/progress-chart";
import { ModuleProgressStats } from "@/components/modules";
// constants
-import { EEstimateSystem } from "@/constants/estimates";
import { EIssueFilterType, EIssuesStoreType } from "@/constants/issue";
// helpers
import { getDate } from "@/helpers/date-time.helper";
// hooks
import { useIssues, useModule, useProjectEstimates } from "@/hooks/store";
+// plane web constants
+import { EEstimateSystem } from "@/plane-web/constants/estimates";
type TModuleAnalyticsProgress = {
workspaceSlug: string;
diff --git a/web/core/components/modules/analytics-sidebar/root.tsx b/web/core/components/modules/analytics-sidebar/root.tsx
index b195d9fa3f..66c85d4b43 100644
--- a/web/core/components/modules/analytics-sidebar/root.tsx
+++ b/web/core/components/modules/analytics-sidebar/root.tsx
@@ -34,8 +34,6 @@ import {
import { LinkModal, LinksList } from "@/components/core";
import { DateRangeDropdown, MemberDropdown } from "@/components/dropdowns";
import { ArchiveModuleModal, DeleteModuleModal, ModuleAnalyticsProgress } from "@/components/modules";
-// constant
-import { EEstimateSystem } from "@/constants/estimates";
import {
MODULE_LINK_CREATED,
MODULE_LINK_DELETED,
@@ -49,6 +47,8 @@ import { getDate, renderFormattedPayloadDate } from "@/helpers/date-time.helper"
import { copyUrlToClipboard } from "@/helpers/string.helper";
// hooks
import { useModule, useUser, useEventTracker, useProjectEstimates } from "@/hooks/store";
+// plane web constants
+import { EEstimateSystem } from "@/plane-web/constants/estimates";
const defaultValues: Partial<IModule> = {
lead_id: "",
diff --git a/web/core/components/modules/module-card-item.tsx b/web/core/components/modules/module-card-item.tsx
index c19629242b..e80af81666 100644
--- a/web/core/components/modules/module-card-item.tsx
+++ b/web/core/components/modules/module-card-item.tsx
@@ -12,7 +12,6 @@ import { FavoriteStar } from "@/components/core";
import { ButtonAvatars } from "@/components/dropdowns/member/avatar";
import { ModuleQuickActions } from "@/components/modules";
// constants
-import { EEstimateSystem } from "@/constants/estimates";
import { MODULE_FAVORITED, MODULE_UNFAVORITED } from "@/constants/event-tracker";
import { MODULE_STATUS } from "@/constants/module";
import { EUserProjectRoles } from "@/constants/project";
@@ -22,6 +21,8 @@ import { generateQueryParams } from "@/helpers/router.helper";
// hooks
import { useEventTracker, useMember, useModule, useProjectEstimates, useUser } from "@/hooks/store";
import { usePlatformOS } from "@/hooks/use-platform-os";
+// plane web constants
+import { EEstimateSystem } from "@/plane-web/constants/estimates";
type Props = {
moduleId: string;
diff --git a/web/core/components/modules/module-list-item.tsx b/web/core/components/modules/module-list-item.tsx
index cf756795eb..ddbfad8978 100644
--- a/web/core/components/modules/module-list-item.tsx
+++ b/web/core/components/modules/module-list-item.tsx
@@ -10,13 +10,13 @@ import { CircularProgressIndicator } from "@plane/ui";
// components
import { ListItem } from "@/components/core/list";
import { ModuleListItemAction } from "@/components/modules";
-// constants
-import { EEstimateSystem } from "@/constants/estimates";
// helpers
import { generateQueryParams } from "@/helpers/router.helper";
// hooks
import { useAppRouter, useModule, useProjectEstimates } from "@/hooks/store";
import { usePlatformOS } from "@/hooks/use-platform-os";
+// plane web constants
+import { EEstimateSystem } from "@/plane-web/constants/estimates";
type Props = {
moduleId: string;
diff --git a/web/ee/components/estimates/estimate-list-item-buttons.tsx b/web/ee/components/estimates/estimate-list-item-buttons.tsx
new file mode 100644
index 0000000000..4e5008ea53
--- /dev/null
+++ b/web/ee/components/estimates/estimate-list-item-buttons.tsx
@@ -0,0 +1 @@
+export * from "ce/components/estimates/estimate-list-item-buttons";
diff --git a/web/ee/components/estimates/index.ts b/web/ee/components/estimates/index.ts
new file mode 100644
index 0000000000..6697882767
--- /dev/null
+++ b/web/ee/components/estimates/index.ts
@@ -0,0 +1 @@
+export * from "./estimate-list-item-buttons";
diff --git a/web/ee/components/estimates/update/index.ts b/web/ee/components/estimates/update/index.ts
new file mode 100644
index 0000000000..031608e25f
--- /dev/null
+++ b/web/ee/components/estimates/update/index.ts
@@ -0,0 +1 @@
+export * from "./modal";
diff --git a/web/ee/components/estimates/update/modal.tsx b/web/ee/components/estimates/update/modal.tsx
new file mode 100644
index 0000000000..5c7d0b725f
--- /dev/null
+++ b/web/ee/components/estimates/update/modal.tsx
@@ -0,0 +1 @@
+export * from "ce/components/estimates/update/modal";
diff --git a/web/ee/constants/estimates.ts b/web/ee/constants/estimates.ts
new file mode 100644
index 0000000000..06376ef9dd
--- /dev/null
+++ b/web/ee/constants/estimates.ts
@@ -0,0 +1 @@
+export * from "ce/constants/estimates";
diff --git a/web/helpers/estimates.ts b/web/helpers/estimates.ts
index cf8cd2dc84..62676503de 100644
--- a/web/helpers/estimates.ts
+++ b/web/helpers/estimates.ts
@@ -1,4 +1,5 @@
-import { EEstimateSystem } from "@/constants/estimates";
+// plane web constants
+import { EEstimateSystem } from "@/plane-web/constants/estimates";
export const isEstimatePointValuesRepeated = (
estimatePoints: string[],