feat(ui): better missing fields ux in workflows & builder #7816
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.
Summary
If a there was a problem with a node field that was added to the builder (e.g. it was renamed, removed from its node, or the node was removed altogether), you couldn't delete it from the builder. There was no delete button. You had to go and delete the node. Here's what it looked like:

This PR restructures the components so that we can render the error message within a form element container, with the delete button:

It also makes some improvements to the error messages for missing/unexpected fields, as seen in the above screenshot. Missing means the template has a field but the node instance does not. Unexpected means the node instance has a field that is not in the template. Hard to clearly convey these different states but this is better than before ("Unknown field: ").
In the Builder's View mode, the error looks like this:

Related Issues / Discussions
https://discord.com/channels/1020123559063990373/1149506274971631688/1352339053382598666
QA Instructions
n/a
Merge Plan
n/a
Checklist
What's New
copy (if doing a release after this PR)