-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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): Easy $fromAI Button for AI Tools #12587
base: master
Are you sure you want to change the base?
Conversation
packages/design-system/src/components/N8nInputLabel/InputLabel.vue
Outdated
Show resolved
Hide resolved
@@ -1505,7 +1551,14 @@ onUpdated(async () => { | |||
<InlineExpressionTip /> | |||
</div> | |||
</div> | |||
|
|||
<div |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to only render this wrapper div if there's a slot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason the slot exists even if the v-if condition for its template provider is not met:
<template v-if="showOverrideButton && isSingleLineInput" #overrideButton>
even with this $slots.overrideButton
is truthy :/
}; | ||
} | ||
|
||
const isContentOverride = computed(() => isOverrideValue(props.value?.toString() ?? '')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick - typo isContentOverriden
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, this is meant as "is (a) Content Override.", not "is (this) content overridden?". Definitely want a better name here
@@ -90,6 +91,7 @@ type Props = { | |||
hideIssues?: boolean; | |||
errorHighlight?: boolean; | |||
isForCredential?: boolean; | |||
canBeOverride?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this prop? Can we simply check if the slot is set or not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not for the edge case where we have the button in the options above, but need a 90deg top right corner for the (multi-line) expr editor
Codecov ReportAttention: Patch coverage is 📢 Thoughts on this report? Let us know! |
n8n Run #9123
Run Properties:
|
Project |
n8n
|
Branch Review |
ADO-3034
|
Run status |
Passed #9123
|
Run duration | 04m 56s |
Commit |
972928c12c: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 CharlieKolb 🗃️ e2e/*
|
Committer | Charlie Kolb |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
5
|
Skipped |
0
|
Passing |
433
|
View all changes introduced in this branch ↗︎ |
|
✅ All Cypress E2E specs passed |
Summary
Introduce infrastructure for parameterInputs to have overrides and provide an
$fromAI
override button for applicable fields in tools.Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/ADO-3034/feature-add-fieldoverride-functionality-to-parameterinputfull
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)