Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
8ef5b5b to
679b384
Compare
Collaborator
Author
|
@greptile |
Contributor
Greptile SummaryThis PR implements a workflow block preview feature that displays child workflows inline when editing workflow blocks, along with improvements to the workflow query system. The feature adds a 160px preview panel within the editor that shows the child workflow's structure, includes loading states, and provides a button to open the child workflow in a new tab. Key Changes:
The implementation follows established patterns, maintains type safety, and properly handles edge cases (no workflow selected, loading states, errors). Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant EditorPanel as Editor Panel
participant WorkflowHook as useWorkflowState Hook
participant API as Backend API
participant Preview as WorkflowPreview Component
User->>EditorPanel: Selects workflow block
EditorPanel->>EditorPanel: Detects block type === 'workflow' or 'workflow_input'
EditorPanel->>WorkflowHook: useWorkflowState(childWorkflowId)
alt workflowId exists
WorkflowHook->>API: GET /api/workflows/{id}
API-->>WorkflowHook: Returns WorkflowState
WorkflowHook-->>EditorPanel: data: WorkflowState, isLoading: false
else no workflowId selected
EditorPanel->>EditorPanel: Render 'No workflow selected' message
end
EditorPanel->>EditorPanel: isLoadingChildWorkflow check
alt loading
EditorPanel->>EditorPanel: Render loading spinner
else loaded
EditorPanel->>Preview: Pass workflowState to WorkflowPreview
Preview->>Preview: Render nodes and edges from state
Preview-->>EditorPanel: Rendered preview canvas
EditorPanel->>EditorPanel: Show open-in-new-tab button
end
User->>EditorPanel: Clicks open button
EditorPanel->>API: window.open(/workspace/{id}/w/{childWorkflowId})
API-->>User: Opens child workflow in new tab
|
waleedlatif1
added a commit
that referenced
this pull request
Jan 22, 2026
* fix(zustand): updated to useShallow from deprecated createWithEqualityFn (#2919) * fix(logger): use direct env access for webpack inlining (#2920) * fix(notifications): text overflow with line-clamp (#2921) * chore(helm): add env vars for Vertex AI, orgs, and telemetry (#2922) * fix(auth): improve reset password flow and consolidate brand detection (#2924) * fix(auth): improve reset password flow and consolidate brand detection * fix(auth): set errorHandled for EMAIL_NOT_VERIFIED to prevent duplicate error * fix(auth): clear success message on login errors * chore(auth): fix import order per lint * fix(action-bar): duplicate subflows with children (#2923) * fix(action-bar): duplicate subflows with children * fix(action-bar): add validateTriggerPaste for subflow duplicate * fix(resolver): agent response format, input formats, root level (#2925) * fix(resolvers): agent response format, input formats, root level * fix response block initial seeding * fix tests * fix(messages-input): fix cursor alignment and auto-resize with overlay (#2926) * fix(messages-input): fix cursor alignment and auto-resize with overlay * fixed remaining zustand warnings * fix(stores): remove dead code causing log spam on startup (#2927) * fix(stores): remove dead code causing log spam on startup * fix(stores): replace custom tools zustand store with react query cache * improvement(ui): use BrandedButton and BrandedLink components (#2930) - Refactor auth forms to use BrandedButton component - Add BrandedLink component for changelog page - Reduce code duplication in login, signup, reset-password forms - Update star count default value * fix(custom-tools): remove unsafe title fallback in getCustomTool (#2929) * fix(custom-tools): remove unsafe title fallback in getCustomTool * fix(custom-tools): restore title fallback in getCustomTool lookup Custom tools are referenced by title (custom_${title}), not database ID. The title fallback is required for client-side tool resolution to work. * fix(null-bodies): empty bodies handling (#2931) * fix(null-statuses): empty bodies handling * address bugbot comment * fix(token-refresh): microsoft, notion, x, linear (#2933) * fix(microsoft): proactive refresh needed * fix(x): missing token refresh flag * notion and linear missing flag too * address bugbot comment * fix(auth): handle EMAIL_NOT_VERIFIED in onError callback (#2932) * fix(auth): handle EMAIL_NOT_VERIFIED in onError callback * refactor(auth): extract redirectToVerify helper to reduce duplication * fix(workflow-selector): use dedicated selector for workflow dropdown (#2934) * feat(workflow-block): preview (#2935) * improvement(copilot): tool configs to show nested props (#2936) * fix(auth): add genericOAuth providers to trustedProviders (#2937) --------- Co-authored-by: Vikhyath Mondreti <[email protected]> Co-authored-by: Emir Karabeg <[email protected]>
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
Added workflow block preview. Made some improvements to workflow query.
Type of Change
Testing
Solo.
Checklist