mrufsvold / Waluigi.jl

MIT License
22 stars 4 forks source link

Allow user to customize the pipeline visualization #12

Open mrufsvold opened 1 year ago

mrufsvold commented 1 year ago

Currently, the whole visualization is hard coded and can only be turned on or off by the user. It would be nice to allow the user to opt into different options, pick the port for it to display on, etc.

The user can just start the DaggerWebDash themselves, and it should pick up jobs from a pipeline run, but the point of this package is to provide a low-effort frontend to Dagger, so we'd ideally take that work of their plate.

I'm open to suggestions on how this should work!

jpsamaroo commented 1 year ago

I think it would be reasonable for Dagger to have a start_ui function or so which can start DaggerWebDash (or any other future visualizer). I'm also considering adding a global log sink to TimespanLogging itself which multiple libraries can use (with appropriate namespacing), and either TimespanLogging or Dagger could provide some helper functions to configure it.

I also never figured out a nice way to do plot selection and layouting for the web dash, so if you have any ideas, I'm open to them!

mrufsvold commented 1 year ago

On the Waluigi end, I was pondering a utility that can read a YAML file that could provide some toggles for UI customization. Something like generate_ui_config_template(path) and read_ui_config(path). But it's pretty fragile, so I'm not in love with the idea.