From 5dae32a1efa7ff3118d15d7202b7ee5ed99f5069 Mon Sep 17 00:00:00 2001 From: RamGopalSrikar Date: Tue, 28 Apr 2026 10:41:38 -0400 Subject: [PATCH] fix(i18n): preserve instance-level node display_name and description in syncNodeTranslations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only sync field-level translations (template inputs and outputs). Node titles and descriptions are instance-level identity — user and template renames must not be overwritten by canonical registry values. --- src/frontend/src/stores/flowStore.ts | 2 -- src/frontend/tests/core/integrations/Blog Writer.spec.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/frontend/src/stores/flowStore.ts b/src/frontend/src/stores/flowStore.ts index 383bd09423..aa83679e7c 100644 --- a/src/frontend/src/stores/flowStore.ts +++ b/src/frontend/src/stores/flowStore.ts @@ -1433,8 +1433,6 @@ export function syncNodeTranslations(): void { ...node.data, node: { ...node.data.node!, - display_name: freshDef.display_name, - description: freshDef.description, template: updatedTemplate, ...(updatedOutputs && { outputs: updatedOutputs }), }, diff --git a/src/frontend/tests/core/integrations/Blog Writer.spec.ts b/src/frontend/tests/core/integrations/Blog Writer.spec.ts index 413e2112c3..ab45b2e6be 100644 --- a/src/frontend/tests/core/integrations/Blog Writer.spec.ts +++ b/src/frontend/tests/core/integrations/Blog Writer.spec.ts @@ -41,7 +41,7 @@ withEventDeliveryModes( .nth(0) .fill("https://www.originaldiving.com/blog/top-ten-turtle-facts"); - await page.getByTestId("textarea_str_input_value").click(); + await page.getByText("Instructions", { exact: true }).last().click(); await page .getByTestId("textarea_str_input_value")