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:
Pierre Jacquier
2025-05-11 14:03:58 -07:00
committed by GitHub
parent 0621e1a53e
commit c65190a158
2 changed files with 6 additions and 0 deletions

View File

@ -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>

View File

@ -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',