improvement(preview): include current workflow badge in breadcrumb in workflow snapshot#3062
Merged
waleedlatif1 merged 3 commits intostagingfrom Jan 29, 2026
Merged
Conversation
Adds a badge next to the Back button when viewing nested workflows to help users identify which workflow they are currently viewing. This is especially helpful when navigating deeply into nested workflow blocks. Changes: - Added workflowName field to WorkflowStackEntry interface - Capture workflow name from metadata when drilling down - Display workflow name badge next to Back button Co-authored-by: emir <emir@simstudio.ai>
|
Cursor Agent can help with this pull request. Just |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
7a4359d to
863755d
Compare
Contributor
Greptile OverviewGreptile SummaryThis PR adds workflow context information to nested workflow navigation by including workflow name and description in the Changes Made
The implementation properly uses the existing Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Client
participant API as GET /api/workflows/[id]
participant DB as Database
participant Preview as Preview Component
participant Stack as Workflow Stack
Client->>API: Request workflow data
API->>DB: Load workflow from normalized tables
DB-->>API: Return workflow data (name, description, blocks, edges)
API->>API: Add metadata: { name, description } to state
API-->>Client: Return workflow with state.metadata
Client->>Preview: Render with workflowState
Preview->>Preview: Display root workflow
alt User drills into nested workflow
Preview->>Preview: handleDrillDown(blockId, childWorkflowState)
Preview->>Preview: Extract workflowName from childWorkflowState.metadata?.name
Preview->>Stack: Push { workflowState, traceSpans, blockExecutions, workflowName }
Preview->>Preview: Render nested workflow with back button + name badge
end
alt User navigates back
Preview->>Stack: Pop last entry
Preview->>Preview: Return to parent workflow level
end
|
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.
This pull request contains changes generated by a Cursor Cloud Agent