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
|
Continue without selection
|
||||||
</button>
|
</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">
|
<span data-testid="cmd-bar-arg-name" className="sr-only">
|
||||||
{arg.name}
|
{arg.name}
|
||||||
</span>
|
</span>
|
||||||
|
@ -974,6 +974,7 @@ export const modelingMachineCommandConfig: StateMachineCommandSetConfig<
|
|||||||
allowCodeSelection: true,
|
allowCodeSelection: true,
|
||||||
},
|
},
|
||||||
skip: true,
|
skip: true,
|
||||||
|
warningMessage: ML_EXPERIMENTAL_MESSAGE,
|
||||||
},
|
},
|
||||||
prompt: {
|
prompt: {
|
||||||
inputType: 'text',
|
inputType: 'text',
|
||||||
|
Reference in New Issue
Block a user