improvement(preview): render nested values like input format correctly in workflow execution preview #3154
Open
icecrasher321 wants to merge 6 commits intostagingfrom
Open
improvement(preview): render nested values like input format correctly in workflow execution preview #3154icecrasher321 wants to merge 6 commits intostagingfrom
icecrasher321 wants to merge 6 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile OverviewGreptile Summary
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant UI as PreviewEditor UI
participant Sub as SubBlockComponent
participant Comp as Sub-block Inputs
participant Gate as useDependsOnGate
participant Util as resolvePreviewContextValue
participant Snap as SnapshotService
participant DB as workflowExecutionSnapshots (DB)
UI->>Snap: createSnapshotWithDeduplication(workflowId, state)
Snap->>DB: SELECT snapshot by (workflowId, stateHash)
alt snapshot exists
Snap->>DB: UPDATE stateData (best-effort)
Snap-->>UI: return existingSnapshot + stateData=state
else new snapshot
Snap->>DB: INSERT snapshot(stateData=state)
Snap-->>UI: return new snapshot
end
UI->>Sub: render block preview (execution/preview mode)
Sub->>Comp: pass previewValue + previewContextValues=subBlockValues
Comp->>Gate: compute depsSatisfied / finalDisabled
Gate->>Util: unwrap previewContextValues entries (optional)
Util-->>Gate: normalized raw values
Gate-->>Comp: finalDisabled + depsSatisfied
Comp-->>UI: render resolved nested inputs
|
...workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/utils.ts
Show resolved
Hide resolved
...paceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx
Show resolved
Hide resolved
Collaborator
Author
|
@cursor review |
...anel/components/editor/components/sub-block/components/file-selector/file-selector-input.tsx
Show resolved
Hide resolved
Collaborator
Author
|
@cursor review |
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
Fix preview/snapshot rendering for nested workflow blocks and all sub-block components that read sibling values. Snapshot service now refreshes stale stateData on dedup hits, non-executed blocks show "Not Executed" instead of "Deleted Workflow", and a shared resolvePreviewContextValue utility ensures all 12 sub-block components correctly resolve sibling values from snapshot context rather than falling back to the live editor store.
Type of Change
Testing
Tested manually
Checklist