-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ui] Fix vertical centering of arrows on the asset graph, asset name …
…wrapping (#25974) ## Summary & Motivation This fixes a couple specific issues with the asset graph and updates our AssetNode stories: - Lower the truncation threshold for asset names to prevent wrapping. I think the previous value 38 must have been for a smaller font size, or for a previous asset node width. I verified the current font size (14px) is what is specified in Josh's latest designs and added a story for this case. <img width="354" alt="image" src="https://github.com/user-attachments/assets/56d66c50-564a-4b18-a927-a3cb3d87664b"> - Update the `getAssetNodeDimensions` function to reflect what is actually rendered and ensure the `AssetNodeBox` 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 <img width="1840" alt="image" src="https://github.com/user-attachments/assets/32cfa1cd-4452-4733-ac8b-dbe490183cab"> - 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: <img width="863" alt="image" src="https://github.com/user-attachments/assets/7efc4ac8-37fd-4ee8-809e-0b3d7af94065"> --------- Co-authored-by: bengotow <bgotow@elementl.com>
- Loading branch information
Showing
6 changed files
with
127 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
2616e04
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagit-core-storybook ready!
✅ Preview
https://dagit-core-storybook-o2zzyaliu-elementl.vercel.app
Built with commit 2616e04.
This pull request is being automatically deployed with vercel-action