cylc-ui icon indicating copy to clipboard operation
cylc-ui copied to clipboard

Allow setting defaults for view options in settings

Open MetRonnie opened this issue 1 year ago • 1 comments

Problem

Users may want to set defaults for:

  • Log view:
    • Line wrapping
  • Graph view:
    • Cycle point grouping
    • Transpose option

Proposed Solution

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

MetRonnie avatar May 23 '24 09:05 MetRonnie

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

oliver-sanders avatar May 23 '24 12:05 oliver-sanders