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: Hide assistant button when showing Click to connect #10932

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Conversation

mutdmour
Copy link
Contributor

@mutdmour mutdmour commented Sep 23, 2024

Summary

Screenshot 2024-09-23 at 13 35 15

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 Sep 23, 2024
@mutdmour mutdmour marked this pull request as ready for review September 23, 2024 13:20
@MiloradFilipovic MiloradFilipovic self-requested a review September 23, 2024 15:12
Copy link
Contributor

@MiloradFilipovic MiloradFilipovic left a comment

Choose a reason for hiding this comment

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

Looks good. Left a minor comment but good to go without it.

@@ -177,6 +177,7 @@ const isAskAssistantAvailable = computed(
documentationUrl.value.includes(DOCS_DOMAIN) &&
props.credentialProperties.length &&
props.credentialPermissions.update &&
!(props.isOAuthType && props.requiredPropertiesFilled) &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Can be simplified a bit:

const isAskAssistantAvailable = computed(() => {
	return (
		documentationUrl.value?.includes(DOCS_DOMAIN) &&
		props.credentialProperties.length &&
		props.credentialPermissions.update &&
		!(props.isOAuthType && props.requiredPropertiesFilled) &&
		assistantStore.isAssistantEnabled
	);
});

Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Sep 23, 2024

n8n    Run #7009

Run Properties:  status check passed Passed #7009  •  git commit d0a302cb37: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 mutdmour 🗃️ e2e/*
Project n8n
Branch Review ado-2621
Run status status check passed Passed #7009
Run duration 04m 22s
Commit git commit d0a302cb37: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 mutdmour 🗃️ e2e/*
Committer Mutasem Aldmour
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
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 432
View all changes introduced in this branch ↗︎

@mutdmour mutdmour merged commit d74cff2 into master Sep 23, 2024
35 checks passed
@mutdmour mutdmour deleted the ado-2621 branch September 23, 2024 15:38
@github-actions github-actions bot mentioned this pull request Sep 25, 2024
@janober
Copy link
Member

janober commented Sep 25, 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 Released ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants