Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ui] Place run Gantt chart arrows between boxes (#20987)
Fixes #19331 ## Summary & Motivation A user in #19331 flagged that our Gantt chart line rendering is non-ideal for fan-out scenarios. Lines on the Gantt chart always go over THEN down, which means they are always cutting through a row of boxes. It's been like this for as long as I can remember, and I don't recall why we chose to do it this way. I think that we may have changed the rendering algorithm to make better use of vertical space by allowing boxes to appear on the same lines, and when we did that, we didn't update the line rendering. The new version moves the vertical part of the line so it appears just after the first box and before the next layer of boxes, which results in cleaner rendering just about all the time I think. I also changed the line colors to match the DAG UI, because the hover color change wasn't very obvious. Before: <img width="612" alt="image" src="https://github.com/dagster-io/dagster/assets/1037212/3a6187dc-802b-45b8-811c-2d1486b36ef1"> <img width="808" alt="image" src="https://github.com/dagster-io/dagster/assets/1037212/0a0c3bff-5a3a-413c-a18b-6c60c15d246f"> After: <img width="583" alt="image" src="https://github.com/dagster-io/dagster/assets/1037212/d8b5191b-168d-436a-b262-9825ce233567"> <img width="771" alt="image" src="https://github.com/dagster-io/dagster/assets/1037212/f7325a5a-252c-4ea9-bee5-a580e5fc54a8"> ## How I Tested These Changes Just tested manually and using our storybook coverage of this component Co-authored-by: bengotow <[email protected]>
- Loading branch information
b350424
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-o2xn21809-elementl.vercel.app
Built with commit b350424.
This pull request is being automatically deployed with vercel-action