Extend warning message to selection step in prompt-to-edit (#6840)
* Extend warning messages to all args in ML commands * Only when it works actually * Add warningMessage to selection mixed input
This commit is contained in:
@ -114,6 +114,11 @@ export default function CommandBarSelectionMixedInput({
|
||||
Continue without selection
|
||||
</button>
|
||||
)}
|
||||
{arg.warningMessage && (
|
||||
<p className="text-warn-80 bg-warn-10 px-2 py-1 rounded-sm mt-3 mr-2 -mb-2 w-full text-sm cursor-default">
|
||||
{arg.warningMessage}
|
||||
</p>
|
||||
)}
|
||||
<span data-testid="cmd-bar-arg-name" className="sr-only">
|
||||
{arg.name}
|
||||
</span>
|
||||
|
@ -974,6 +974,7 @@ export const modelingMachineCommandConfig: StateMachineCommandSetConfig<
|
||||
allowCodeSelection: true,
|
||||
},
|
||||
skip: true,
|
||||
warningMessage: ML_EXPERIMENTAL_MESSAGE,
|
||||
},
|
||||
prompt: {
|
||||
inputType: 'text',
|
||||
|
Reference in New Issue
Block a user