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): Universal button snags #11974

Merged

Conversation

r00gm
Copy link
Contributor

@r00gm r00gm commented Nov 29, 2024

Summary

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)

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

codecov bot commented Nov 29, 2024

Codecov Report

Attention: Patch coverage is 95.04950% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...nents/N8nNavigationDropdown/NavigationDropdown.vue 83.33% 4 Missing ⚠️
...itor-ui/src/composables/useGlobalEntityCreation.ts 94.11% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@r00gm r00gm marked this pull request as ready for review December 5, 2024 11:15
@r00gm r00gm requested a review from cstuncsik December 5, 2024 11:15
@r00gm r00gm requested a review from cstuncsik December 5, 2024 14:02
@@ -323,9 +328,21 @@ onClickOutside(createBtn as Ref<VueInstance>, () => {
@select="handleMenuSelect"
>
<N8nIconButton icon="plus" type="secondary" outline />
<template #[`item.append.${CREATE_PROJECT_ID}`]="{ item }">
Copy link
Contributor

Choose a reason for hiding this comment

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

Just spotted this
Isn't there a nicer solution?
This looks very weird, could it be just a computed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's a dynamic slot and is used for thing like this when you only want your changes to affect specific elements within what's rendered,

i could create a computed inside the composable that return the same string, but it would be just moving it from one place to another

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure, but I think it's more readable and understandable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you were right it looks much nicer, thank you!

@r00gm r00gm requested a review from cstuncsik December 5, 2024 16:18
Copy link
Contributor

github-actions bot commented Dec 6, 2024

✅ No visual regressions found.

Copy link

cypress bot commented Dec 6, 2024

n8n    Run #8223

Run Properties:  status check passed Passed #8223  •  git commit 52322ad9a5: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 r00gm 🗃️ e2e/*
Project n8n
Branch Review pay-2272-snags-to-fix-on-new-universal-button-and-projects
Run status status check passed Passed #8223
Run duration 04m 31s
Commit git commit 52322ad9a5: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 r00gm 🗃️ e2e/*
Committer r00gm
View all properties for this run ↗︎

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

Copy link
Contributor

github-actions bot commented Dec 6, 2024

✅ All Cypress E2E specs passed

@r00gm r00gm merged commit 956b11a into master Dec 6, 2024
53 checks passed
@r00gm r00gm deleted the pay-2272-snags-to-fix-on-new-universal-button-and-projects branch December 6, 2024 07:52
@github-actions github-actions bot mentioned this pull request Dec 11, 2024
@janober
Copy link
Member

janober commented Dec 11, 2024

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