chore: update plan and fix useMultiSelectIntersection types
Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user