chore: update plan and fix useMultiSelectIntersection types

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
2026-03-19 00:37:14 +01:00
parent e7b74f13bd
commit 407266bc28
2 changed files with 252 additions and 317 deletions
@@ -5,9 +5,13 @@
import { useEffect } from "react";
import { LABEL_WIDTH } from "~/components/timeline/timelineConstants.js";
import type { MultiSelectState, AllocDragMode } from "~/hooks/useTimelineDrag.js";
import type { TimelineAssignmentEntry } from "~/components/timeline/TimelineContext.js";
import type { ViewMode, ResourceBrief } from "~/components/timeline/TimelineContext.js";
import type { MultiSelectState } from "~/hooks/useTimelineDrag.js";
import type {
TimelineAssignmentEntry,
TimelineDemandEntry,
ViewMode,
ResourceBrief,
} from "~/components/timeline/TimelineContext.js";
interface ProjectGroup {
id: string;
@@ -17,12 +21,6 @@ interface ProjectGroup {
}[];
}
interface DemandEntry {
id: string;
startDate: Date | string;
endDate: Date | string;
}
export function useMultiSelectIntersection({
multiSelectState,
setMultiSelectState,
@@ -47,7 +45,7 @@ export function useMultiSelectIntersection({
resources: ResourceBrief[];
allocsByResource: Map<string, TimelineAssignmentEntry[]>;
projectGroups: ProjectGroup[];
openDemandsByProject: Map<string, DemandEntry[]>;
openDemandsByProject: Map<string, TimelineDemandEntry[]>;
dates: Date[];
today: Date;
CELL_WIDTH: number;