Commit 86068f9
committed
Use dagree for interactive migration graph
In addition to the normal graphviz svg
dagree is already a dependency via mermaid/docusaurus
This filter and a remove packages that are "done", and/or have no
parrent children befor showing the graph, and split it into connected
components.
The interactive graph has the following features:
- span/zoom with mouse/trackpad
- hover a node to dimm all nodes except direct children/parents.
- click on a node to show only current graph and all parents (and
their parents...)/children (and their children...), but not
siblings.
A filter search bar to find a node easily and select it without having
to click on it.
A dropdown for the various dagree layout options I think are
un-necessary but let us explore the various dagree options.
The node color should reflect the ci status of the PR, but are not
properly clickable to open given PR, this is something I'm planning to
do if there is interest.
Note that there are some hacks as some packages are marked as "awaiting
parent", while they do not have any parent pending (like pyside2 for
314t, llvmlite for 314t also IIRC), maybe this should be fixed in the
table as well with a different label.
I'm also rendering the graph even if there is an extremly large number
of node, I think I there should be a confirmation if there is say > 1k
nodes and a confirmation, but one of my powerful machine handles things
really well so not sure.1 parent 51a0dc4 commit 86068f9
File tree
5 files changed
+878
-7
lines changed- src/pages/status/migration
5 files changed
+878
-7
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
0 commit comments