eez-open / studio

Cross-platform low-code GUI and automation
https://www.envox.eu/studio/studio-introduction/
GNU General Public License v3.0
478 stars 88 forks source link

Dashboard history #344

Open fietser28 opened 5 months ago

fietser28 commented 5 months ago

Just like a SCPI instrument I would like the possibility to give a dashboard a history for logging output of dashboard runs. The history should have the same features (add note, export to notebook, delete, pause) as the current instrument log.

It should log the runs and output generated by the dashboard: It will require an addition widget 'AddToDashboardHistory' where text, charts, csv (?), json(?) and images can be logged to the history. It is also nice to have the option to add comments to results to give context.

mvladic commented 5 months ago

I think we should use Notebooks for this. Similar to InstrumentObject type, we can add NotebookObject type with following actions:

Once we have variable holding reference to Notebook we can use AddToHistory action to append text/image/chart/,,, to its history. This means we don't need AddToInstrumentHistory action anymore (it will be automatically migrated to AddToHistory action), because target object for AddToHistory can be either instrument or notebook.

This requires no new concept (dashboard history) in Studio. We already have a way to manage notebooks and browse through notebook history.

mvladic commented 5 months ago

It should log the runs and output generated by the dashboard

This will be left to the developer. He can add some text in notebook history each time when dashboard starts.