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): Execute sub-workflow UX and copy updates (no-changelog) #12834

Merged
merged 16 commits into from
Jan 28, 2025

Conversation

MiloradFilipovic
Copy link
Contributor

@MiloradFilipovic MiloradFilipovic commented Jan 24, 2025

Summary

  • Adding empty fields message to resource mapper
  • Adding missing workflow data (name and id) to LoadWorkflowNodeContext
  • For detailed requirements, check Linear ticket description

Related Linear tickets, Github issues, and Community forum posts

Closes ADO-3103

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)

@MiloradFilipovic MiloradFilipovic self-assigned this Jan 24, 2025
@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team node/improvement New feature or request ui Enhancement in /editor-ui or /design-system labels Jan 24, 2025
Copy link

codecov bot commented Jan 24, 2025

@MiloradFilipovic MiloradFilipovic changed the title feat(editor): Updating copy around execute workflow nodes (no-changelog) feat(editor): Execute sub-workflow UX and copy updates (no-changelog) Jan 27, 2025
Copy link
Contributor

@CharlieKolb CharlieKolb left a comment

Choose a reason for hiding this comment

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

Love the resourceMapper tests 🙌 Happy to do the one copy change from notion as a follow up if you want to merge this first

Copy link

cypress bot commented Jan 28, 2025

n8n    Run #8980

Run Properties:  status check failed Failed #8980  •  git commit 10ac7e370a: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 MiloradFilipovic 🗃️ e2e/*
Project n8n
Branch Review ADO-3103-workflow-inputs-copy-updates
Run status status check failed Failed #8980
Run duration 04m 25s
Commit git commit 10ac7e370a: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 MiloradFilipovic 🗃️ e2e/*
Committer Milorad FIlipović
View all properties for this run ↗︎

Test results
Tests that failed  Failures 2
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 1
Tests that did not run due to a failure in a mocha hook  Skipped 7
Tests that passed  Passing 225
View all changes introduced in this branch ↗︎

Tests for review

Failed  45-workflow-selector-parameter.cy.ts • 1 failed test

View Output Video

Test Artifacts
Workflow Selector Parameter > should render sub-workflows list Test Replay Screenshots Video
Failed  48-subworkflow-inputs.cy.ts • 1 failed test

View Output Video

Test Artifacts
Sub-workflow creation and typed usage > works with type-checked values Test Replay Screenshots Video
Failed  20-workflow-executions.cy.ts • 0 failed tests

View Output

Test Artifacts
Failed  11-inline-expression-editor.cy.ts • 0 failed tests

View Output

Test Artifacts
Failed  6-code-node.cy.ts • 0 failed tests

View Output

Test Artifacts

The first 5 failed specs are shown, see all 50 specs in Cypress Cloud.

Flakiness  e2e/45-ai-assistant.cy.ts • 1 flaky test

View Output Video

Test Artifacts
AI Assistant::enabled > should resize assistant chat down Test Replay Screenshots Video

Copy link
Contributor

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

CharlieKolb
CharlieKolb previously approved these changes Jan 28, 2025
Copy link
Contributor

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

Copy link
Contributor

@CharlieKolb CharlieKolb left a comment

Choose a reason for hiding this comment

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

Nice refactoring!

@@ -0,0 +1,25 @@
import type { ILocalLoadOptionsFunctions, ResourceMapperFields } from 'n8n-workflow';
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this go into the GenericFunctions file we ended up putting all the shared logic? This is straight up duplication otherwise I think?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, the second sentence in the emptyFieldNotice is different, I see :o I'll leave this up to you then

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it ended up being 50-50 reusable so I decided to leave the two implementations since it's in the spirit of this refactor (leaving the message definition to each node).

@MiloradFilipovic MiloradFilipovic merged commit de49c23 into master Jan 28, 2025
98 of 101 checks passed
@MiloradFilipovic MiloradFilipovic deleted the ADO-3103-workflow-inputs-copy-updates branch January 28, 2025 10:33
Copy link
Contributor

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

@janober
Copy link
Member

janober commented Jan 29, 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 node/improvement New feature or request Released ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants