improvement(preview): error paths, loops, workflow#3010
Merged
emir-karabeg merged 6 commits intostagingfrom Jan 27, 2026
Merged
improvement(preview): error paths, loops, workflow#3010emir-karabeg merged 6 commits intostagingfrom
emir-karabeg merged 6 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile OverviewGreptile SummaryRefactored workflow preview architecture to support nested workflow navigation, improved error path visualization, and updated UI terminology. Key changes:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Preview
participant PreviewWorkflow
participant PreviewEditor
participant ReactFlow
User->>Preview: View workflow execution
Preview->>Preview: buildBlockExecutions(traceSpans)
Preview->>Preview: Initialize pinnedBlockId (leftmost block)
Preview->>PreviewWorkflow: Render workflow canvas
PreviewWorkflow->>ReactFlow: Render nodes and edges
ReactFlow-->>User: Display workflow visualization
Preview->>PreviewEditor: Render editor sidebar (pinned block)
PreviewEditor-->>User: Display block input/output
alt User clicks on block
User->>PreviewWorkflow: Click block
PreviewWorkflow->>Preview: onNodeClick(blockId)
Preview->>Preview: setPinnedBlockId(blockId)
Preview->>PreviewEditor: Update editor with new block
PreviewEditor-->>User: Show selected block details
end
alt User drills into nested workflow (loop/parallel)
User->>PreviewEditor: Click "View Workflow" on loop/parallel block
PreviewEditor->>Preview: onDrillDown(blockId, childWorkflowState)
Preview->>Preview: extractChildTraceSpans(blockExecution)
Preview->>Preview: buildBlockExecutions(childTraceSpans)
Preview->>Preview: Push to workflowStack
Preview->>Preview: Set pinned block to leftmost in child
Preview->>PreviewWorkflow: Render child workflow
PreviewWorkflow->>ReactFlow: Render child nodes/edges
Preview->>PreviewEditor: Show child block details
Preview-->>User: Display "Back" button
end
alt User goes back from nested workflow
User->>Preview: Click "Back" button
Preview->>Preview: Pop from workflowStack
Preview->>Preview: Clear pinnedBlockId
Preview->>PreviewWorkflow: Render parent workflow
Preview->>PreviewEditor: Hide editor
end
alt Error path execution
PreviewWorkflow->>PreviewWorkflow: Check edgeRunStatus
alt Error edge was taken
PreviewWorkflow->>ReactFlow: Color edge green (success)
else Error edge not taken
PreviewWorkflow->>ReactFlow: Color edge red (error)
end
end
|
Collaborator
Author
|
@greptile |
ff53e0e to
7caa1f5
Compare
Collaborator
Author
|
@greptile |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Type of Change
Testing
Solo.
Checklist