-
Notifications
You must be signed in to change notification settings - Fork 3.1k
feat(subflows): editor, block; fix(copilot): stop, mr #1877
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
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
|
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.
21 files reviewed, no comments
Summary
Subflows:
Copilot:
Type of Change
Testing
Solo testing.
Checklist