Open MetRonnie opened 6 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
Problem
Users may want to set defaults for:
Proposed Solution
Add checkbox settings for these in the user profile/settings view