mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 09:13:08 +00:00
fix type errors
This commit is contained in:
@@ -46,7 +46,7 @@ export function GraphView({
|
|||||||
// Skip completed features (they're in archive)
|
// Skip completed features (they're in archive)
|
||||||
if (f.status === 'completed') return false;
|
if (f.status === 'completed') return false;
|
||||||
|
|
||||||
const featureBranch = f.branchName;
|
const featureBranch = f.branchName as string | undefined;
|
||||||
|
|
||||||
if (!featureBranch) {
|
if (!featureBranch) {
|
||||||
// No branch assigned - show only on primary worktree
|
// No branch assigned - show only on primary worktree
|
||||||
|
|||||||
@@ -5,6 +5,12 @@ import { getBlockingDependencies } from '@automaker/dependency-resolver';
|
|||||||
import { GraphFilterResult } from './use-graph-filter';
|
import { GraphFilterResult } from './use-graph-filter';
|
||||||
|
|
||||||
export interface TaskNodeData extends Feature {
|
export interface TaskNodeData extends Feature {
|
||||||
|
// Re-declare properties from BaseFeature that have index signature issues
|
||||||
|
priority?: number;
|
||||||
|
error?: string;
|
||||||
|
branchName?: string;
|
||||||
|
dependencies?: string[];
|
||||||
|
// Task node specific properties
|
||||||
isBlocked: boolean;
|
isBlocked: boolean;
|
||||||
isRunning: boolean;
|
isRunning: boolean;
|
||||||
blockingDependencies: string[];
|
blockingDependencies: string[];
|
||||||
@@ -112,8 +118,9 @@ export function useGraphNodes({
|
|||||||
nodeList.push(node);
|
nodeList.push(node);
|
||||||
|
|
||||||
// Create edges for dependencies
|
// Create edges for dependencies
|
||||||
if (feature.dependencies && feature.dependencies.length > 0) {
|
const deps = feature.dependencies as string[] | undefined;
|
||||||
feature.dependencies.forEach((depId: string) => {
|
if (deps && deps.length > 0) {
|
||||||
|
deps.forEach((depId: string) => {
|
||||||
// Only create edge if the dependency exists in current view
|
// Only create edge if the dependency exists in current view
|
||||||
if (featureMap.has(depId)) {
|
if (featureMap.has(depId)) {
|
||||||
const sourceFeature = featureMap.get(depId)!;
|
const sourceFeature = featureMap.get(depId)!;
|
||||||
|
|||||||
Reference in New Issue
Block a user