xm-online / xm-webapp

XM^online 2 - Open Source version of the XME.digital core platform
https://xme.digital
Apache License 2.0
14 stars 7 forks source link

feat: Move menu categories to public UI config #2070

Closed denisogolubev closed 6 months ago

denisogolubev commented 6 months ago

Now it is possible to configure categories in public UI config and specify key in every dashboard you need. It helps not to duplicate every category configuration in every dashboard.

Public UI config example:

- selector: '@xm-ngx/components/sidebar-menu'
        config:
          categories:
            administration:
              name:
                en: 'Administration'
                uk: 'Адміністрування'
              icon: 'settings'
              order: 100000
              dataQa: 'settings-menu-category'

Dashboard config example:

{
  "name": {
    "en": "Dashboards",
    "uk": "Дашборди"
  },
  "orderIndex": 1,
  "categoryKey": "administration",
  "slug": "path-to-your-page"
}