feat(planning): ship holiday-aware planning and assistant upgrades
This commit is contained in:
@@ -6,12 +6,19 @@ import {
|
||||
RESOURCE_VIEW_DOMAINS,
|
||||
PROJECT_VIEW_DOMAINS,
|
||||
type Domain,
|
||||
type GraphLink,
|
||||
type GraphNode,
|
||||
} from "./domain-colors";
|
||||
import { buildForceGraphData, getConnectedNodeIds, type PositionedNode, type ForceGraphData } from "./graph-data";
|
||||
|
||||
export type ViewMode = "resource" | "project";
|
||||
|
||||
export interface ComputationGraphResponse {
|
||||
nodes: GraphNode[];
|
||||
links: GraphLink[];
|
||||
meta?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export interface ComputationGraphState {
|
||||
viewMode: ViewMode;
|
||||
setViewMode: (m: ViewMode) => void;
|
||||
@@ -26,6 +33,7 @@ export interface ComputationGraphState {
|
||||
isLoading: boolean;
|
||||
activeDomains: Domain[];
|
||||
graphData: ForceGraphData;
|
||||
rawData: ComputationGraphResponse | null;
|
||||
highlightedNodes: Set<string> | null;
|
||||
setHighlightedNodes: (s: Set<string> | null) => void;
|
||||
hoveredNode: PositionedNode | null;
|
||||
@@ -144,6 +152,7 @@ export function useComputationGraphData(): ComputationGraphState {
|
||||
isLoading,
|
||||
activeDomains,
|
||||
graphData,
|
||||
rawData: (rawData as ComputationGraphResponse | undefined) ?? null,
|
||||
highlightedNodes,
|
||||
setHighlightedNodes,
|
||||
hoveredNode,
|
||||
|
||||
Reference in New Issue
Block a user