fix(subflows): add loops/parallels to accessible list of blocks in the tag dropdown when contained withitn a subflow#2047
Merged
waleedlatif1 merged 2 commits intostagingfrom Nov 19, 2025
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile Summary
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant TagDropdown
participant Hook as useAccessibleReferencePrefixes
participant Store as WorkflowStore
participant Resolver as LoopResolver
User->>TagDropdown: Open tag dropdown in subflow block
TagDropdown->>Hook: Call hook with blockId
Hook->>Store: Get loops, parallels, blocks, edges
Store-->>Hook: Return workflow data
Hook->>Hook: Find containing loop/parallel
Hook->>Hook: Add loop.id to accessibleIds
Hook->>Hook: Add parallel.id to accessibleIds
Hook-->>TagDropdown: Return accessible prefixes (including loop/parallel)
TagDropdown->>TagDropdown: Build tag list with "index" tag
TagDropdown-->>User: Display tags (loop.index, loop.currentItem, etc.)
User->>TagDropdown: Select "index" tag
TagDropdown->>TagDropdown: Process tag as "loop.index"
TagDropdown-->>User: Insert "<loop.index>" reference
Note over Resolver: At runtime, loop.index resolves to loopScope.iteration
|
Contributor
There was a problem hiding this comment.
1 file reviewed, no comments
Edit Code Review Agent Settings | Greptile
React with 👍 or 👎 to share your feedback on this new summary format
…e tag dropdown when contained withitn a subflow
076e1ec to
7712837
Compare
Collaborator
Author
|
@greptile |
Contributor
There was a problem hiding this comment.
8 files reviewed, no comments
Edit Code Review Agent Settings | Greptile
React with 👍 or 👎 to share your feedback on this new summary format
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
add loops/parallels to accessible list of blocks in the tag dropdown when contained within a subflow
Type of Change
Testing
Tested manually
Checklist