-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enhance visualization of connectors #257
Conversation
@haoqixu is attempting to deploy a commit to the OTelBin Team on Vercel. A member of the Team first needs to authorize it. |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
Lovely :-) We'll review it ASAP! |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@haoqixu would you please enable in your fork Allowing changes to a pull request branch created from a fork, or run |
Overall, I like very much where the change is going. The layout you implemented has a lot going for it: it is easier to see how pipelines flow into one another, following the conventional left-to-right approach. I have concerns about the fact that it is no longer simple to see which pipelines can receive data "from the outside" through non-connector receivers, which exports send data to the outside, which is why in #117 I was thinking of always keeping lanes vertically aligned: receivers are always to the beginning of a "line", exporters always at its end. Nevertheless, this looks to like an excellent improvement when dealing with connectors, and I am looking forward for @bripkens to review when he is no longer under the weather. |
I am also not sure how far it is realistic to go in terms of detecting connector cycles (see example), but we definitely should try not to have edges overlap with nodes. |
I think it is realistic to detect cycles and I have implemented a POC. It looks like: ![]() ![]() After I clean up the code and test it more carefully, I will update the PR. |
f54ca2f
to
9582a96
Compare
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.
This is looking really good @haoqixu. Great job! ❤️
Left some minor comments about the code.
Could you please visually align the arrow head of the cycle indicator edge to the arrow heads of the other edge types? That would be great.
![image](https://private-user-images.githubusercontent.com/596443/290194481-a2d2cc36-dd01-44ef-bfe4-5d3867ce6b4f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTkyMjQsIm5iZiI6MTczODk5ODkyNCwicGF0aCI6Ii81OTY0NDMvMjkwMTk0NDgxLWEyZDJjYzM2LWRkMDEtNDRlZi1iZmU0LTVkMzg2N2NlNmI0Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQwNzE1MjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNGIwZmEwMDBlY2RmMGE2MGQ0MzcxY2QyMTg4MDhhOGVkOTU0YTBkZGM0MzdkNzkwZjI0MmE3ODMxYzYxNzY0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.9mmKW6j4ZOi-qYWF0G8hw8EGhFX4Ml0Ualizpw8UGzM)
Co-authored-by: Michele Mancioppi <[email protected]>
|
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.
LGTM 👍
Really well done! Thank you @haoqixu!
partially implement #117
This PR enhances visualization of connectors:
before:
![图片](https://private-user-images.githubusercontent.com/9400582/289619185-d7769052-38af-4807-8d10-2284b8ccf8a4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTkyMjMsIm5iZiI6MTczODk5ODkyMywicGF0aCI6Ii85NDAwNTgyLzI4OTYxOTE4NS1kNzc2OTA1Mi0zOGFmLTQ4MDctOGQxMC0yMjg0YjhjY2Y4YTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZ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