feat(subflows): editor, block; fix(copilot): stop, mr#1877
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile OverviewGreptile SummaryThis PR introduces a new subflow editor interface for loop and parallel blocks and fixes copilot UI issues. Major Changes:
Architectural Improvements:
Custom Instruction Compliance:
Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant Editor
participant SubflowEditor
participant useSubflowEditor
participant Store
participant CollaborativeWorkflow
User->>Editor: Select loop/parallel block
Editor->>Editor: Detect isSubflow = true
Editor->>SubflowEditor: Render SubflowEditor component
SubflowEditor->>useSubflowEditor: Initialize hook
useSubflowEditor->>Store: Get subflow config & node data
Store-->>useSubflowEditor: Return current state
useSubflowEditor-->>SubflowEditor: Return state & handlers
SubflowEditor->>User: Display type selector & config
alt User changes loop/parallel type
User->>SubflowEditor: Change type
SubflowEditor->>useSubflowEditor: handleSubflowTypeChange()
useSubflowEditor->>CollaborativeWorkflow: collaborativeUpdateLoopType/ParallelType()
CollaborativeWorkflow->>Store: Update store
Store-->>SubflowEditor: Re-render with new type
end
alt User edits iterations (count mode)
User->>SubflowEditor: Edit iteration count
SubflowEditor->>useSubflowEditor: handleSubflowIterationsChange()
useSubflowEditor->>useSubflowEditor: Validate & sanitize input
User->>SubflowEditor: Blur or press Enter
SubflowEditor->>useSubflowEditor: handleSubflowIterationsSave()
useSubflowEditor->>CollaborativeWorkflow: collaborativeUpdateIterationCount()
CollaborativeWorkflow->>Store: Update iteration count
end
alt User edits collection/condition
User->>SubflowEditor: Edit code editor
SubflowEditor->>useSubflowEditor: handleSubflowEditorChange()
useSubflowEditor->>useSubflowEditor: Check for tag trigger ("<")
alt Tag trigger detected
useSubflowEditor->>SubflowEditor: Show tag dropdown
User->>SubflowEditor: Select tag
SubflowEditor->>useSubflowEditor: handleSubflowTagSelect()
end
useSubflowEditor->>CollaborativeWorkflow: collaborativeUpdateIterationCollection()
CollaborativeWorkflow->>Store: Update collection/condition
end
SubflowEditor->>SubflowEditor: Render connections section
SubflowEditor->>User: Display incoming connections
|
waleedlatif1
pushed a commit
that referenced
this pull request
Nov 12, 2025
waleedlatif1
pushed a commit
that referenced
this pull request
Nov 12, 2025
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
Subflows:
Copilot:
Type of Change
Testing
Solo testing.
Checklist