routemaster icon indicating copy to clipboard operation
routemaster copied to clipboard

Basic Visualisation

Open danpalmer opened this issue 7 years ago • 4 comments

This PR introduces visualisation of state machines and labels locations in them.

Note: this has been handy for debugging configs but low priority and will likely not be finished and merged before launch.

image

TODO:

  • [ ] explore linters
  • [ ] tidy up the JS (remove inline onchange, etc.)

danpalmer avatar Dec 27 '17 23:12 danpalmer

@danpalmer were there any particular things you thought that the example visualisation should do? The example.yaml contains forks and merges in the graph, as well as both gates and actions, so I'm proposing that we build the example visualisation around that.

PeterJCLaw avatar Apr 18 '18 16:04 PeterJCLaw

The main things I wanted to do were around readability. I remember it being pretty basic and not very clear. Destinations, triggers, defaults, etc would be good to get on there, maybe the field used to control the destination selection, etc.

danpalmer avatar Apr 18 '18 16:04 danpalmer

@danpalmer since we discovered that pydot does indeed depend on having graphviz installed, thoughts on letting the render be in JavaScript? https://www.graphdracula.net/ looks fairly reasonable (and appears to allow annotations on various things which we know we want to do at some point)

PeterJCLaw avatar Apr 25 '18 15:04 PeterJCLaw

Coverage Status

Coverage increased (+0.01%) to 99.464% when pulling 277c214342f8d8d3b45d3ae9e6a66214b000c944 on visualisation into ab200515cd66251819480c42e6989559962369d4 on master.

coveralls avatar May 02 '18 15:05 coveralls