fix(editor): Do not show "Set up error notifications" suggestion when activating an error workflow#26419
Open
RomanDavydchuk wants to merge 4 commits intomasterfrom
Open
Conversation
…ing an error workflow
…g-in-error-workflow
Contributor
There was a problem hiding this comment.
1 issue found across 2 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/frontend/editor-ui/src/app/components/WorkflowProductionChecklist.vue">
<violation number="1" location="packages/frontend/editor-ui/src/app/components/WorkflowProductionChecklist.vue:70">
P1: Custom agent: **Tests**
Add tests for the new error-workflow checklist suppression. The Community PR Guidelines require tests for changes like this, and the current diff adds behavior in `WorkflowProductionChecklist.vue` without any test coverage.</violation>
</file>
Architecture diagram
sequenceDiagram
participant User
participant Comp as WorkflowProductionChecklist (Vue)
participant State as Workflow State
participant UI as Suggested Actions UI
User->>Comp: Activate Workflow / Open Checklist
Comp->>State: Access workflow.nodes & settings
State-->>Comp: Return node array and errorWorkflow settings
Note over Comp: NEW: Check if current workflow is an Error Workflow
Comp->>Comp: isErrorWorkflow = nodes.some(type === 'ERROR_TRIGGER' && !disabled)
Note over Comp: CHANGED: Compute availableActions
alt isErrorWorkflow === true
Comp->>Comp: NEW: Exclude "Set up error notifications" from actions
else isErrorWorkflow === false
opt !workflow.settings.errorWorkflow && !ignored
Comp->>Comp: Include "Set up error notifications" action
end
end
Comp->>Comp: Include other actions (e.g., "Set up time saved")
Comp->>UI: Render filtered list of actions
UI-->>User: Display Production Checklist
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
packages/frontend/editor-ui/src/app/components/WorkflowProductionChecklist.vue
Show resolved
Hide resolved
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Bundle ReportChanges will increase total bundle size by 224 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: editor-ui-esmAssets Changed:
Files in
|
…g-in-error-workflow
Contributor
There was a problem hiding this comment.
1 issue found across 1 file (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/frontend/editor-ui/src/app/components/WorkflowProductionChecklist.vue">
<violation number="1" location="packages/frontend/editor-ui/src/app/components/WorkflowProductionChecklist.vue:129">
P1: This change is behaviorally a no-op (only reorders equivalent conditions), so it does not implement the NODE-4524 bug fix.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
packages/frontend/editor-ui/src/app/components/WorkflowProductionChecklist.vue
Show resolved
Hide resolved
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
If you were to activate a workflow that contains the Error trigger and the production checklist appears - it'll have "Set up error notifications" item, which doesn't make that much sense.

This PR fixes that:

Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/NODE-4524/error-checklist-item-also-showing-in-error-workflow
Review / Merge checklist
release/backport(if the PR is an urgent fix that needs to be backported)