cylc / cylc-ui

Web app for monitoring and controlling Cylc workflows
https://cylc.github.io
GNU General Public License v3.0
37 stars 27 forks source link

Allow setting defaults for view options in settings #1809

Open MetRonnie opened 4 months ago

MetRonnie commented 4 months ago

Problem

Users may want to set defaults for:

Proposed Solution

Add checkbox settings for these in the user profile/settings view

oliver-sanders commented 4 months ago

Checkboxes are a simple solution, however, worth noting there is a more advanced solution that would scale better with view requirements in the long run.

The Graph and Log views make use of the same Toolbar component. The idea was that we would get all views using the same toolbar component. This will give the UI a more consistent interface and facilitate sharing common widgets (e.g. task filtering). This toolbar could then be used as an interface for users to set their preferences, both within the view and on the settings page.

I.E., take the Graph View toolbar, strip out any actions that use callbacks (fire and forget) rather than actions (save / modify settings), then display this on the settings page.

This way the settings pages are auto-generated from the toolbar configuration and users can review/change their default preferences using the same interface they use to modify them within the view.

Another way to achieve the same thing is to have a save button within the view toolbar to allow saving the current view configuration as the default.

Some related comments on https://github.com/cylc/cylc-ui/issues/662