From 2b9d26e2ff114cd1a1de8c811fb636199c6e6ab5 Mon Sep 17 00:00:00 2001 From: Frank Noirot Date: Mon, 19 May 2025 19:58:18 -0400 Subject: [PATCH] Make Text-to-CAD Edit the default workflow in the toolbar (#7092) We want users to make edits first and foremost within projects, so we're going to surface it as the default workflow button in the toolbar. WIP until I verify that tests are okay with this. --- src/lib/toolbar.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/lib/toolbar.ts b/src/lib/toolbar.ts index 85203d74d..b0790ee8a 100644 --- a/src/lib/toolbar.ts +++ b/src/lib/toolbar.ts @@ -427,6 +427,21 @@ export const toolbarConfig: Record = { { id: 'ai', array: [ + { + id: 'prompt-to-edit', + onClick: () => + commandBarActor.send({ + type: 'Find and select command', + data: { name: 'Prompt-to-edit', groupId: 'modeling' }, + }), + icon: 'sparkles', + iconColor: '#29FFA4', + alwaysDark: true, + status: IS_ML_EXPERIMENTAL ? 'experimental' : 'available', + title: 'Modify with Zoo Text-to-CAD', + description: 'Edit geometry with AI / ML.', + links: [], + }, { id: 'text-to-cad', onClick: () => { @@ -457,21 +472,6 @@ export const toolbarConfig: Record = { }, ], }, - { - id: 'prompt-to-edit', - onClick: () => - commandBarActor.send({ - type: 'Find and select command', - data: { name: 'Prompt-to-edit', groupId: 'modeling' }, - }), - icon: 'sparkles', - iconColor: '#29FFA4', - alwaysDark: true, - status: IS_ML_EXPERIMENTAL ? 'experimental' : 'available', - title: 'Modify with Zoo Text-to-CAD', - description: 'Edit geometry with AI / ML.', - links: [], - }, ], }, ],