Skip to content

fix(editor): Maintain back button when installing community nodes #16069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

dana-gill
Copy link
Contributor

@dana-gill dana-gill commented Jun 5, 2025

Summary

Maintain back button when installing community nodes. The problem was that verified official community nodes are now part of the visibleNodeTypes (see https://linear.app/n8n/issue/NODE-3009/distinguish-official-verified-nodes-from-community-built-ones) and we weren't updating mergedNodes, which is derived from visibleNodeTypes.

Updating mergedNodes has to be done manually since the root view stack only passes the mergedNodes as a value (ie: It is not a ref or computed). Without doing a manual update, the problem would only be solved for unofficial verified nodes. Hence, we need to manually update the stack to solve the problem for both unofficial verified community nodes and official verified community nodes.

We do not need to worry about unverified nodes because they are not in Strapi, and they do not get displayed in the Node Creator panel.

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-3034/when-installing-an-official-verified-node-on-1941-and-above-the-nodes

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

dana-gill added 2 commits June 5, 2025 16:08
This prevents the back button from disappearing
Since official community nodes are now part of mergedNodes, we need to
alert the view stack to update
@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Jun 5, 2025
@dana-gill dana-gill changed the title fix(editor-ui): Maintain back button when installing community nodes fix(editor): Maintain back button when installing community nodes Jun 5, 2025
Copy link

codecov bot commented Jun 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@dana-gill dana-gill marked this pull request as ready for review June 6, 2025 14:50
@dana-gill dana-gill requested a review from ShireenMissi June 6, 2025 14:51
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cubic found 1 issue across 2 files. Review it in cubic.dev

React with 👍 or 👎 to teach cubic. Tag @cubic-dev-ai to give specific feedback.

Copy link
Contributor

@ShireenMissi ShireenMissi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested locally as well and it works 🎉

Copy link
Contributor

github-actions bot commented Jun 6, 2025

✅ All Cypress E2E specs passed

@dana-gill dana-gill merged commit 7492944 into master Jun 6, 2025
46 checks passed
@dana-gill dana-gill deleted the node-3034-when-installing-an-official-verified-node-on-1941-and-above branch June 6, 2025 15:40
@janober
Copy link
Member

janober commented Jun 11, 2025

Got released with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants