mirror of
https://github.com/n8n-io/n8n.git
synced 2026-07-28 11:35:03 +02:00
chore: move parameter-specific builder hints onto their properties
Relocate builderHint.message from node-level to the relevant property for If V2 (conditions), HighLevel V2 (contact create additionalFields), and Guardrails V2 (operation). Guardrails keeps its node-level inputs hint. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9f92005938
commit
fbac8db46b
|
|
@ -77,6 +77,10 @@ export const propertiesDescription: INodeProperties[] = [
|
|||
},
|
||||
],
|
||||
default: 'classify',
|
||||
builderHint: {
|
||||
message:
|
||||
'Classify operation has two outputs: output 0 (Pass) for items that passed all guardrail checks, output 1 (Fail) for items that failed. Use .output(index).to() to connect from a specific output. @example guardrails.output(0).to(passNode) and guardrails.output(1).to(failNode). Sanitize operation has only one output.',
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Text To Check',
|
||||
|
|
|
|||
|
|
@ -50,8 +50,6 @@ export class GuardrailsV2 implements INodeType {
|
|||
},
|
||||
},
|
||||
},
|
||||
message:
|
||||
'Classify operation has two outputs: output 0 (Pass) for items that passed all guardrail checks, output 1 (Fail) for items that failed. Use .output(index).to() to connect from a specific output. @example guardrails.output(0).to(passNode) and guardrails.output(1).to(failNode). Sanitize operation has only one output.',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,9 +62,6 @@ const versionDescription: INodeTypeDescription = {
|
|||
defaults: {
|
||||
name: 'HighLevel',
|
||||
},
|
||||
builderHint: {
|
||||
message: 'To add notes to contacts, set additionalFields.notes',
|
||||
},
|
||||
usableAsTool: true,
|
||||
inputs: [NodeConnectionTypes.Main],
|
||||
outputs: [NodeConnectionTypes.Main],
|
||||
|
|
|
|||
|
|
@ -270,6 +270,9 @@ const createProperties: INodeProperties[] = [
|
|||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
builderHint: {
|
||||
message: 'To add notes to contacts, set additionalFields.notes',
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Address',
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ export class IfV2 implements INodeType {
|
|||
outputs: [NodeConnectionTypes.Main, NodeConnectionTypes.Main],
|
||||
outputNames: ['true', 'false'],
|
||||
parameterPane: 'wide',
|
||||
builderHint: {
|
||||
message: `parameters.conditions must always contain these three sibling keys:
|
||||
- "combinator": "and" or "or", default to "and"
|
||||
- "conditions": [ {a list of condition objects } ]
|
||||
- "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 1 }
|
||||
e.g.: { "conditions": { "combinator": "and", "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 2 }, "conditions": [{ "leftValue": "={{ $json.field }}", "rightValue": "value", "operator": { "type": "string", "operation": "equals" } }] } }`,
|
||||
},
|
||||
properties: [
|
||||
{
|
||||
displayName: 'Conditions',
|
||||
|
|
@ -50,6 +43,13 @@ e.g.: { "conditions": { "combinator": "and", "options": { "caseSensitive": true,
|
|||
version: '={{ $nodeVersion >= 2.3 ? 3 : $nodeVersion >= 2.2 ? 2 : 1 }}',
|
||||
},
|
||||
},
|
||||
builderHint: {
|
||||
message: `Must always contain these three sibling keys:
|
||||
- "combinator": "and" or "or", default to "and"
|
||||
- "conditions": [ {a list of condition objects } ]
|
||||
- "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 1 }
|
||||
e.g.: { "combinator": "and", "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 2 }, "conditions": [{ "leftValue": "={{ $json.field }}", "rightValue": "value", "operator": { "type": "string", "operation": "equals" } }] }`,
|
||||
},
|
||||
},
|
||||
{
|
||||
...looseTypeValidationProperty,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user