springwolf-core icon indicating copy to clipboard operation
springwolf-core copied to clipboard

Configure ui default settings

Open timonback opened this issue 1 year ago • 0 comments

Requested in https://github.com/springwolf/springwolf-core/issues/872#issuecomment-2353319258 by @hirth-abi

Is it possible to configure the default configuration of the UI? The possibility to hide bindings and headers is nice (and switching the UIs) 👍, but that's lost on reload and is not very well understood by stakeholders who just want to click a link and see the messages without clutter.

Describe the feature request Ability to configure the default ui configuration in the application.properties so that users do not have to initially use the settings menu in springwolf-ui to hide (1) bindings, (2) headers

Motivation Many non-technical users do not need that information and it fills up the screen with too much information.

Technical details https://github.com/springwolf/springwolf-core/issues/872#issuecomment-2380647923 ->

Initial thought regarding implementation is a new endpoint that returns (validated) configuration (application.properties is mapped by Spring into SpringwolfConfigProperties.java). The ui queries the new endpoint - similar like the publishing functionality and shows/hides the parts in the ui.

Describe alternatives you've considered

  • Storing the user settings in a cookie (requires state handling for multiple springwolf versions)

timonback avatar Oct 04 '24 11:10 timonback