Show "experimental" badges around ML functionality (#6648)
* Make "experimental" a valid status for toolbar and commands
* Wire up status through createMachineCommand
* Add beaker icon
* Show UI elements if status is experimental
* Make ML operations experimental, powered by a flag
* Update command descriptions
* Add tooltip to home page Text-to-CAD button
* Splelnig erorrs
* 🧹lints
* Oopsie daisy Add KCL file isn't experimental
* Add warning message element to text area arg input
* Update message to common named constant
This commit is contained in:
@ -23,10 +23,12 @@ import type {
|
||||
StateMachineCommandSetConfig,
|
||||
} from '@src/lib/commandTypes'
|
||||
import {
|
||||
IS_ML_EXPERIMENTAL,
|
||||
KCL_DEFAULT_CONSTANT_PREFIXES,
|
||||
KCL_DEFAULT_DEGREE,
|
||||
KCL_DEFAULT_LENGTH,
|
||||
KCL_DEFAULT_TRANSFORM,
|
||||
ML_EXPERIMENTAL_MESSAGE,
|
||||
} from '@src/lib/constants'
|
||||
import type { components } from '@src/lib/machine-api'
|
||||
import type { Selections } from '@src/lib/selections'
|
||||
@ -964,8 +966,9 @@ export const modelingMachineCommandConfig: StateMachineCommandSetConfig<
|
||||
},
|
||||
},
|
||||
'Prompt-to-edit': {
|
||||
description: 'Use Zoo AI to edit your kcl',
|
||||
description: 'Use Zoo AI to edit your parts and code.',
|
||||
icon: 'chat',
|
||||
status: IS_ML_EXPERIMENTAL ? 'experimental' : 'active',
|
||||
args: {
|
||||
selection: {
|
||||
inputType: 'selectionMixed',
|
||||
@ -989,6 +992,7 @@ export const modelingMachineCommandConfig: StateMachineCommandSetConfig<
|
||||
prompt: {
|
||||
inputType: 'text',
|
||||
required: true,
|
||||
warningMessage: ML_EXPERIMENTAL_MESSAGE,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user