Files
taskpile/frontend/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.d.ts
Alvis f1d51b8cc8 Add side panels, task selection, graph animation, and project docs
- Foldable left panel (user profile) and right panel (task details)
- Clicking a task in the list or graph node selects it and shows details
- Both views (task list + graph) always mounted via absolute inset-0 for
  correct canvas dimensions; tabs toggle visibility with opacity
- Graph node selection animation: other nodes repel outward (charge -600),
  then selected node smoothly slides to center (500ms cubic ease-out),
  then charge restores to -120 and graph stabilizes
- Graph re-fits on tab switch and panel resize via ResizeObserver
- Fix UUID string IDs throughout (backend returns UUIDs, not integers)
- Add TaskDetailPanel, UserPanel components
- Add CLAUDE.md project documentation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 11:23:06 +00:00

34 lines
1.3 KiB
TypeScript

import type { ReactNode } from 'react';
import type { CacheNode } from '../../../shared/lib/app-router-context.shared-runtime';
import type { FlightRouterState, CacheNodeSeedData } from '../../../server/app-render/types';
import { type PrefetchCacheEntry } from './router-reducer-types';
export interface InitialRouterStateParameters {
buildId: string;
initialTree: FlightRouterState;
initialCanonicalUrl: string;
initialSeedData: CacheNodeSeedData;
initialParallelRoutes: CacheNode['parallelRoutes'];
location: Location | null;
initialHead: ReactNode;
couldBeIntercepted?: boolean;
}
export declare function createInitialRouterState({ buildId, initialTree, initialSeedData, initialCanonicalUrl, initialParallelRoutes, location, initialHead, couldBeIntercepted, }: InitialRouterStateParameters): {
buildId: string;
tree: FlightRouterState;
cache: import("../../../shared/lib/app-router-context.shared-runtime").ReadyCacheNode;
prefetchCache: Map<string, PrefetchCacheEntry>;
pushRef: {
pendingPush: boolean;
mpaNavigation: boolean;
preserveCustomHistoryState: boolean;
};
focusAndScrollRef: {
apply: boolean;
onlyHashChange: boolean;
hashFragment: null;
segmentPaths: never[];
};
canonicalUrl: string;
nextUrl: string | null;
};