-
Notifications
You must be signed in to change notification settings - Fork 1
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
Render sub flow runs #252
Render sub flow runs #252
Conversation
✅ Deploy Preview for prefect-graphs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -50,6 +74,7 @@ export async function flowRunContainerFactory() { | |||
} | |||
|
|||
return { | |||
kind: 'flow-run' as const, |
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.
Added kind
as a a discriminating union for the nodeContainerFactory
type Events = { | ||
rendered: void, | ||
} |
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.
I removed the factory specific events in favor of augmenting the built in pixi events. That way I can emit directly on containers which is simpler and avoids some event bubbling.
|
||
return Math.max(...values.values(), 0) | ||
return Math.max(...values.values(), config.styles.nodeHeight) |
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 evolving a bit to factor in the entire row height and not just the "offset" the name of this utility is likely to change to reflect but waiting to see how this shakes out
function toggle(): void { | ||
open = !open | ||
|
||
if (open) { | ||
renderNodes() | ||
} | ||
} |
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 will evolve quite a bit. Just a POC
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.
Thanks Craig!
Description
Clicking on a flow run on the graph will the flow run on the graph. Bumping other content out of the way.
For now it just renders right on to of the flow run that was clicked on and you cannot collapse it.
WIP PR to try and keep things a little smaller.
The last node in the demo is a flow run. Clicking on it will render another demo flow on the graph.