From cfa8a1d71536277bd43c8e35cbecdd1cf63b580f Mon Sep 17 00:00:00 2001 From: vamsikrishnamathala Date: Fri, 18 Jul 2025 18:47:51 +0530 Subject: [PATCH 1/5] chore: refactor for gantt chart --- .../gantt-chart/blocks/block-row-list.tsx | 1 + .../gantt-chart/blocks/blocks-list.tsx | 1 + .../web/ce/store/timeline/base-timeline.store.ts | 16 +++++++++++++--- apps/web/ce/store/timeline/index.ts | 3 +++ .../gantt-chart/chart/main-content.tsx | 11 +++-------- .../components/gantt-chart/contexts/index.tsx | 1 + .../components/gantt-chart/helpers/add-block.tsx | 1 + .../components/gantt-chart/helpers/draggable.tsx | 2 +- .../core/components/gantt-chart/sidebar/root.tsx | 4 ++-- apps/web/core/hooks/use-timeline-chart.ts | 2 ++ packages/types/src/layout/gantt.ts | 8 +++++++- packages/utils/src/work-item/base.ts | 4 +++- 12 files changed, 38 insertions(+), 16 deletions(-) create mode 100644 apps/web/ce/components/gantt-chart/blocks/block-row-list.tsx create mode 100644 apps/web/ce/components/gantt-chart/blocks/blocks-list.tsx diff --git a/apps/web/ce/components/gantt-chart/blocks/block-row-list.tsx b/apps/web/ce/components/gantt-chart/blocks/block-row-list.tsx new file mode 100644 index 00000000000..c325bda0d6c --- /dev/null +++ b/apps/web/ce/components/gantt-chart/blocks/block-row-list.tsx @@ -0,0 +1 @@ +export { GanttChartRowList } from "@/components/gantt-chart/blocks/block-row-list"; diff --git a/apps/web/ce/components/gantt-chart/blocks/blocks-list.tsx b/apps/web/ce/components/gantt-chart/blocks/blocks-list.tsx new file mode 100644 index 00000000000..90a15a61316 --- /dev/null +++ b/apps/web/ce/components/gantt-chart/blocks/blocks-list.tsx @@ -0,0 +1 @@ +export { GanttChartBlocksList } from "@/components/gantt-chart/blocks/blocks-list"; diff --git a/apps/web/ce/store/timeline/base-timeline.store.ts b/apps/web/ce/store/timeline/base-timeline.store.ts index c021fa93ea8..560add74ff3 100644 --- a/apps/web/ce/store/timeline/base-timeline.store.ts +++ b/apps/web/ce/store/timeline/base-timeline.store.ts @@ -3,7 +3,13 @@ import set from "lodash/set"; import { action, makeObservable, observable, runInAction } from "mobx"; import { computedFn } from "mobx-utils"; // components -import type { ChartDataType, IBlockUpdateDependencyData, IGanttBlock, TGanttViews } from "@plane/types"; +import type { + ChartDataType, + IBlockUpdateDependencyData, + IGanttBlock, + TGanttViews, + EGanttBlockType, +} from "@plane/types"; import { renderFormattedPayloadDate } from "@plane/utils"; import { currentViewDataWithView } from "@/components/gantt-chart/data"; import { @@ -177,7 +183,7 @@ export class BaseTimeLineStore implements IBaseTimelineStore { * @param getDataById * @returns */ - updateBlocks(getDataById: (id: string) => BlockData | undefined | null) { + updateBlocks(getDataById: (id: string) => BlockData | undefined | null, type?: EGanttBlockType, index?: number) { if (!this.blockIds || !Array.isArray(this.blockIds) || this.isDragging) return true; const updatedBlockMaps: { path: string[]; value: any }[] = []; @@ -195,7 +201,11 @@ export class BaseTimeLineStore implements IBaseTimelineStore { sort_order: blockData?.sort_order ?? undefined, start_date: blockData?.start_date ?? undefined, target_date: blockData?.target_date ?? undefined, - project_id: blockData?.project_id ?? undefined, + meta: { + type, + index, + project_id: blockData?.project_id, + }, }; if (this.currentViewData && (this.currentViewData?.data?.startDate || this.currentViewData?.data?.dayWidth)) { block.position = getItemPositionWidth(this.currentViewData, block); diff --git a/apps/web/ce/store/timeline/index.ts b/apps/web/ce/store/timeline/index.ts index 2353f760a9e..5f423f4b720 100644 --- a/apps/web/ce/store/timeline/index.ts +++ b/apps/web/ce/store/timeline/index.ts @@ -7,17 +7,20 @@ export interface ITimelineStore { issuesTimeLineStore: IIssuesTimeLineStore; modulesTimeLineStore: IModulesTimeLineStore; projectTimeLineStore: IBaseTimelineStore; + groupedTimeLineStore: IBaseTimelineStore; } export class TimeLineStore implements ITimelineStore { issuesTimeLineStore: IIssuesTimeLineStore; modulesTimeLineStore: IModulesTimeLineStore; projectTimeLineStore: IBaseTimelineStore; + groupedTimeLineStore: IBaseTimelineStore; constructor(rootStore: RootStore) { this.issuesTimeLineStore = new IssuesTimeLineStore(rootStore); this.modulesTimeLineStore = new ModulesTimeLineStore(rootStore); // Dummy store this.projectTimeLineStore = new BaseTimeLineStore(rootStore); + this.groupedTimeLineStore = new BaseTimeLineStore(rootStore); } } 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 5f9fb00435c..278994b0b38 100644 --- a/apps/web/core/components/gantt-chart/chart/main-content.tsx +++ b/apps/web/core/components/gantt-chart/chart/main-content.tsx @@ -6,23 +6,18 @@ import { ChartDataType, IBlockUpdateData, IBlockUpdateDependencyData, IGanttBloc import { cn, getDate } from "@plane/utils"; // components import { MultipleSelectGroup } from "@/components/core"; -import { - GanttChartBlocksList, - GanttChartSidebar, - MonthChartView, - QuarterChartView, - WeekChartView, -} from "@/components/gantt-chart"; +import { GanttChartSidebar, MonthChartView, QuarterChartView, WeekChartView } from "@/components/gantt-chart"; // helpers // hooks import { useTimeLineChartStore } from "@/hooks/use-timeline-chart"; // plane web components import { TimelineDependencyPaths, TimelineDraggablePath } 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"; // plane web hooks import { useBulkOperationStatus } from "@/plane-web/hooks/use-bulk-operation-status"; // -import { GanttChartRowList } from "../blocks/block-row-list"; import { DEFAULT_BLOCK_WIDTH, GANTT_SELECT_GROUP, HEADER_HEIGHT } from "../constants"; import { getItemPositionWidth } from "../views"; import { TimelineDragHelper } from "./timeline-drag-helper"; diff --git a/apps/web/core/components/gantt-chart/contexts/index.tsx b/apps/web/core/components/gantt-chart/contexts/index.tsx index 7a7c63f8321..6d268be7e54 100644 --- a/apps/web/core/components/gantt-chart/contexts/index.tsx +++ b/apps/web/core/components/gantt-chart/contexts/index.tsx @@ -4,6 +4,7 @@ export enum ETimeLineTypeType { ISSUE = "ISSUE", MODULE = "MODULE", PROJECT = "PROJECT", + GROUPED = "GROUPED", } export const TimeLineTypeContext = createContext(undefined); diff --git a/apps/web/core/components/gantt-chart/helpers/add-block.tsx b/apps/web/core/components/gantt-chart/helpers/add-block.tsx index fed218f911b..742591a26bd 100644 --- a/apps/web/core/components/gantt-chart/helpers/add-block.tsx +++ b/apps/web/core/components/gantt-chart/helpers/add-block.tsx @@ -48,6 +48,7 @@ export const ChartAddBlock: React.FC = observer((props) => { blockUpdateHandler(block.data, { start_date: renderFormattedPayloadDate(startDate) ?? undefined, target_date: renderFormattedPayloadDate(endDate) ?? undefined, + meta: block.meta, }); }; diff --git a/apps/web/core/components/gantt-chart/helpers/draggable.tsx b/apps/web/core/components/gantt-chart/helpers/draggable.tsx index 6031f3efd94..98eda46c40f 100644 --- a/apps/web/core/components/gantt-chart/helpers/draggable.tsx +++ b/apps/web/core/components/gantt-chart/helpers/draggable.tsx @@ -53,7 +53,7 @@ export const ChartDraggable: React.FC = observer((props) => { })} onMouseDown={(e) => enableBlockMove && handleBlockDrag(e, "move")} > - {blockToRender(block.data)} + {blockToRender({ ...block.data, meta: block.meta })} {/* right resize drag handle */} = observer((props) => {
{t("common.duration")}
- + {sidebarToRender && sidebarToRender({ title, diff --git a/apps/web/core/hooks/use-timeline-chart.ts b/apps/web/core/hooks/use-timeline-chart.ts index 79862f20458..7d0564f3c43 100644 --- a/apps/web/core/hooks/use-timeline-chart.ts +++ b/apps/web/core/hooks/use-timeline-chart.ts @@ -17,6 +17,8 @@ export const useTimeLineChart = (timeLineType: ETimeLineTypeType): IBaseTimeline return context.timelineStore.modulesTimeLineStore as IBaseTimelineStore; case ETimeLineTypeType.PROJECT: return context.timelineStore.projectTimeLineStore as IBaseTimelineStore; + case ETimeLineTypeType.GROUPED: + return context.timelineStore.groupedTimeLineStore as IBaseTimelineStore; } }; diff --git a/packages/types/src/layout/gantt.ts b/packages/types/src/layout/gantt.ts index 990ae3fc3f7..fae1451d6ae 100644 --- a/packages/types/src/layout/gantt.ts +++ b/packages/types/src/layout/gantt.ts @@ -1,3 +1,8 @@ +export enum EGanttBlockType { + EPIC = "epic", + PROJECT = "project", + ISSUE = "issue", +} export interface IGanttBlock { data: any; id: string; @@ -9,7 +14,7 @@ export interface IGanttBlock { sort_order: number | undefined; start_date: string | undefined; target_date: string | undefined; - project_id: string | undefined; + meta: Record; } export interface IBlockUpdateData { @@ -20,6 +25,7 @@ export interface IBlockUpdateData { }; start_date?: string; target_date?: string; + meta?: Record; } export interface IBlockUpdateDependencyData { diff --git a/packages/utils/src/work-item/base.ts b/packages/utils/src/work-item/base.ts index 50ee3a66b76..6cef74175ab 100644 --- a/packages/utils/src/work-item/base.ts +++ b/packages/utils/src/work-item/base.ts @@ -190,7 +190,9 @@ export const getIssueBlocksStructure = (block: TIssue): IGanttBlock => ({ sort_order: block?.sort_order, start_date: block?.start_date ?? undefined, target_date: block?.target_date ?? undefined, - project_id: block?.project_id ?? undefined, + meta: { + project_id: block?.project_id ?? undefined, + }, }); export const formatTextList = (TextArray: string[]): string => { From 308659aa04052d320d32f2c5ead77d39f1771725 Mon Sep 17 00:00:00 2001 From: vamsikrishnamathala Date: Mon, 21 Jul 2025 13:26:37 +0530 Subject: [PATCH 2/5] chore: added placeholder exports --- apps/web/ce/components/gantt-chart/blocks/index.ts | 2 ++ apps/web/ce/components/gantt-chart/index.ts | 1 + 2 files changed, 3 insertions(+) create mode 100644 apps/web/ce/components/gantt-chart/blocks/index.ts diff --git a/apps/web/ce/components/gantt-chart/blocks/index.ts b/apps/web/ce/components/gantt-chart/blocks/index.ts new file mode 100644 index 00000000000..d608f81084c --- /dev/null +++ b/apps/web/ce/components/gantt-chart/blocks/index.ts @@ -0,0 +1,2 @@ +export * from "./blocks-list"; +export * from "./block-row-list"; diff --git a/apps/web/ce/components/gantt-chart/index.ts b/apps/web/ce/components/gantt-chart/index.ts index d08e0f7d617..b71f4a40d0f 100644 --- a/apps/web/ce/components/gantt-chart/index.ts +++ b/apps/web/ce/components/gantt-chart/index.ts @@ -1 +1,2 @@ export * from "./dependency"; +export * from "./blocks"; From 95896e18718112a4e9394e9adc723c98b97ff2d6 Mon Sep 17 00:00:00 2001 From: vamsikrishnamathala Date: Mon, 21 Jul 2025 13:36:16 +0530 Subject: [PATCH 3/5] chore: removed index.ts to avoid barrel imports --- apps/web/ce/components/gantt-chart/blocks/index.ts | 2 -- apps/web/ce/components/gantt-chart/index.ts | 1 - apps/web/ee/components/gantt-chart/blocks/block-row-list.tsx | 1 + apps/web/ee/components/gantt-chart/blocks/blocks-list.tsx | 1 + 4 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 apps/web/ce/components/gantt-chart/blocks/index.ts create mode 100644 apps/web/ee/components/gantt-chart/blocks/block-row-list.tsx create mode 100644 apps/web/ee/components/gantt-chart/blocks/blocks-list.tsx diff --git a/apps/web/ce/components/gantt-chart/blocks/index.ts b/apps/web/ce/components/gantt-chart/blocks/index.ts deleted file mode 100644 index d608f81084c..00000000000 --- a/apps/web/ce/components/gantt-chart/blocks/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./blocks-list"; -export * from "./block-row-list"; diff --git a/apps/web/ce/components/gantt-chart/index.ts b/apps/web/ce/components/gantt-chart/index.ts index b71f4a40d0f..d08e0f7d617 100644 --- a/apps/web/ce/components/gantt-chart/index.ts +++ b/apps/web/ce/components/gantt-chart/index.ts @@ -1,2 +1 @@ export * from "./dependency"; -export * from "./blocks"; diff --git a/apps/web/ee/components/gantt-chart/blocks/block-row-list.tsx b/apps/web/ee/components/gantt-chart/blocks/block-row-list.tsx new file mode 100644 index 00000000000..c325bda0d6c --- /dev/null +++ b/apps/web/ee/components/gantt-chart/blocks/block-row-list.tsx @@ -0,0 +1 @@ +export { GanttChartRowList } from "@/components/gantt-chart/blocks/block-row-list"; diff --git a/apps/web/ee/components/gantt-chart/blocks/blocks-list.tsx b/apps/web/ee/components/gantt-chart/blocks/blocks-list.tsx new file mode 100644 index 00000000000..90a15a61316 --- /dev/null +++ b/apps/web/ee/components/gantt-chart/blocks/blocks-list.tsx @@ -0,0 +1 @@ +export { GanttChartBlocksList } from "@/components/gantt-chart/blocks/blocks-list"; From 89f815710c2d92d987e816cbb2db9dcc54d019d8 Mon Sep 17 00:00:00 2001 From: vamsikrishnamathala Date: Mon, 21 Jul 2025 17:59:15 +0530 Subject: [PATCH 4/5] chore: moved project_id to meta --- apps/web/ce/store/timeline/base-timeline.store.ts | 2 +- packages/types/src/layout/gantt.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/ce/store/timeline/base-timeline.store.ts b/apps/web/ce/store/timeline/base-timeline.store.ts index 560add74ff3..517a5700fbe 100644 --- a/apps/web/ce/store/timeline/base-timeline.store.ts +++ b/apps/web/ce/store/timeline/base-timeline.store.ts @@ -295,7 +295,7 @@ export class BaseTimeLineStore implements IBaseTimelineStore { if (!currBlock?.position || !this.currentViewData) return []; - const updatePayload: IBlockUpdateDependencyData = { id }; + const updatePayload: IBlockUpdateDependencyData = { id, meta: currBlock.meta }; // If shouldUpdateHalfBlock or the start date is available then update start date if (shouldUpdateHalfBlock || currBlock.start_date) { diff --git a/packages/types/src/layout/gantt.ts b/packages/types/src/layout/gantt.ts index fae1451d6ae..0fb54615c9c 100644 --- a/packages/types/src/layout/gantt.ts +++ b/packages/types/src/layout/gantt.ts @@ -14,7 +14,7 @@ export interface IGanttBlock { sort_order: number | undefined; start_date: string | undefined; target_date: string | undefined; - meta: Record; + meta?: Record; } export interface IBlockUpdateData { @@ -32,7 +32,7 @@ export interface IBlockUpdateDependencyData { id: string; start_date?: string; target_date?: string; - project_id?: string; + meta?: Record; } export type TGanttViews = "week" | "month" | "quarter"; From 53d5138a415f748992b8ab1968f694d9b2b2f288 Mon Sep 17 00:00:00 2001 From: vamsikrishnamathala Date: Mon, 21 Jul 2025 18:13:43 +0530 Subject: [PATCH 5/5] chore: moved components to ce --- .../gantt-chart/blocks/block-row-list.tsx | 60 ++++++++++++++++++- .../gantt-chart/blocks/blocks-list.tsx | 54 ++++++++++++++++- .../gantt-chart/blocks/block-row-list.tsx | 59 ------------------ .../gantt-chart/blocks/blocks-list.tsx | 53 ---------------- .../components/gantt-chart/blocks/index.ts | 1 - apps/web/core/components/gantt-chart/index.ts | 1 - .../gantt-chart/blocks/block-row-list.tsx | 2 +- .../gantt-chart/blocks/blocks-list.tsx | 2 +- 8 files changed, 114 insertions(+), 118 deletions(-) delete mode 100644 apps/web/core/components/gantt-chart/blocks/block-row-list.tsx delete mode 100644 apps/web/core/components/gantt-chart/blocks/blocks-list.tsx delete mode 100644 apps/web/core/components/gantt-chart/blocks/index.ts diff --git a/apps/web/ce/components/gantt-chart/blocks/block-row-list.tsx b/apps/web/ce/components/gantt-chart/blocks/block-row-list.tsx index c325bda0d6c..ec7e52fd123 100644 --- a/apps/web/ce/components/gantt-chart/blocks/block-row-list.tsx +++ b/apps/web/ce/components/gantt-chart/blocks/block-row-list.tsx @@ -1 +1,59 @@ -export { GanttChartRowList } from "@/components/gantt-chart/blocks/block-row-list"; +import { FC } from "react"; +// components +import type { IBlockUpdateData, IGanttBlock } from "@plane/types"; +import RenderIfVisible from "@/components/core/render-if-visible-HOC"; +// hooks +import { BlockRow } from "@/components/gantt-chart/blocks/block-row"; +import { BLOCK_HEIGHT } from "@/components/gantt-chart/constants"; +import { TSelectionHelper } from "@/hooks/use-multiple-select"; +// types + +export type GanttChartBlocksProps = { + blockIds: string[]; + blockUpdateHandler: (block: any, payload: IBlockUpdateData) => void; + handleScrollToBlock: (block: IGanttBlock) => void; + enableAddBlock: boolean | ((blockId: string) => boolean); + showAllBlocks: boolean; + selectionHelpers: TSelectionHelper; + ganttContainerRef: React.RefObject; +}; + +export const GanttChartRowList: FC = (props) => { + const { + blockIds, + blockUpdateHandler, + handleScrollToBlock, + enableAddBlock, + showAllBlocks, + selectionHelpers, + ganttContainerRef, + } = props; + + return ( +
+ {blockIds?.map((blockId) => ( + <> + } + shouldRecordHeights={false} + > + + + + ))} +
+ ); +}; diff --git a/apps/web/ce/components/gantt-chart/blocks/blocks-list.tsx b/apps/web/ce/components/gantt-chart/blocks/blocks-list.tsx index 90a15a61316..0c8f2a7c0b2 100644 --- a/apps/web/ce/components/gantt-chart/blocks/blocks-list.tsx +++ b/apps/web/ce/components/gantt-chart/blocks/blocks-list.tsx @@ -1 +1,53 @@ -export { GanttChartBlocksList } from "@/components/gantt-chart/blocks/blocks-list"; +import { FC } from "react"; +// +import type { IBlockUpdateDependencyData } from "@plane/types"; +import { GanttChartBlock } from "@/components/gantt-chart/blocks/block"; + +export type GanttChartBlocksProps = { + blockIds: string[]; + blockToRender: (data: any) => React.ReactNode; + enableBlockLeftResize: boolean | ((blockId: string) => boolean); + enableBlockRightResize: boolean | ((blockId: string) => boolean); + enableBlockMove: boolean | ((blockId: string) => boolean); + ganttContainerRef: React.RefObject; + showAllBlocks: boolean; + updateBlockDates?: (updates: IBlockUpdateDependencyData[]) => Promise; + enableDependency: boolean | ((blockId: string) => boolean); +}; + +export const GanttChartBlocksList: FC = (props) => { + const { + blockIds, + blockToRender, + enableBlockLeftResize, + enableBlockRightResize, + enableBlockMove, + ganttContainerRef, + showAllBlocks, + updateBlockDates, + enableDependency, + } = props; + + return ( + <> + {blockIds?.map((blockId) => ( + + ))} + + ); +}; diff --git a/apps/web/core/components/gantt-chart/blocks/block-row-list.tsx b/apps/web/core/components/gantt-chart/blocks/block-row-list.tsx deleted file mode 100644 index 0be3bead71e..00000000000 --- a/apps/web/core/components/gantt-chart/blocks/block-row-list.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import { FC } from "react"; -// components -import type { IBlockUpdateData, IGanttBlock } from "@plane/types"; -import RenderIfVisible from "@/components/core/render-if-visible-HOC"; -// hooks -import { TSelectionHelper } from "@/hooks/use-multiple-select"; -// types -import { BLOCK_HEIGHT } from "../constants"; -import { BlockRow } from "./block-row"; - -export type GanttChartBlocksProps = { - blockIds: string[]; - blockUpdateHandler: (block: any, payload: IBlockUpdateData) => void; - handleScrollToBlock: (block: IGanttBlock) => void; - enableAddBlock: boolean | ((blockId: string) => boolean); - showAllBlocks: boolean; - selectionHelpers: TSelectionHelper; - ganttContainerRef: React.RefObject; -}; - -export const GanttChartRowList: FC = (props) => { - const { - blockIds, - blockUpdateHandler, - handleScrollToBlock, - enableAddBlock, - showAllBlocks, - selectionHelpers, - ganttContainerRef, - } = props; - - return ( -
- {blockIds?.map((blockId) => ( - <> - } - shouldRecordHeights={false} - > - - - - ))} -
- ); -}; diff --git a/apps/web/core/components/gantt-chart/blocks/blocks-list.tsx b/apps/web/core/components/gantt-chart/blocks/blocks-list.tsx deleted file mode 100644 index 154a72d9f59..00000000000 --- a/apps/web/core/components/gantt-chart/blocks/blocks-list.tsx +++ /dev/null @@ -1,53 +0,0 @@ -import { FC } from "react"; -// -import type { IBlockUpdateDependencyData } from "@plane/types"; -import { GanttChartBlock } from "./block"; - -export type GanttChartBlocksProps = { - blockIds: string[]; - blockToRender: (data: any) => React.ReactNode; - enableBlockLeftResize: boolean | ((blockId: string) => boolean); - enableBlockRightResize: boolean | ((blockId: string) => boolean); - enableBlockMove: boolean | ((blockId: string) => boolean); - ganttContainerRef: React.RefObject; - showAllBlocks: boolean; - updateBlockDates?: (updates: IBlockUpdateDependencyData[]) => Promise; - enableDependency: boolean | ((blockId: string) => boolean); -}; - -export const GanttChartBlocksList: FC = (props) => { - const { - blockIds, - blockToRender, - enableBlockLeftResize, - enableBlockRightResize, - enableBlockMove, - ganttContainerRef, - showAllBlocks, - updateBlockDates, - enableDependency, - } = props; - - return ( - <> - {blockIds?.map((blockId) => ( - - ))} - - ); -}; diff --git a/apps/web/core/components/gantt-chart/blocks/index.ts b/apps/web/core/components/gantt-chart/blocks/index.ts deleted file mode 100644 index c99f8af3298..00000000000 --- a/apps/web/core/components/gantt-chart/blocks/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./blocks-list"; diff --git a/apps/web/core/components/gantt-chart/index.ts b/apps/web/core/components/gantt-chart/index.ts index 2d3055c2c2a..49aaf6eeaeb 100644 --- a/apps/web/core/components/gantt-chart/index.ts +++ b/apps/web/core/components/gantt-chart/index.ts @@ -1,4 +1,3 @@ -export * from "./blocks"; export * from "./chart"; export * from "./helpers"; export * from "./root"; diff --git a/apps/web/ee/components/gantt-chart/blocks/block-row-list.tsx b/apps/web/ee/components/gantt-chart/blocks/block-row-list.tsx index c325bda0d6c..2d50f5e5eac 100644 --- a/apps/web/ee/components/gantt-chart/blocks/block-row-list.tsx +++ b/apps/web/ee/components/gantt-chart/blocks/block-row-list.tsx @@ -1 +1 @@ -export { GanttChartRowList } from "@/components/gantt-chart/blocks/block-row-list"; +export * from "ce/components/gantt-chart/blocks/block-row-list"; diff --git a/apps/web/ee/components/gantt-chart/blocks/blocks-list.tsx b/apps/web/ee/components/gantt-chart/blocks/blocks-list.tsx index 90a15a61316..ced4c0ed2c4 100644 --- a/apps/web/ee/components/gantt-chart/blocks/blocks-list.tsx +++ b/apps/web/ee/components/gantt-chart/blocks/blocks-list.tsx @@ -1 +1 @@ -export { GanttChartBlocksList } from "@/components/gantt-chart/blocks/blocks-list"; +export * from "ce/components/gantt-chart/blocks/blocks-list";