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:
Mutasem Aldmour 2026-05-07 15:30:03 +02:00
parent 9f92005938
commit fbac8db46b
No known key found for this signature in database
GPG Key ID: 3DFA8122BB7FD6B8
5 changed files with 14 additions and 12 deletions

View File

@ -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',

View File

@ -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.',
},
};
}

View File

@ -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],

View File

@ -270,6 +270,9 @@ const createProperties: INodeProperties[] = [
operation: ['create'],
},
},
builderHint: {
message: 'To add notes to contacts, set additionalFields.notes',
},
options: [
{
displayName: 'Address',

View File

@ -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,