Skip to content
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

feat(editor): Tweak node creator search logic for AI sub-nodes #10025

Merged

Conversation

OlegIvaniv
Copy link
Contributor

Summary

This PR implements the following tweaks for node creator:

  • Revert categorization(feat(editor): Node Creator AI nodes improvements  #9484) of regular and trigger non-ai nodes to show them as a flat list
  • Show vector store nodes as root nodes
  • Hide sub-nodes if the node creator was opened from the node_connection_drop or plus_endpoint source
  • Correctly connect a node to lastSelectedNode if chat trigger is auto-added

Related Linear tickets, Github issues, and Community forum posts

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)

@OlegIvaniv OlegIvaniv changed the title Ai 195 node subcategory display and insertion tweaks feat(editor): Tweak node creator search logic for AI sub-nodes Jul 12, 2024
@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jul 12, 2024
Copy link

cypress bot commented Jul 12, 2024

2 flaky tests on run #5898 ↗︎

0 399 0 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 OlegIvaniv 🗃️ e2e/*
Project: n8n Commit: 883f3b2bdb
Status: Passed Duration: 05:06 💡
Started: Jul 12, 2024 8:33 AM Ended: Jul 12, 2024 8:38 AM
Flakiness  e2e/5-ndv.cy.ts • 2 flaky tests

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video
NDV > Stop listening for trigger event from NDV Screenshots Video

Review all test suite changes for PR #10025 ↗︎

Copy link
Member

@elsmr elsmr left a comment

Choose a reason for hiding this comment

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

LGTM!


if (
// Filter-out AI sub-nodes if canvas has no AI nodes and the root view is not AI
!(isAiRootView(stack) || canvasHasAINodes) ||
Copy link
Member

Choose a reason for hiding this comment

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

nit: Could extract isAiRootView(stack) || canvasHasAINodes into a new computed (also used below in groupIfAiRootNodes

Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

Copy link
Contributor

✅ All Cypress E2E specs passed

@OlegIvaniv OlegIvaniv merged commit 7db1656 into master Jul 12, 2024
48 checks passed
@OlegIvaniv OlegIvaniv deleted the ai-195-node-subcategory-display-and-insertion-tweaks branch July 12, 2024 08:43
@github-actions github-actions bot mentioned this pull request Jul 17, 2024
@janober
Copy link
Member

janober commented Jul 17, 2024

Got released with n8n@1.51.0

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 ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants