fix(notifications): throw notification on runtime errors, move predeploy checks to update in deploy modal#3172
Merged
waleedlatif1 merged 2 commits intostagingfrom Feb 9, 2026
Merged
Conversation
…loy checks to update in deploy modal
Contributor
Greptile OverviewGreptile SummaryThis PR shifts client-side pre-deploy validation for redeploy/update into the Deploy modal’s Update action (instead of gating opening the modal), and refactors terminal runtime-error notifications into a shared helper while also emitting notifications when Key behavior changes:
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant UI as DeployModal
participant WS as WorkflowStore
participant PC as PreDeployChecks
participant API as Deploy API
participant TS as TerminalConsoleStore
participant NS as NotificationStore
UI->>WS: getState() blocks/edges/loops/parallels
UI->>PC: runPreDeployChecks(liveBlocks,...)
alt checks fail
UI-->>UI: setDeployError() and return
else checks pass
UI->>API: deployMutation.mutateAsync(workflowId)
API-->>UI: deploy result (warnings/success)
end
TS->>TS: updateConsole(blockId, update, executionId?)
opt update is object and has error
TS->>TS: find matching entry by blockId+executionId
TS->>NS: addNotification(error, workflowId?, message)
end
|
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Collaborator
Author
|
@greptile |
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
Type of Change
Testing
Tested manually
Checklist