web icon indicating copy to clipboard operation
web copied to clipboard

Configurable default preferences

Open jamesdphillips opened this issue 6 years ago • 1 comments

Feature Suggestion

Originally brought up in the Sensu Slack: It would be nice to be able to configure default preferences for the web application. Primarily this would allow the administration to tailor the initial experience for a new user.

Preferences that could be toggled at present: theme, page size, and dark theme.

Possible Implementation

  • Configuration would likely need to be cluster wide, so arguably we would want to add a new resource. eg.
    ---
    type: WebConfiguration
    api_version: core/v2
    metadata:
      name: defaults
    spec:
      motd: |
        I don't remember how Lorum Ipsum goes...
      defaults:
        theme: classic
        dark_mode: true
        rows_per_page: 50
    
  • Configuration could either be queried during bootstrap or injected into the index.html document.

Context

  • https://sensucommunity.slack.com/archives/C9BB9AW7K/p1575489918145300

jamesdphillips avatar Dec 04 '19 20:12 jamesdphillips

And configurable default "home" page? I'd love to choose the events view vs the "homepage" (the one with the widgets). Automatically open this view when switching namespaces?

calebhailey avatar Jan 16 '20 06:01 calebhailey