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

fix(editor): Improve dragndrop of input pills with spaces #9656

Conversation

elsmr
Copy link
Member

@elsmr elsmr commented Jun 6, 2024

Summary

Improve drag'n'drop for inputs with requiresDataPath:

  • Use same logic in assignment component and other inputs
  • When drag'n'dropping from a previous node, also extract data path instead of an expression
  • Don't use bracket access when not needed (requiresDataPath='single')
image

Related tickets and issues

https://linear.app/n8n/issue/NODE-1380/edit-fields-drag-and-dropped-name-fields-dont-work-with-spaces

Review / Merge checklist

  • PR title and summary are descriptive. Remember, the title automatically goes into the changelog. Use (no-changelog) otherwise. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.

    A bug is not considered fixed, unless a test is added to prevent it from happening again.
    A feature is not complete without tests.

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jun 6, 2024
@elsmr elsmr changed the title fix(editor): Fix dragndrop of input pills with spaces fix(editor): Improve dragndrop of input pills with spaces Jun 7, 2024
Copy link
Contributor

@mutdmour mutdmour left a comment

Choose a reason for hiding this comment

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

LGTM ✅

Copy link
Contributor

github-actions bot commented Jun 7, 2024

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Jun 7, 2024

2 flaky tests on run #5373 ↗︎

0 362 0 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 ivov 🗃️ e2e/*
Project: n8n Commit: c213d5464d
Status: Passed Duration: 04:49 💡
Started: Jun 10, 2024 8:06 AM Ended: Jun 10, 2024 8:11 AM
Flakiness  5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video
Flakiness  24-ndv-paired-item.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > resolves expression with default item when input node is not parent, while still pairing items Test Replay Screenshots Video

Review all test suite changes for PR #9656 ↗︎

@elsmr elsmr merged commit 291d46a into master Jun 7, 2024
31 checks passed
@elsmr elsmr deleted the node-1380-edit-fields-drag-and-dropped-name-fields-dont-work-with branch June 7, 2024 13:37
MiloradFilipovic added a commit that referenced this pull request Jun 7, 2024
* master:
  fix: Fix typo with submitted (no-changelog) (#9662)
  refactor(core): Revamp crash recovery mechanism for main mode (#9613)
  fix(editor): Improve dragndrop of input pills with spaces (#9656)
  fix(editor): Indent on tabs in expression fields (#9659)
  fix(editor): Color node connections correctly in execution preview for nodes that have pinned data (#9669)
  fix(core): Fix optional chaining in continue on fail check (#9667)
  feat(OpenAI Node): Allow to select Image analyze model & improve types (#9660)
MiloradFilipovic added a commit that referenced this pull request Jun 10, 2024
* master:
  feat(editor): Harmonize rendering of new-lines in RunData (#9614)
  refactor(editor): Fix remaining FE type check errors (no-changelog) (#9607)
  fix(editor): Remove template creds setup from workflow when copied (no-changelog) (#9673)
  refactor(editor): Stop expecting `null` execution status (no-changelog) (#9672)
  fix: Fix typo with submitted (no-changelog) (#9662)
  refactor(core): Revamp crash recovery mechanism for main mode (#9613)
  fix(editor): Improve dragndrop of input pills with spaces (#9656)
  fix(editor): Indent on tabs in expression fields (#9659)
  fix(editor): Color node connections correctly in execution preview for nodes that have pinned data (#9669)
  fix(core): Fix optional chaining in continue on fail check (#9667)
  feat(OpenAI Node): Allow to select Image analyze model & improve types (#9660)
@github-actions github-actions bot mentioned this pull request Jun 12, 2024
@janober
Copy link
Member

janober commented Jun 12, 2024

Got released with n8n@1.46.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.

None yet

3 participants