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

refactor: Refactor input components to composition API (no-changelog) #9744

Merged
merged 5 commits into from
Jun 18, 2024

Conversation

elsmr
Copy link
Member

@elsmr elsmr commented Jun 14, 2024

Summary

Refactor input components to composition API

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)

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jun 14, 2024
Copy link
Contributor

@alexgrozav alexgrozav left a comment

Choose a reason for hiding this comment

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

Looking good, just a few remarks.

@@ -105,13 +105,13 @@ const rightParameter = computed<INodeProperties>(() => {

const debouncedEmitUpdate = debounce(() => emit('update', condition.value), { debounceTime: 500 });

const onLeftValueChange = (update: IUpdateInformation<NodeParameterValue>): void => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't leaving the generic here avoid casting as NodeParameterValue?

Copy link
Member Author

Choose a reason for hiding this comment

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

I typed the emit that this function listens to with IUpdateInformation, so leaving the generic gives an error

@alexgrozav alexgrozav self-requested a review June 17, 2024 08:50
Copy link
Contributor

@alexgrozav alexgrozav left a comment

Choose a reason for hiding this comment

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

Awesome work!

Copy link
Contributor

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

Copy link

cypress bot commented Jun 17, 2024

2 flaky tests on run #5553 ↗︎

0 393 0 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 elsmr 🗃️ e2e/*
Project: n8n Commit: b583ad5011
Status: Passed Duration: 04:32 💡
Started: Jun 18, 2024 9:17 AM Ended: Jun 18, 2024 9:21 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  17-sharing.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Credential Usage in Cross Shared Workflows > should only show credentials in their personal project for members Test Replay Screenshots Video

Review all test suite changes for PR #9744 ↗︎

@alexgrozav alexgrozav self-requested a review June 18, 2024 08:51
Copy link
Contributor

✅ No visual regressions found.

Copy link
Contributor

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

Copy link
Contributor

✅ All Cypress E2E specs passed

@elsmr elsmr merged commit e3cbce5 into master Jun 18, 2024
50 checks passed
@elsmr elsmr deleted the inputs-composition-api branch June 18, 2024 13:04
@janober
Copy link
Member

janober commented Jun 20, 2024

Got released with [email protected]

1 similar comment
@janober
Copy link
Member

janober commented Jun 20, 2024

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 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