From 28c36ea9953b1f83738848762afeb77ee38e9222 Mon Sep 17 00:00:00 2001 From: vamsikrishnamathala Date: Fri, 5 Dec 2025 13:22:42 +0530 Subject: [PATCH 1/2] chore: timeline chart refactor --- apps/web/ce/components/gantt-chart/index.ts | 1 + .../components/gantt-chart/layers/additional-layers.tsx | 8 ++++++++ apps/web/ce/components/gantt-chart/layers/index.ts | 1 + .../core/components/gantt-chart/chart/main-content.tsx | 3 ++- 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 apps/web/ce/components/gantt-chart/layers/additional-layers.tsx create mode 100644 apps/web/ce/components/gantt-chart/layers/index.ts diff --git a/apps/web/ce/components/gantt-chart/index.ts b/apps/web/ce/components/gantt-chart/index.ts index d08e0f7d617..936193f69e2 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"; \ No newline at end of file diff --git a/apps/web/ce/components/gantt-chart/layers/additional-layers.tsx b/apps/web/ce/components/gantt-chart/layers/additional-layers.tsx new file mode 100644 index 00000000000..91e9f3c8143 --- /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 = () => null; \ No newline at end of file diff --git a/apps/web/ce/components/gantt-chart/layers/index.ts b/apps/web/ce/components/gantt-chart/layers/index.ts new file mode 100644 index 00000000000..6b60810a29f --- /dev/null +++ b/apps/web/ce/components/gantt-chart/layers/index.ts @@ -0,0 +1 @@ +export { GanttAdditionalLayers } from "./additional-layers"; \ No newline at end of file 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 f555f90abd3..dfc94ef5650 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,7 @@ import { GanttChartSidebar, MonthChartView, QuarterChartView, WeekChartView } fr // hooks import { 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 +212,7 @@ export const GanttChartMainContent = observer(function GanttChartMainContent(pro /> + Date: Tue, 9 Dec 2025 21:24:01 +0530 Subject: [PATCH 2/2] fix: format --- apps/web/ce/components/gantt-chart/index.ts | 2 +- .../gantt-chart/layers/additional-layers.tsx | 2 +- .../ce/components/gantt-chart/layers/index.ts | 2 +- .../components/editor/sticky-editor/editor.tsx | 9 ++++----- .../gantt-chart/chart/main-content.tsx | 6 +++++- .../core/store/base-command-palette.store.ts | 18 +++++++++--------- .../store/issue/issue-details/root.store.ts | 3 ++- 7 files changed, 23 insertions(+), 19 deletions(-) diff --git a/apps/web/ce/components/gantt-chart/index.ts b/apps/web/ce/components/gantt-chart/index.ts index 936193f69e2..d652e4bbcec 100644 --- a/apps/web/ce/components/gantt-chart/index.ts +++ b/apps/web/ce/components/gantt-chart/index.ts @@ -1,2 +1,2 @@ export * from "./dependency"; -export * from "./layers"; \ No newline at end of file +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.tsx index 91e9f3c8143..5cc7c2ce5e6 100644 --- a/apps/web/ce/components/gantt-chart/layers/additional-layers.tsx +++ b/apps/web/ce/components/gantt-chart/layers/additional-layers.tsx @@ -5,4 +5,4 @@ type Props = { blockCount: number; }; -export const GanttAdditionalLayers: FC = () => null; \ No newline at end of file +export const GanttAdditionalLayers: FC = () => null; diff --git a/apps/web/ce/components/gantt-chart/layers/index.ts b/apps/web/ce/components/gantt-chart/layers/index.ts index 6b60810a29f..fcd77a972ca 100644 --- a/apps/web/ce/components/gantt-chart/layers/index.ts +++ b/apps/web/ce/components/gantt-chart/layers/index.ts @@ -1 +1 @@ -export { GanttAdditionalLayers } from "./additional-layers"; \ No newline at end of file +export { GanttAdditionalLayers } from "./additional-layers"; diff --git a/apps/web/core/components/editor/sticky-editor/editor.tsx b/apps/web/core/components/editor/sticky-editor/editor.tsx index 43706bb7080..47792759770 100644 --- a/apps/web/core/components/editor/sticky-editor/editor.tsx +++ b/apps/web/core/components/editor/sticky-editor/editor.tsx @@ -15,11 +15,10 @@ import { useParseEditorContent } from "@/hooks/use-parse-editor-content"; import { useEditorFlagging } from "@/plane-web/hooks/use-editor-flagging"; import { StickyEditorToolbar } from "./toolbar"; -interface StickyEditorWrapperProps - extends Omit< - Omit, - "disabledExtensions" | "editable" | "flaggedExtensions" | "fileHandler" | "mentionHandler" | "getEditorMetaData" - > { +interface StickyEditorWrapperProps extends Omit< + Omit, + "disabledExtensions" | "editable" | "flaggedExtensions" | "fileHandler" | "mentionHandler" | "getEditorMetaData" +> { workspaceSlug: string; workspaceId: string; projectId?: string; 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 dfc94ef5650..bfa9d5fc39b 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 // hooks import { useTimeLineChartStore } from "@/hooks/use-timeline-chart"; // plane web components -import { TimelineDependencyPaths, TimelineDraggablePath, GanttAdditionalLayers, } 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"; diff --git a/apps/web/core/store/base-command-palette.store.ts b/apps/web/core/store/base-command-palette.store.ts index eff132ef351..d48769f7e29 100644 --- a/apps/web/core/store/base-command-palette.store.ts +++ b/apps/web/core/store/base-command-palette.store.ts @@ -89,15 +89,15 @@ export abstract class BaseCommandPaletteStore implements IBaseCommandPaletteStor protected getCoreModalsState(): boolean { return Boolean( this.isCreateIssueModalOpen || - this.isCreateCycleModalOpen || - this.isCreateProjectModalOpen || - this.isCreateModuleModalOpen || - this.isCreateViewModalOpen || - store.powerK.isShortcutsListModalOpen || - this.isBulkDeleteIssueModalOpen || - this.isDeleteIssueModalOpen || - this.createPageModal.isOpen || - this.allStickiesModal + this.isCreateCycleModalOpen || + this.isCreateProjectModalOpen || + this.isCreateModuleModalOpen || + this.isCreateViewModalOpen || + store.powerK.isShortcutsListModalOpen || + this.isBulkDeleteIssueModalOpen || + this.isDeleteIssueModalOpen || + this.createPageModal.isOpen || + this.allStickiesModal ); } // computedFn diff --git a/apps/web/core/store/issue/issue-details/root.store.ts b/apps/web/core/store/issue/issue-details/root.store.ts index 895b78693ad..477c155e449 100644 --- a/apps/web/core/store/issue/issue-details/root.store.ts +++ b/apps/web/core/store/issue/issue-details/root.store.ts @@ -60,7 +60,8 @@ export type TIssueCrudOperationState = { }; export interface IIssueDetail - extends IIssueStoreActions, + extends + IIssueStoreActions, IIssueReactionStoreActions, IIssueLinkStoreActions, IIssueSubIssuesStoreActions,