[ui] Fix vertical centering of arrows on the asset graph, asset name wrapping #25974
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 & Motivation
This fixes a couple specific issues with the asset graph and updates our AssetNode stories:
getAssetNodeDimensions
function to reflect what is actually rendered and ensure theAssetNodeBox
is always centered in the layout box so that horizontal edges hit the middle of the box. To make this easier I updated the storybooks to show the overall box in a gray color and draw a midline where edges will arrive. I think it'd been a while since we updated this and in a bunch of cases there was too much padding at the bottom of the box, which we were compensating for by giving asset groups a negative margin.How I Tested These Changes
A few new storybook cases covering kind tags and combinations of checks + partitions + change reasons.
app-proxy testing against elementl prod's global graph, both in horizontal and vertical mode and looking at maximally-tall assets at the bottom of asset groups: