π₯π₯π₯ 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
[WEB-5585]chore: timeline chart refactor (#8246)
Vamsi Krishna368af223db63
diff --git a/apps/web/ce/components/gantt-chart/index.ts b/apps/web/ce/components/gantt-chart/index.tsindex d08e0f7d61..d652e4bbce 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 "./layers";diff --git a/apps/web/ce/components/gantt-chart/layers/additional-layers.tsx b/apps/web/ce/components/gantt-chart/layers/additional-layers.tsxnew file mode 100644index 0000000000..5cc7c2ce5e--- /dev/null+++ b/apps/web/ce/components/gantt-chart/layers/additional-layers.tsx@@ -0,0 +1,8 @@+import type { FC } from "react";++type Props = {+ itemsContainerWidth: number;+ blockCount: number;+};++export const GanttAdditionalLayers: FC<Props> = () => null;diff --git a/apps/web/ce/components/gantt-chart/layers/index.ts b/apps/web/ce/components/gantt-chart/layers/index.tsnew file mode 100644index 0000000000..fcd77a972c--- /dev/null+++ b/apps/web/ce/components/gantt-chart/layers/index.ts@@ -0,0 +1 @@+export { GanttAdditionalLayers } from "./additional-layers";diff --git a/apps/web/core/components/gantt-chart/chart/main-content.tsx b/apps/web/core/components/gantt-chart/chart/main-content.tsxindex f555f90abd..bfa9d5fc39 100644--- a/apps/web/core/components/gantt-chart/chart/main-content.tsx+++ b/apps/web/core/components/gantt-chart/chart/main-content.tsx@@ -17,7 +17,11 @@ import { GanttChartSidebar, MonthChartView, QuarterChartView, WeekChartView } fr// hooksimport { useTimeLineChartStore } from "@/hooks/use-timeline-chart";// plane web components-import { TimelineDependencyPaths, TimelineDraggablePath } from "@/plane-web/components/gantt-chart";+import {+ TimelineDependencyPaths,+ TimelineDraggablePath,+ GanttAdditionalLayers,+} 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/bulk-operations";@@ -212,6 +216,7 @@ export const GanttChartMainContent = observer(function GanttChartMainContent(pro/><TimelineDependencyPaths isEpic={isEpic} /><TimelineDraggablePath />+ <GanttAdditionalLayers itemsContainerWidth={itemsContainerWidth} blockCount={blockIds.length} /><GanttChartBlocksListblockIds={blockIds}blockToRender={blockToRender}