Skip to content

Commit 368af22

Browse files
[WEB-5585]chore: timeline chart refactor (#8246)
* chore: timeline chart refactor * fix: format
1 parent 8bb7ebb commit 368af22

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from "./dependency";
2+
export * from "./layers";
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { FC } from "react";
2+
3+
type Props = {
4+
itemsContainerWidth: number;
5+
blockCount: number;
6+
};
7+
8+
export const GanttAdditionalLayers: FC<Props> = () => null;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { GanttAdditionalLayers } from "./additional-layers";

apps/web/core/components/gantt-chart/chart/main-content.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ import { GanttChartSidebar, MonthChartView, QuarterChartView, WeekChartView } fr
1717
// hooks
1818
import { useTimeLineChartStore } from "@/hooks/use-timeline-chart";
1919
// plane web components
20-
import { TimelineDependencyPaths, TimelineDraggablePath } from "@/plane-web/components/gantt-chart";
20+
import {
21+
TimelineDependencyPaths,
22+
TimelineDraggablePath,
23+
GanttAdditionalLayers,
24+
} from "@/plane-web/components/gantt-chart";
2125
import { GanttChartRowList } from "@/plane-web/components/gantt-chart/blocks/block-row-list";
2226
import { GanttChartBlocksList } from "@/plane-web/components/gantt-chart/blocks/blocks-list";
2327
import { IssueBulkOperationsRoot } from "@/plane-web/components/issues/bulk-operations";
@@ -212,6 +216,7 @@ export const GanttChartMainContent = observer(function GanttChartMainContent(pro
212216
/>
213217
<TimelineDependencyPaths isEpic={isEpic} />
214218
<TimelineDraggablePath />
219+
<GanttAdditionalLayers itemsContainerWidth={itemsContainerWidth} blockCount={blockIds.length} />
215220
<GanttChartBlocksList
216221
blockIds={blockIds}
217222
blockToRender={blockToRender}

0 commit comments

Comments
 (0)