Add autoComplete widget and add to TypedInput for msg. props #3171
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a new
autoComplete
widget that can be applied to any<input type="text">
that gives an auto-complete dropdown whilst typing in the input.This is applies that to the
msg.
type of theTypedInput
, with a (for now) hardcoded list of all message properties that core nodes use.Even with the hardcoded list, this is already really useful.
But I plan to follow up with a design proposal for how nodes can provide a list of the properties they care about - distinguishing those they receive vs those they send. It would then be feasible for contrib nodes to add to the auto-complete list and it would also be able to sort the suggested completions based on whether a given type exists in the upstream or downstream flow. In that scenario, it would still show valid completions across the whole set as the node may not yet be wired.... and the user is free to ignore the suggestions and type whatever they want.
It would also be feasible to add similar completion to the
flow
andglobal
types - but that's for another day.