From 9bd63dbe6ac59bab81669f06df5f49469de15991 Mon Sep 17 00:00:00 2001 From: Alexander Brown Date: Mon, 24 Nov 2025 17:26:16 -0800 Subject: [PATCH] Cleanup: Consistent use of Nodes 2.0 in user facing strings. (#6898) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/Comfy-Org/ComfyUI_frontend/issues/6888 ## Summary Did a quick pass to find user facing strings. Not sure if this gets them all. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6898-Cleanup-Consistent-use-of-Nodes-2-0-in-user-facing-strings-2b66d73d36508124aee2f5f8373a4b60) by [Unito](https://www.unito.io) --- src/components/topbar/TryVueNodeBanner.vue | 2 +- src/composables/useCoreCommands.ts | 2 +- src/locales/en/commands.json | 2 +- src/locales/en/main.json | 8 +++++--- src/locales/en/settings.json | 2 +- src/platform/settings/constants/coreSettings.ts | 2 +- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/topbar/TryVueNodeBanner.vue b/src/components/topbar/TryVueNodeBanner.vue index a852b8e9e..cc9d6f965 100644 --- a/src/components/topbar/TryVueNodeBanner.vue +++ b/src/components/topbar/TryVueNodeBanner.vue @@ -63,7 +63,7 @@ const handleTryItOut = async (): Promise => { try { await settingStore.set('Comfy.VueNodes.Enabled', true) } catch (error) { - console.error('Failed to enable Vue nodes:', error) + console.error('Failed to enable Nodes 2.0:', error) } finally { handleDismiss() } diff --git a/src/composables/useCoreCommands.ts b/src/composables/useCoreCommands.ts index fa4761c46..305debbc7 100644 --- a/src/composables/useCoreCommands.ts +++ b/src/composables/useCoreCommands.ts @@ -330,7 +330,7 @@ export function useCoreCommands(): ComfyCommand[] { label: () => `Experimental: ${ useSettingStore().get('Comfy.VueNodes.Enabled') ? 'Disable' : 'Enable' - } Vue Nodes`, + } Nodes 2.0`, function: async () => { const settingStore = useSettingStore() const current = settingStore.get('Comfy.VueNodes.Enabled') ?? false diff --git a/src/locales/en/commands.json b/src/locales/en/commands.json index 1b23fa0ce..e838e3aeb 100644 --- a/src/locales/en/commands.json +++ b/src/locales/en/commands.json @@ -237,7 +237,7 @@ "label": "Sign Out" }, "Experimental_ToggleVueNodes": { - "label": "Experimental: Enable Vue Nodes" + "label": "Experimental: Enable Nodes 2.0" }, "Workspace_CloseWorkflow": { "label": "Close Current Workflow" diff --git a/src/locales/en/main.json b/src/locales/en/main.json index d64aca2c2..d152fb791 100644 --- a/src/locales/en/main.json +++ b/src/locales/en/main.json @@ -1107,7 +1107,9 @@ "Undo": "Undo", "Open Sign In Dialog": "Open Sign In Dialog", "Sign Out": "Sign Out", - "Experimental: Enable Vue Nodes": "Experimental: Enable Vue Nodes", + "Experimental: Enable Vue Nodes": "Experimental: Enable Nodes 2.0", + "Experimental: Enable Nodes 2.0": "Experimental: Enable Nodes 2.0", + "Experimental: Disable Nodes 2.0": "Experimental: Disable Nodes 2.0", "Close Current Workflow": "Close Current Workflow", "Next Opened Workflow": "Next Opened Workflow", "Previous Opened Workflow": "Previous Opened Workflow", @@ -1183,10 +1185,10 @@ "API Nodes": "API Nodes", "Notification Preferences": "Notification Preferences", "3DViewer": "3DViewer", - "Vue Nodes": "Vue Nodes", "Canvas Navigation": "Canvas Navigation", "PlanCredits": "Plan & Credits", - "VueNodes": "Vue Nodes", + "Vue Nodes": "Nodes 2.0", + "VueNodes": "Nodes 2.0", "Nodes 2_0": "Nodes 2.0" }, "serverConfigItems": { diff --git a/src/locales/en/settings.json b/src/locales/en/settings.json index 0a97a595d..06dcb50e5 100644 --- a/src/locales/en/settings.json +++ b/src/locales/en/settings.json @@ -336,7 +336,7 @@ }, "Comfy_VueNodes_AutoScaleLayout": { "name": "Auto-scale layout (Nodes 2.0)", - "tooltip": "Automatically scale node positions when switching to Vue rendering to prevent overlap" + "tooltip": "Automatically scale node positions when switching to Nodes 2.0 rendering to prevent overlap" }, "Comfy_VueNodes_Enabled": { "name": "Modern Node Design (Nodes 2.0)", diff --git a/src/platform/settings/constants/coreSettings.ts b/src/platform/settings/constants/coreSettings.ts index 0493f2f00..66cb9c310 100644 --- a/src/platform/settings/constants/coreSettings.ts +++ b/src/platform/settings/constants/coreSettings.ts @@ -1101,7 +1101,7 @@ export const CORE_SETTINGS: SettingParams[] = [ category: ['Comfy', 'Nodes 2.0', 'AutoScaleLayout'], name: 'Auto-scale layout (Nodes 2.0)', tooltip: - 'Automatically scale node positions when switching to Vue rendering to prevent overlap', + 'Automatically scale node positions when switching to Nodes 2.0 rendering to prevent overlap', type: 'boolean', sortOrder: 50, experimental: true,