From 5d257e008564eca94d74ac15df1ece064e56b2a1 Mon Sep 17 00:00:00 2001 From: Precious Amesinlola Date: Thu, 10 Sep 2026 10:19:52 +0200 Subject: [PATCH] fix(editor): Reword the Gateway credits warning in the switch modal (no-changelog) Make the node the subject. "Gateway credits supports this node" reads as a number disagreement, and credits pay for a node rather than support it. Co-Authored-By: Claude Opus 5 (1M context) --- packages/frontend/@n8n/i18n/src/locales/en.json | 6 +++--- .../GatewayOpportunitySwitchModal.test.ts | 15 ++++++++++++--- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/packages/frontend/@n8n/i18n/src/locales/en.json b/packages/frontend/@n8n/i18n/src/locales/en.json index 1b70b4af0bc..ef59ece1a68 100644 --- a/packages/frontend/@n8n/i18n/src/locales/en.json +++ b/packages/frontend/@n8n/i18n/src/locales/en.json @@ -2311,9 +2311,9 @@ "aiGateway.switchModal.title": "Switch to Gateway credits", "aiGateway.switchModal.description": "These nodes can use Gateway credits instead of their own credential. Choose which ones to switch.", "aiGateway.switchModal.row.authHint": "Switching also changes this node's authentication setting.", - "aiGateway.switchModal.row.caveat.unsupportedModel": "Gateway credits supports this node but not the selected model. Switch only if you also change the model.", - "aiGateway.switchModal.row.caveat.unsupportedAction": "Gateway credits supports this node but not the selected operation. Switch only if you also change the operation.", - "aiGateway.switchModal.row.caveat.hiddenPropertySet": "Gateway credits supports this node but not one of its settings. Switch only if you also change that setting.", + "aiGateway.switchModal.row.caveat.unsupportedModel": "This node works with Gateway credits, but the selected model does not. Switch only if you also change the model.", + "aiGateway.switchModal.row.caveat.unsupportedAction": "This node works with Gateway credits, but the selected operation does not. Switch only if you also change the operation.", + "aiGateway.switchModal.row.caveat.hiddenPropertySet": "This node works with Gateway credits, but one of its settings does not. Switch only if you also change that setting.", "aiGateway.switchModal.confirm": "Switch {count} node | Switch {count} nodes", "aiGateway.switchModal.result.success.title": "Switched to Gateway credits", "aiGateway.switchModal.result.partial.title": "Some nodes couldn't switch", diff --git a/packages/frontend/editor-ui/src/features/ai/gateway/components/GatewayOpportunitySwitchModal.test.ts b/packages/frontend/editor-ui/src/features/ai/gateway/components/GatewayOpportunitySwitchModal.test.ts index 22f117dc093..3b4e0082737 100644 --- a/packages/frontend/editor-ui/src/features/ai/gateway/components/GatewayOpportunitySwitchModal.test.ts +++ b/packages/frontend/editor-ui/src/features/ai/gateway/components/GatewayOpportunitySwitchModal.test.ts @@ -235,9 +235,18 @@ describe('GatewayOpportunitySwitchModal', () => { }); it.each([ - ['unsupportedModel', 'Gateway credits supports this node but not the selected model.'], - ['unsupportedAction', 'Gateway credits supports this node but not the selected operation.'], - ['hiddenPropertySet', 'Gateway credits supports this node but not one of its settings.'], + [ + 'unsupportedModel', + 'This node works with Gateway credits, but the selected model does not.', + ], + [ + 'unsupportedAction', + 'This node works with Gateway credits, but the selected operation does not.', + ], + [ + 'hiddenPropertySet', + 'This node works with Gateway credits, but one of its settings does not.', + ], ] as const)('renders its own message for the %s caveat', (caveat, expectedMessage) => { const { getByTestId } = renderModal([makeOpportunity({ caveat })]);