-
Notifications
You must be signed in to change notification settings - Fork 577
feat: task dependency graph view #222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
webdevcody
merged 6 commits into
AutoMaker-Org:main
from
JBotwina:claude/task-dependency-graph-iPz1k
Dec 22, 2025
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b930091
✨ feat: add dependency graph view for task visualization
claude a071097
Merge branch 'AutoMaker-Org:main' into claude/task-dependency-graph-i…
JBotwina 2588eca
Merge remote-tracking branch 'origin/main' into claude/task-dependenc…
JBotwina 7c75c24
fix: graph nodes now respect theme colors
JBotwina c4df2c1
Merge branch 'main' of github.com:AutoMaker-Org/automaker into claude…
036a7d9
refactor: update e2e tests to use 'load' state for page navigation
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 115 additions & 0 deletions
115
apps/ui/src/components/views/graph-view/components/dependency-edge.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,115 @@ | ||
| import { memo } from 'react'; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix Prettier formatting issues flagged by CI. The pipeline indicates code style issues found by Prettier. Run 🧰 Tools🪛 GitHub Actions: Format Check[warning] 1-1: Code style issues found by Prettier. Run 'prettier --write' to fix this file. 🤖 Prompt for AI Agents |
||
| import { BaseEdge, getBezierPath, EdgeLabelRenderer } from '@xyflow/react'; | ||
| import type { EdgeProps } from '@xyflow/react'; | ||
| import { cn } from '@/lib/utils'; | ||
| import { Feature } from '@/store/app-store'; | ||
|
|
||
| export interface DependencyEdgeData { | ||
| sourceStatus: Feature['status']; | ||
| targetStatus: Feature['status']; | ||
| } | ||
|
|
||
| const getEdgeColor = (sourceStatus?: Feature['status'], targetStatus?: Feature['status']) => { | ||
| // If source is completed/verified, the dependency is satisfied | ||
| if (sourceStatus === 'completed' || sourceStatus === 'verified') { | ||
| return 'var(--status-success)'; | ||
| } | ||
| // If target is in progress, show active color | ||
| if (targetStatus === 'in_progress') { | ||
| return 'var(--status-in-progress)'; | ||
| } | ||
| // If target is blocked (in backlog with incomplete deps) | ||
| if (targetStatus === 'backlog') { | ||
| return 'var(--border)'; | ||
| } | ||
| // Default | ||
| return 'var(--border)'; | ||
| }; | ||
|
|
||
| export const DependencyEdge = memo(function DependencyEdge(props: EdgeProps) { | ||
| const { | ||
| id, | ||
| sourceX, | ||
| sourceY, | ||
| targetX, | ||
| targetY, | ||
| sourcePosition, | ||
| targetPosition, | ||
| data, | ||
| selected, | ||
| animated, | ||
| } = props; | ||
|
|
||
| const edgeData = data as DependencyEdgeData | undefined; | ||
|
|
||
| const [edgePath, labelX, labelY] = getBezierPath({ | ||
| sourceX, | ||
| sourceY, | ||
| sourcePosition, | ||
| targetX, | ||
| targetY, | ||
| targetPosition, | ||
| curvature: 0.25, | ||
| }); | ||
|
|
||
| const edgeColor = edgeData | ||
| ? getEdgeColor(edgeData.sourceStatus, edgeData.targetStatus) | ||
| : 'var(--border)'; | ||
|
|
||
| const isCompleted = edgeData?.sourceStatus === 'completed' || edgeData?.sourceStatus === 'verified'; | ||
| const isInProgress = edgeData?.targetStatus === 'in_progress'; | ||
|
|
||
| return ( | ||
| <> | ||
| {/* Background edge for better visibility */} | ||
| <BaseEdge | ||
| id={`${id}-bg`} | ||
| path={edgePath} | ||
| style={{ | ||
| strokeWidth: 4, | ||
| stroke: 'var(--background)', | ||
| }} | ||
| /> | ||
|
|
||
| {/* Main edge */} | ||
| <BaseEdge | ||
| id={id} | ||
| path={edgePath} | ||
| className={cn( | ||
| 'transition-all duration-300', | ||
| animated && 'animated-edge', | ||
| isInProgress && 'edge-flowing' | ||
| )} | ||
| style={{ | ||
| strokeWidth: selected ? 3 : 2, | ||
| stroke: edgeColor, | ||
| strokeDasharray: isCompleted ? 'none' : '5 5', | ||
| filter: selected ? 'drop-shadow(0 0 3px var(--brand-500))' : 'none', | ||
| }} | ||
| /> | ||
|
|
||
| {/* Animated particles for in-progress edges */} | ||
| {animated && ( | ||
| <EdgeLabelRenderer> | ||
| <div | ||
| style={{ | ||
| position: 'absolute', | ||
| transform: `translate(-50%, -50%) translate(${labelX}px,${labelY}px)`, | ||
| pointerEvents: 'none', | ||
| }} | ||
| className="edge-particle" | ||
| > | ||
| <div | ||
| className={cn( | ||
| 'w-2 h-2 rounded-full', | ||
| isInProgress | ||
| ? 'bg-[var(--status-in-progress)] animate-ping' | ||
| : 'bg-brand-500 animate-pulse' | ||
| )} | ||
| /> | ||
| </div> | ||
| </EdgeLabelRenderer> | ||
| )} | ||
| </> | ||
| ); | ||
| }); | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: AutoMaker-Org/automaker
Length of output: 766
Version mismatch: @types/dagre 0.7.53 does not match dagre 0.8.5.
The type definitions are for dagre 0.7, but the project uses dagre 0.8.5. There are no published @types/dagre versions for the 0.8.x series. Consider either downgrading dagre to a 0.7.x version or finding an alternative type definition source.
🤖 Prompt for AI Agents