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): Chat Trigger tweaks #9618

Merged
merged 7 commits into from
Jun 4, 2024

Conversation

OlegIvaniv
Copy link
Contributor

Summary

  • Update canvas name of chat trigger to "When chat message received"
  • Fix the typing animation while waiting for a response
  • Improve message for when the response is empty
  • Remove the exclamation mark from all error messages
  • Show "Test workflow" button if chat trigger has pinned data

Related tickets and issues

Include links to Linear ticket or Github issue or Community forum post. Important in order to close automatically and provide context to reviewers.

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 core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jun 4, 2024
michael-radency
michael-radency previously approved these changes Jun 4, 2024
Copy link
Contributor

@michael-radency michael-radency left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -118,7 +118,7 @@ export abstract class DirectoryLoader {

if (currentVersionNode.hasOwnProperty('executeSingle')) {
throw new ApplicationError(
'"executeSingle" has been removed. Please update the code of this node to use "execute" instead!',
'"executeSingle" has been removed. Please update the code of this node to use "execute" instead.',
Copy link
Contributor

Choose a reason for hiding this comment

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

We have a rule n8n-nodes-base/node-param-description-excess-final-period for not adding a final period in single-sentence node descriptions. Maybe we should apply this rule to those errors as well.

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 good point, I've asked David if we should keep the final period or not. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As per David's request, I've removed the final period for single-sentence errors. Could you re-approve, please?

Copy link

cypress bot commented Jun 4, 2024

2 flaky tests on run #5305 ↗︎

0 356 0 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 OlegIvaniv 🗃️ e2e/*
Project: n8n Commit: e860915c9e
Status: Passed Duration: 05:07 💡
Started: Jun 4, 2024 1:16 PM Ended: Jun 4, 2024 1:21 PM
Flakiness  cypress/e2e/5-ndv.cy.ts • 2 flaky tests

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video
NDV > Stop listening for trigger event from NDV Screenshots Video

Review all test suite changes for PR #9618 ↗︎

Copy link
Contributor

github-actions bot commented Jun 4, 2024

✅ All Cypress E2E specs passed

@OlegIvaniv OlegIvaniv force-pushed the ai-179-chat-trigger-tweaks-and-other-tiny-ones branch from cd02994 to 8eccf59 Compare June 4, 2024 13:36
Copy link

cypress bot commented Jun 4, 2024

1 flaky test on run #5307 ↗︎

0 356 0 0 Flakiness 1

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 OlegIvaniv 🗃️ e2e/*
Project: n8n Commit: 8eccf5998d
Status: Passed Duration: 04:53 💡
Started: Jun 4, 2024 3:16 PM Ended: Jun 4, 2024 3:21 PM
Flakiness  cypress/e2e/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

Review all test suite changes for PR #9618 ↗︎

Copy link
Contributor

github-actions bot commented Jun 4, 2024

✅ All Cypress E2E specs passed

@OlegIvaniv OlegIvaniv merged commit 5322802 into master Jun 4, 2024
30 checks passed
@OlegIvaniv OlegIvaniv deleted the ai-179-chat-trigger-tweaks-and-other-tiny-ones branch June 4, 2024 15:24
Copy link

cypress bot commented Jun 5, 2024

1 flaky test on run #5312 ↗︎

0 356 0 0 Flakiness 1

Details:

🌳 master 🖥️ browsers:node18.12.0-chrome107 🤖 PR User 🗃️ e2e/*
Project: n8n Commit: 5322802992
Status: Passed Duration: 04:52 💡
Started: Jun 5, 2024 3:12 AM Ended: Jun 5, 2024 3:17 AM
Flakiness  cypress/e2e/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

Review all test suite changes for PR #9618 ↗︎

@github-actions github-actions bot mentioned this pull request Jun 5, 2024
@janober
Copy link
Member

janober commented Jun 5, 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
core Enhancement outside /nodes-base and /editor-ui 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